AppPeekDialogSheet: Delete unused and unimplemented feature
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
@@ -1,52 +0,0 @@
|
||||
/*
|
||||
* Aurora Store
|
||||
* Copyright (C) 2021, Rahul Kumar Patel <whyorean@gmail.com>
|
||||
*
|
||||
* Aurora Store is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* Aurora Store is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with Aurora Store. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
package com.aurora.store.view.ui.sheets
|
||||
|
||||
import android.os.Bundle
|
||||
import android.view.View
|
||||
import androidx.navigation.fragment.navArgs
|
||||
import coil3.load
|
||||
import coil3.request.transformations
|
||||
import coil3.transform.RoundedCornersTransformation
|
||||
import com.aurora.store.R
|
||||
import com.aurora.store.databinding.SheetAppPeekBinding
|
||||
import com.aurora.store.util.CommonUtil
|
||||
import dagger.hilt.android.AndroidEntryPoint
|
||||
|
||||
@AndroidEntryPoint
|
||||
class AppPeekDialogSheet : BaseDialogSheet<SheetAppPeekBinding>() {
|
||||
private val args: AppPeekDialogSheetArgs by navArgs()
|
||||
|
||||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
||||
super.onViewCreated(view, savedInstanceState)
|
||||
|
||||
binding.txtLine1.text = args.app.displayName
|
||||
binding.imgIcon.load(args.app.iconArtwork.url) {
|
||||
transformations(RoundedCornersTransformation(25F))
|
||||
}
|
||||
binding.txtLine2.text = args.app.developerName
|
||||
binding.txtLine3.text = String.format(
|
||||
requireContext().getString(R.string.app_list_rating),
|
||||
CommonUtil.addSiPrefix(args.app.size),
|
||||
args.app.labeledRating,
|
||||
if (args.app.isFree) "Free" else "Paid"
|
||||
)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user