mirror of
https://github.com/whyorean/AuroraStore.git
synced 2026-06-13 02:11:07 -04:00
Drop unused parameters treewide
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
@@ -86,49 +86,49 @@ inline fun ImageView.load(
|
||||
bitmap: Bitmap?,
|
||||
transitionOptions: TransitionOptions<*, Drawable>? = null,
|
||||
requestOptions: RequestOptions.() -> Unit
|
||||
): ViewTarget<ImageView, Drawable> = loadAny(bitmap, transitionOptions, requestOptions)
|
||||
): ViewTarget<ImageView, Drawable> = loadAny(bitmap, requestOptions)
|
||||
|
||||
@JvmSynthetic
|
||||
inline fun ImageView.load(
|
||||
byteArray: ByteArray?,
|
||||
transitionOptions: TransitionOptions<*, Drawable>? = null,
|
||||
requestOptions: RequestOptions.() -> Unit
|
||||
): ViewTarget<ImageView, Drawable> = loadAny(byteArray, transitionOptions, requestOptions)
|
||||
): ViewTarget<ImageView, Drawable> = loadAny(byteArray, requestOptions)
|
||||
|
||||
@JvmSynthetic
|
||||
inline fun ImageView.load(
|
||||
drawable: Drawable?,
|
||||
transitionOptions: TransitionOptions<*, Drawable>? = null,
|
||||
requestOptions: RequestOptions.() -> Unit
|
||||
): ViewTarget<ImageView, Drawable> = loadAny(drawable, transitionOptions, requestOptions)
|
||||
): ViewTarget<ImageView, Drawable> = loadAny(drawable, requestOptions)
|
||||
|
||||
@JvmSynthetic
|
||||
inline fun ImageView.load(
|
||||
@RawRes @DrawableRes resourceId: Int?,
|
||||
transitionOptions: TransitionOptions<*, Drawable>? = null,
|
||||
requestOptions: RequestOptions.() -> Unit
|
||||
): ViewTarget<ImageView, Drawable> = loadAny(resourceId, transitionOptions, requestOptions)
|
||||
): ViewTarget<ImageView, Drawable> = loadAny(resourceId, requestOptions)
|
||||
|
||||
@JvmSynthetic
|
||||
inline fun ImageView.load(
|
||||
uri: Uri?,
|
||||
transitionOptions: TransitionOptions<*, Drawable>? = null,
|
||||
requestOptions: RequestOptions.() -> Unit
|
||||
): ViewTarget<ImageView, Drawable> = loadAny(uri, transitionOptions, requestOptions)
|
||||
): ViewTarget<ImageView, Drawable> = loadAny(uri, requestOptions)
|
||||
|
||||
@JvmSynthetic
|
||||
inline fun ImageView.load(
|
||||
string: String?,
|
||||
transitionOptions: TransitionOptions<*, Drawable>? = null,
|
||||
requestOptions: RequestOptions.() -> Unit
|
||||
): ViewTarget<ImageView, Drawable> = loadAny(string, transitionOptions, requestOptions)
|
||||
): ViewTarget<ImageView, Drawable> = loadAny(string, requestOptions)
|
||||
|
||||
@JvmSynthetic
|
||||
inline fun ImageView.load(
|
||||
file: File?,
|
||||
transitionOptions: TransitionOptions<*, Drawable>? = null,
|
||||
requestOptions: RequestOptions.() -> Unit
|
||||
): ViewTarget<ImageView, Drawable> = loadAny(file, transitionOptions, requestOptions)
|
||||
): ViewTarget<ImageView, Drawable> = loadAny(file, requestOptions)
|
||||
|
||||
@JvmSynthetic
|
||||
fun ImageView.loadAny(
|
||||
@@ -148,7 +148,6 @@ fun ImageView.loadAny(
|
||||
@JvmSynthetic
|
||||
inline fun ImageView.loadAny(
|
||||
data: Any?,
|
||||
transitionOptions: TransitionOptions<*, Drawable>? = null,
|
||||
requestOptions: RequestOptions.() -> Unit
|
||||
): ViewTarget<ImageView, Drawable> {
|
||||
val factory = DrawableCrossFadeFactory.Builder().setCrossFadeEnabled(true).build()
|
||||
|
||||
@@ -36,7 +36,6 @@ import com.aurora.store.util.CommonUtil
|
||||
|
||||
fun Fragment.applyTheme(
|
||||
themeId: Int,
|
||||
accentId: Int = 1,
|
||||
shouldApplyTransition: Boolean = true,
|
||||
position: Int = 2
|
||||
) {
|
||||
@@ -142,4 +141,4 @@ private fun AppCompatActivity.setLightNavigationBar() {
|
||||
flags = flags or View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR
|
||||
}
|
||||
window.decorView.systemUiVisibility = flags
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,11 +36,11 @@ class AuroraGlide : AppGlideModule() {
|
||||
val memoryCacheSizeBytes = 1024 * 1024 * 50
|
||||
builder.setMemoryCache(LruResourceCache(memoryCacheSizeBytes.toLong()))
|
||||
builder.setDiskCache(InternalCacheDiskCacheFactory(context, memoryCacheSizeBytes.toLong()))
|
||||
builder.setDefaultRequestOptions(requestOptions(context))
|
||||
builder.setDefaultRequestOptions(requestOptions())
|
||||
}
|
||||
|
||||
companion object {
|
||||
private fun requestOptions(context: Context): RequestOptions {
|
||||
private fun requestOptions(): RequestOptions {
|
||||
return RequestOptions()
|
||||
.signature(ObjectKey(System.currentTimeMillis() / (24 * 60 * 60 * 1000)))
|
||||
.centerCrop()
|
||||
@@ -50,4 +50,4 @@ class AuroraGlide : AppGlideModule() {
|
||||
.skipMemoryCache(false)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,11 +58,11 @@ object RequestBuilder {
|
||||
File.FileType.BASE,
|
||||
File.FileType.SPLIT -> PathUtil.getApkDownloadFile(context, app, file)
|
||||
File.FileType.OBB,
|
||||
File.FileType.PATCH -> PathUtil.getObbDownloadFile(context, app, file)
|
||||
File.FileType.PATCH -> PathUtil.getObbDownloadFile(app, file)
|
||||
}
|
||||
return Request(file.url, fileName).apply {
|
||||
attachMetaData(context, app)
|
||||
attachExtra(app)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,11 +30,11 @@ class AMInstaller(context: Context) : InstallerBase(context) {
|
||||
}
|
||||
when {
|
||||
fileList.size == 1 -> {
|
||||
xInstall(packageName, File(fileList.first()))
|
||||
xInstall(File(fileList.first()))
|
||||
}
|
||||
fileList.size > 1 -> {
|
||||
val apks = zipFile(fileList)
|
||||
xInstall(packageName, apks)
|
||||
xInstall(apks)
|
||||
}
|
||||
else -> {
|
||||
throw Exception("Invalid data, expecting non empty fileList")
|
||||
@@ -43,7 +43,7 @@ class AMInstaller(context: Context) : InstallerBase(context) {
|
||||
}
|
||||
}
|
||||
|
||||
private fun xInstall(packageName: String, file: File) {
|
||||
private fun xInstall(file: File) {
|
||||
val intent: Intent = Intent(Intent.ACTION_VIEW)
|
||||
intent.setDataAndType(
|
||||
FileProvider.getUriForFile(
|
||||
@@ -72,4 +72,4 @@ class AMInstaller(context: Context) : InstallerBase(context) {
|
||||
out.close()
|
||||
return File(outPath)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,12 +42,12 @@ class NativeInstaller(context: Context) : InstallerBase(context) {
|
||||
}
|
||||
}
|
||||
}.forEach {
|
||||
xInstall(packageName, it)
|
||||
xInstall(it)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun xInstall(packageName: String, file: File) {
|
||||
private fun xInstall(file: File) {
|
||||
val intent: Intent
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
||||
@@ -64,4 +64,4 @@ class NativeInstaller(context: Context) : InstallerBase(context) {
|
||||
intent.putExtra(Intent.EXTRA_INSTALLER_PACKAGE_NAME, "com.android.vending")
|
||||
context.startActivity(intent)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,14 +48,14 @@ object FuelClient : IHttpClient {
|
||||
val parameters = params
|
||||
.map { it.key to it.value }
|
||||
.toList()
|
||||
val (request, response, result) = Fuel.get(url, parameters)
|
||||
val (request, response, _) = Fuel.get(url, parameters)
|
||||
.header(headers)
|
||||
.response()
|
||||
return buildPlayResponse(response, request)
|
||||
}
|
||||
|
||||
override fun getAuth(url: String): PlayResponse {
|
||||
val (request, response, result) = Fuel.get(url)
|
||||
val (request, response, _) = Fuel.get(url)
|
||||
.appendHeader(
|
||||
"User-Agent",
|
||||
"${BuildConfig.APPLICATION_ID}-${BuildConfig.VERSION_NAME}-${BuildConfig.VERSION_CODE}"
|
||||
@@ -69,14 +69,14 @@ object FuelClient : IHttpClient {
|
||||
headers: Map<String, String>,
|
||||
paramString: String
|
||||
): PlayResponse {
|
||||
val (request, response, result) = Fuel.get(url + paramString)
|
||||
val (request, response, _) = Fuel.get(url + paramString)
|
||||
.header(headers)
|
||||
.response()
|
||||
return buildPlayResponse(response, request)
|
||||
}
|
||||
|
||||
override fun post(url: String, headers: Map<String, String>, body: ByteArray): PlayResponse {
|
||||
val (request, response, result) = Fuel.post(url)
|
||||
val (request, response, _) = Fuel.post(url)
|
||||
.header(headers)
|
||||
.appendHeader(Headers.CONTENT_TYPE, "application/x-protobuf")
|
||||
.body(body, Charset.defaultCharset())
|
||||
@@ -92,14 +92,14 @@ object FuelClient : IHttpClient {
|
||||
val parameters = params
|
||||
.map { it.key to it.value }
|
||||
.toList()
|
||||
val (request, response, result) = Fuel.post(url, parameters)
|
||||
val (request, response, _) = Fuel.post(url, parameters)
|
||||
.header(headers)
|
||||
.response()
|
||||
return buildPlayResponse(response, request)
|
||||
}
|
||||
|
||||
override fun postAuth(url: String, body: ByteArray): PlayResponse {
|
||||
val (request, response, result) = Fuel.post(url)
|
||||
val (request, response, _) = Fuel.post(url)
|
||||
.appendHeader(
|
||||
"User-Agent",
|
||||
"${BuildConfig.APPLICATION_ID}-${BuildConfig.VERSION_NAME}-${BuildConfig.VERSION_CODE}"
|
||||
|
||||
@@ -27,7 +27,6 @@ import android.graphics.Color
|
||||
import android.os.Build
|
||||
import android.os.IBinder
|
||||
import android.util.ArrayMap
|
||||
import androidx.annotation.RequiresApi
|
||||
import androidx.core.app.NotificationCompat
|
||||
import androidx.core.app.NotificationManagerCompat
|
||||
import androidx.core.content.ContextCompat
|
||||
@@ -351,7 +350,7 @@ class NotificationService : Service() {
|
||||
return PendingIntent.getActivity(this, 0, intent, flags)
|
||||
}
|
||||
|
||||
private fun getInstallIntent(packageName: String, versionCode: String): PendingIntent {
|
||||
private fun getInstallIntent(packageName: String): PendingIntent {
|
||||
val intent = Intent(this, InstallReceiver::class.java)
|
||||
intent.putExtra(Constants.STRING_EXTRA, packageName)
|
||||
val flags = if (isMAndAbove())
|
||||
|
||||
@@ -70,17 +70,17 @@ object PathUtil {
|
||||
return "${getExternalPath()}/Exports/"
|
||||
}
|
||||
|
||||
private fun getObbDownloadPath(context: Context, app: App): String {
|
||||
private fun getObbDownloadPath(app: App): String {
|
||||
return Environment.getExternalStorageDirectory()
|
||||
.toString() + "/Android/obb/" + app.packageName
|
||||
}
|
||||
|
||||
fun getObbDownloadFile(context: Context, app: App, file: File): String {
|
||||
val obbDir = getObbDownloadPath(context, app)
|
||||
fun getObbDownloadFile(app: App, file: File): String {
|
||||
val obbDir = getObbDownloadPath(app)
|
||||
return "$obbDir/${file.name}"
|
||||
}
|
||||
}
|
||||
|
||||
fun Context.isExternalStorageEnable(): Boolean {
|
||||
return Preferences.getBoolean(this, Preferences.PREFERENCE_DOWNLOAD_EXTERNAL)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,11 +35,11 @@ class UpdateButton : RelativeLayout {
|
||||
private lateinit var B: ViewUpdateButtonBinding
|
||||
|
||||
constructor(context: Context) : super(context) {
|
||||
init(context, null)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context, attrs: AttributeSet?) : super(context, attrs) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||
@@ -47,7 +47,7 @@ class UpdateButton : RelativeLayout {
|
||||
attrs,
|
||||
defStyleAttr
|
||||
) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
@RequiresApi(Build.VERSION_CODES.LOLLIPOP)
|
||||
@@ -57,10 +57,10 @@ class UpdateButton : RelativeLayout {
|
||||
defStyleAttr: Int,
|
||||
defStyleRes: Int
|
||||
) : super(context, attrs, defStyleAttr, defStyleRes) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
private fun init(context: Context, attrs: AttributeSet?) {
|
||||
private fun init(context: Context) {
|
||||
val view = inflate(context, R.layout.view_update_button, this)
|
||||
B = ViewUpdateButtonBinding.bind(view)
|
||||
}
|
||||
@@ -101,4 +101,4 @@ class UpdateButton : RelativeLayout {
|
||||
fun addInstallOnClickListener(onClickListener: OnClickListener?) {
|
||||
B.btnInstall.setOnClickListener(onClickListener)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,11 +41,11 @@ class AccentView : RelativeLayout {
|
||||
private lateinit var B: ViewAccentBinding
|
||||
|
||||
constructor(context: Context?) : super(context) {
|
||||
init(context, null)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||
@@ -53,10 +53,10 @@ class AccentView : RelativeLayout {
|
||||
attrs,
|
||||
defStyleAttr
|
||||
) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
private fun init(context: Context?, attrs: AttributeSet?) {
|
||||
private fun init(context: Context?) {
|
||||
val view = inflate(context, R.layout.view_accent, this)
|
||||
B = ViewAccentBinding.bind(view)
|
||||
}
|
||||
@@ -79,4 +79,4 @@ class AccentView : RelativeLayout {
|
||||
fun click(onClickListener: OnClickListener?) {
|
||||
B.root.setOnClickListener(onClickListener)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,11 +32,11 @@ class AppProgressView : RelativeLayout {
|
||||
private lateinit var B: ViewAppProgressBinding
|
||||
|
||||
constructor(context: Context?) : super(context) {
|
||||
init(context, null)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||
@@ -44,11 +44,11 @@ class AppProgressView : RelativeLayout {
|
||||
attrs,
|
||||
defStyleAttr
|
||||
) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
private fun init(context: Context?, attrs: AttributeSet?) {
|
||||
private fun init(context: Context?) {
|
||||
val view = inflate(context, R.layout.view_app_progress, this)
|
||||
B = ViewAppProgressBinding.bind(view)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,11 +43,11 @@ class BlackListView : RelativeLayout {
|
||||
private lateinit var B: ViewBlackBinding
|
||||
|
||||
constructor(context: Context?) : super(context) {
|
||||
init(context, null)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||
@@ -55,10 +55,10 @@ class BlackListView : RelativeLayout {
|
||||
attrs,
|
||||
defStyleAttr
|
||||
) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
private fun init(context: Context?, attrs: AttributeSet?) {
|
||||
private fun init(context: Context?) {
|
||||
val view = inflate(context, R.layout.view_black, this)
|
||||
B = ViewBlackBinding.bind(view)
|
||||
}
|
||||
@@ -99,4 +99,4 @@ class BlackListView : RelativeLayout {
|
||||
fun clear() {
|
||||
B.imgIcon.clear()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,11 +42,11 @@ class CategoryView : RelativeLayout {
|
||||
private lateinit var B: ViewCategoryBinding
|
||||
|
||||
constructor(context: Context?) : super(context) {
|
||||
init(context, null)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||
@@ -54,10 +54,10 @@ class CategoryView : RelativeLayout {
|
||||
attrs,
|
||||
defStyleAttr
|
||||
) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
private fun init(context: Context?, attrs: AttributeSet?) {
|
||||
private fun init(context: Context?) {
|
||||
val view = inflate(context, R.layout.view_category, this)
|
||||
B = ViewCategoryBinding.bind(view)
|
||||
}
|
||||
@@ -78,4 +78,4 @@ class CategoryView : RelativeLayout {
|
||||
fun clear() {
|
||||
B.imgBackground.clear()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,11 +57,11 @@ class DownloadView : RelativeLayout {
|
||||
.create()
|
||||
|
||||
constructor(context: Context?) : super(context) {
|
||||
init(context, null)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||
@@ -69,10 +69,10 @@ class DownloadView : RelativeLayout {
|
||||
attrs,
|
||||
defStyleAttr
|
||||
) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
private fun init(context: Context?, attrs: AttributeSet?) {
|
||||
private fun init(context: Context?) {
|
||||
val view = inflate(context, R.layout.view_download, this)
|
||||
B = ViewDownloadBinding.bind(view)
|
||||
}
|
||||
|
||||
@@ -22,7 +22,6 @@ package com.aurora.store.view.epoxy.views
|
||||
import android.content.Context
|
||||
import android.util.AttributeSet
|
||||
import android.widget.RelativeLayout
|
||||
import androidx.core.text.HtmlCompat
|
||||
import com.airbnb.epoxy.CallbackProp
|
||||
import com.airbnb.epoxy.ModelProp
|
||||
import com.airbnb.epoxy.ModelView
|
||||
@@ -38,11 +37,11 @@ class EditorHeadView : RelativeLayout {
|
||||
private lateinit var B: ViewEditorHeadBinding
|
||||
|
||||
constructor(context: Context?) : super(context) {
|
||||
init(context, null)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||
@@ -50,10 +49,10 @@ class EditorHeadView : RelativeLayout {
|
||||
attrs,
|
||||
defStyleAttr
|
||||
) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
private fun init(context: Context?, attrs: AttributeSet?) {
|
||||
private fun init(context: Context?) {
|
||||
val view = inflate(context, R.layout.view_editor_head, this)
|
||||
B = ViewEditorHeadBinding.bind(view)
|
||||
}
|
||||
@@ -67,4 +66,4 @@ class EditorHeadView : RelativeLayout {
|
||||
fun title(title: String) {
|
||||
B.title.text = title
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,11 +44,11 @@ class EditorImageView : RelativeLayout {
|
||||
private lateinit var B: ViewEditorImageBinding
|
||||
|
||||
constructor(context: Context?) : super(context) {
|
||||
init(context, null)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||
@@ -56,10 +56,10 @@ class EditorImageView : RelativeLayout {
|
||||
attrs,
|
||||
defStyleAttr
|
||||
) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
private fun init(context: Context?, attrs: AttributeSet?) {
|
||||
private fun init(context: Context?) {
|
||||
val view = inflate(context, R.layout.view_editor_image, this)
|
||||
B = ViewEditorImageBinding.bind(view)
|
||||
}
|
||||
@@ -96,4 +96,4 @@ class EditorImageView : RelativeLayout {
|
||||
fun clear() {
|
||||
B.img.clear()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,6 @@ package com.aurora.store.view.epoxy.views
|
||||
import android.content.Context
|
||||
import android.util.AttributeSet
|
||||
import android.widget.RelativeLayout
|
||||
import androidx.annotation.Nullable
|
||||
import com.airbnb.epoxy.CallbackProp
|
||||
import com.airbnb.epoxy.ModelProp
|
||||
import com.airbnb.epoxy.ModelView
|
||||
@@ -40,11 +39,11 @@ class HeaderView : RelativeLayout {
|
||||
private lateinit var B: ViewHeaderBinding
|
||||
|
||||
constructor(context: Context?) : super(context) {
|
||||
init(context, null)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||
@@ -52,10 +51,10 @@ class HeaderView : RelativeLayout {
|
||||
attrs,
|
||||
defStyleAttr
|
||||
) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
private fun init(context: Context?, attrs: AttributeSet?) {
|
||||
private fun init(context: Context?) {
|
||||
val view = inflate(context, R.layout.view_header, this)
|
||||
B = ViewHeaderBinding.bind(view)
|
||||
}
|
||||
|
||||
@@ -35,11 +35,11 @@ class HorizontalDividerView : RelativeLayout {
|
||||
private lateinit var B: ViewDividerBinding
|
||||
|
||||
constructor(context: Context?) : super(context) {
|
||||
init(context, null)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||
@@ -47,11 +47,11 @@ class HorizontalDividerView : RelativeLayout {
|
||||
attrs,
|
||||
defStyleAttr
|
||||
) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
private fun init(context: Context?, attrs: AttributeSet?) {
|
||||
private fun init(context: Context?) {
|
||||
val view = inflate(context, R.layout.view_divider, this)
|
||||
B = ViewDividerBinding.bind(view)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,11 +39,11 @@ class MinimalHeaderView : RelativeLayout {
|
||||
private lateinit var B: ViewActionHeaderBinding
|
||||
|
||||
constructor(context: Context?) : super(context) {
|
||||
init(context, null)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||
@@ -51,10 +51,10 @@ class MinimalHeaderView : RelativeLayout {
|
||||
attrs,
|
||||
defStyleAttr
|
||||
) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
private fun init(context: Context?, attrs: AttributeSet?) {
|
||||
private fun init(context: Context?) {
|
||||
val view = inflate(context, R.layout.view_action_header, this)
|
||||
B = ViewActionHeaderBinding.bind(view)
|
||||
}
|
||||
@@ -73,4 +73,4 @@ class MinimalHeaderView : RelativeLayout {
|
||||
fun clear() {
|
||||
B.imgAction.visibility = VISIBLE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,11 +43,11 @@ class SearchSuggestionView : RelativeLayout {
|
||||
private lateinit var B: ViewSearchSuggestionBinding
|
||||
|
||||
constructor(context: Context?) : super(context) {
|
||||
init(context, null)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||
@@ -55,10 +55,10 @@ class SearchSuggestionView : RelativeLayout {
|
||||
attrs,
|
||||
defStyleAttr
|
||||
) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
private fun init(context: Context?, attrs: AttributeSet?) {
|
||||
private fun init(context: Context?) {
|
||||
val view = inflate(context, R.layout.view_search_suggestion, this)
|
||||
B = ViewSearchSuggestionBinding.bind(view)
|
||||
}
|
||||
@@ -95,4 +95,4 @@ class SearchSuggestionView : RelativeLayout {
|
||||
fun clear() {
|
||||
B.img.clear()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,11 +39,11 @@ class ThemeView : RelativeLayout {
|
||||
private lateinit var B: ViewThemeBinding
|
||||
|
||||
constructor(context: Context?) : super(context) {
|
||||
init(context, null)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||
@@ -51,10 +51,10 @@ class ThemeView : RelativeLayout {
|
||||
attrs,
|
||||
defStyleAttr
|
||||
) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
private fun init(context: Context?, attrs: AttributeSet?) {
|
||||
private fun init(context: Context?) {
|
||||
val view = inflate(context, R.layout.view_theme, this)
|
||||
B = ViewThemeBinding.bind(view)
|
||||
}
|
||||
@@ -74,4 +74,4 @@ class ThemeView : RelativeLayout {
|
||||
fun checked(onCheckedChangeListener: CompoundButton.OnCheckedChangeListener?) {
|
||||
B.radiobutton.setOnCheckedChangeListener(onCheckedChangeListener)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,11 +39,11 @@ class UpdateHeaderView : RelativeLayout {
|
||||
private lateinit var B: ViewHeaderUpdateBinding
|
||||
|
||||
constructor(context: Context?) : super(context) {
|
||||
init(context, null)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||
@@ -51,10 +51,10 @@ class UpdateHeaderView : RelativeLayout {
|
||||
attrs,
|
||||
defStyleAttr
|
||||
) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
private fun init(context: Context?, attrs: AttributeSet?) {
|
||||
private fun init(context: Context?) {
|
||||
val view = inflate(context, R.layout.view_header_update, this)
|
||||
B = ViewHeaderUpdateBinding.bind(view)
|
||||
}
|
||||
@@ -78,4 +78,4 @@ class UpdateHeaderView : RelativeLayout {
|
||||
fun clear() {
|
||||
B.btnAction.isEnabled = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,11 +45,11 @@ class AppListView : RelativeLayout {
|
||||
private lateinit var B: ViewAppListBinding
|
||||
|
||||
constructor(context: Context?) : super(context) {
|
||||
init(context, null)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||
@@ -57,10 +57,10 @@ class AppListView : RelativeLayout {
|
||||
attrs,
|
||||
defStyleAttr
|
||||
) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
private fun init(context: Context?, attrs: AttributeSet?) {
|
||||
private fun init(context: Context?) {
|
||||
val view = inflate(context, R.layout.view_app_list, this)
|
||||
B = ViewAppListBinding.bind(view)
|
||||
}
|
||||
@@ -108,4 +108,4 @@ class AppListView : RelativeLayout {
|
||||
fun clear() {
|
||||
B.imgIcon.clear()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,11 +49,11 @@ class AppUpdateView : RelativeLayout {
|
||||
private lateinit var B: ViewAppUpdateBinding
|
||||
|
||||
constructor(context: Context?) : super(context) {
|
||||
init(context, null)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||
@@ -61,10 +61,10 @@ class AppUpdateView : RelativeLayout {
|
||||
attrs,
|
||||
defStyleAttr
|
||||
) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
private fun init(context: Context?, attrs: AttributeSet?) {
|
||||
private fun init(context: Context?) {
|
||||
val view = inflate(context, R.layout.view_app_update, this)
|
||||
B = ViewAppUpdateBinding.bind(view)
|
||||
}
|
||||
@@ -173,4 +173,4 @@ class AppUpdateView : RelativeLayout {
|
||||
B.headerIndicator.removeCallbacks { }
|
||||
B.progressDownload.invisible()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,11 +45,11 @@ class AppView : RelativeLayout {
|
||||
private lateinit var B: ViewAppBinding
|
||||
|
||||
constructor(context: Context?) : super(context) {
|
||||
init(context, null)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||
@@ -57,10 +57,10 @@ class AppView : RelativeLayout {
|
||||
attrs,
|
||||
defStyleAttr
|
||||
) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
private fun init(context: Context?, attrs: AttributeSet?) {
|
||||
private fun init(context: Context?) {
|
||||
val view = inflate(context, R.layout.view_app, this)
|
||||
B = ViewAppBinding.bind(view)
|
||||
}
|
||||
@@ -91,4 +91,4 @@ class AppView : RelativeLayout {
|
||||
fun clear() {
|
||||
B.imgIcon.clear()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,11 +38,11 @@ class NoAppAltView : RelativeLayout {
|
||||
private lateinit var B: ViewNoAppAltBinding
|
||||
|
||||
constructor(context: Context?) : super(context) {
|
||||
init(context, null)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||
@@ -50,10 +50,10 @@ class NoAppAltView : RelativeLayout {
|
||||
attrs,
|
||||
defStyleAttr
|
||||
) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
private fun init(context: Context?, attrs: AttributeSet?) {
|
||||
private fun init(context: Context?) {
|
||||
val view = inflate(context, R.layout.view_no_app_alt, this)
|
||||
B = ViewNoAppAltBinding.bind(view)
|
||||
}
|
||||
@@ -62,4 +62,4 @@ class NoAppAltView : RelativeLayout {
|
||||
fun message(message: String) {
|
||||
B.txtMsg.text = message
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,11 +39,11 @@ class NoAppView : RelativeLayout {
|
||||
private lateinit var B: ViewNoAppBinding
|
||||
|
||||
constructor(context: Context?) : super(context) {
|
||||
init(context, null)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||
@@ -51,10 +51,10 @@ class NoAppView : RelativeLayout {
|
||||
attrs,
|
||||
defStyleAttr
|
||||
) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
private fun init(context: Context?, attrs: AttributeSet?) {
|
||||
private fun init(context: Context?) {
|
||||
val view = inflate(context, R.layout.view_no_app, this)
|
||||
B = ViewNoAppBinding.bind(view)
|
||||
}
|
||||
@@ -70,4 +70,4 @@ class NoAppView : RelativeLayout {
|
||||
B.img.setImageDrawable(ContextCompat.getDrawable(context, icon))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,11 +43,11 @@ class AppDependentView : RelativeLayout {
|
||||
private lateinit var B: ViewAppDependentBinding
|
||||
|
||||
constructor(context: Context?) : super(context) {
|
||||
init(context, null)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||
@@ -55,10 +55,10 @@ class AppDependentView : RelativeLayout {
|
||||
attrs,
|
||||
defStyleAttr
|
||||
) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
private fun init(context: Context?, attrs: AttributeSet?) {
|
||||
private fun init(context: Context?) {
|
||||
val view = inflate(context, R.layout.view_app_dependent, this)
|
||||
B = ViewAppDependentBinding.bind(view)
|
||||
}
|
||||
@@ -86,4 +86,4 @@ class AppDependentView : RelativeLayout {
|
||||
fun clear() {
|
||||
B.imgIcon.clear()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,11 +41,11 @@ class BadgeView : RelativeLayout {
|
||||
private lateinit var B: ViewBadgeBinding
|
||||
|
||||
constructor(context: Context?) : super(context) {
|
||||
init(context, null)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||
@@ -53,10 +53,10 @@ class BadgeView : RelativeLayout {
|
||||
attrs,
|
||||
defStyleAttr
|
||||
) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
private fun init(context: Context?, attrs: AttributeSet?) {
|
||||
private fun init(context: Context?) {
|
||||
val view = inflate(context, R.layout.view_badge, this)
|
||||
B = ViewBadgeBinding.bind(view)
|
||||
}
|
||||
@@ -88,4 +88,4 @@ class BadgeView : RelativeLayout {
|
||||
@OnViewRecycled
|
||||
fun clear() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,11 +40,11 @@ class ExodusView : RelativeLayout {
|
||||
private lateinit var B: ViewExodusBinding
|
||||
|
||||
constructor(context: Context?) : super(context) {
|
||||
init(context, null)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||
@@ -52,10 +52,10 @@ class ExodusView : RelativeLayout {
|
||||
attrs,
|
||||
defStyleAttr
|
||||
) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
private fun init(context: Context?, attrs: AttributeSet?) {
|
||||
private fun init(context: Context?) {
|
||||
val view = inflate(context, R.layout.view_exodus, this)
|
||||
B = ViewExodusBinding.bind(view)
|
||||
}
|
||||
@@ -75,4 +75,4 @@ class ExodusView : RelativeLayout {
|
||||
@OnViewRecycled
|
||||
fun clear() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,11 +39,11 @@ class FileView : RelativeLayout {
|
||||
private lateinit var B: ViewFileBinding
|
||||
|
||||
constructor(context: Context?) : super(context) {
|
||||
init(context, null)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||
@@ -51,10 +51,10 @@ class FileView : RelativeLayout {
|
||||
attrs,
|
||||
defStyleAttr
|
||||
) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
private fun init(context: Context?, attrs: AttributeSet?) {
|
||||
private fun init(context: Context?) {
|
||||
val view = inflate(context, R.layout.view_file, this)
|
||||
B = ViewFileBinding.bind(view)
|
||||
}
|
||||
@@ -64,4 +64,4 @@ class FileView : RelativeLayout {
|
||||
B.line1.text = file.name
|
||||
B.line2.text = CommonUtil.addSiPrefix(file.size)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,11 +39,11 @@ class InfoView : RelativeLayout {
|
||||
private lateinit var B: ViewInfoBinding
|
||||
|
||||
constructor(context: Context?) : super(context) {
|
||||
init(context, null)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||
@@ -51,10 +51,10 @@ class InfoView : RelativeLayout {
|
||||
attrs,
|
||||
defStyleAttr
|
||||
) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
private fun init(context: Context?, attrs: AttributeSet?) {
|
||||
private fun init(context: Context?) {
|
||||
val view = inflate(context, R.layout.view_info, this)
|
||||
B = ViewInfoBinding.bind(view)
|
||||
}
|
||||
|
||||
@@ -50,11 +50,11 @@ class LargeScreenshotView : RelativeLayout {
|
||||
private lateinit var B: ViewScreenshotLargeBinding
|
||||
|
||||
constructor(context: Context?) : super(context) {
|
||||
init(context, null)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||
@@ -62,10 +62,10 @@ class LargeScreenshotView : RelativeLayout {
|
||||
attrs,
|
||||
defStyleAttr
|
||||
) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
private fun init(context: Context?, attrs: AttributeSet?) {
|
||||
private fun init(context: Context?) {
|
||||
val view = inflate(context, R.layout.view_screenshot_large, this)
|
||||
B = ViewScreenshotLargeBinding.bind(view)
|
||||
}
|
||||
@@ -116,4 +116,4 @@ class LargeScreenshotView : RelativeLayout {
|
||||
fun clear() {
|
||||
B.img.clear()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,11 +51,11 @@ class MiniScreenshotView : RelativeLayout {
|
||||
}
|
||||
|
||||
constructor(context: Context?) : super(context) {
|
||||
init(context, null)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||
@@ -63,10 +63,10 @@ class MiniScreenshotView : RelativeLayout {
|
||||
attrs,
|
||||
defStyleAttr
|
||||
) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
private fun init(context: Context?, attrs: AttributeSet?) {
|
||||
private fun init(context: Context?) {
|
||||
val view = inflate(context, R.layout.view_screenshot_mini, this)
|
||||
B = ViewScreenshotMiniBinding.bind(view)
|
||||
}
|
||||
@@ -123,4 +123,4 @@ class MiniScreenshotView : RelativeLayout {
|
||||
fun clear() {
|
||||
B.img.clear()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,11 +42,11 @@ class MoreBadgeView : RelativeLayout {
|
||||
private lateinit var B: ViewMoreBadgeBinding
|
||||
|
||||
constructor(context: Context?) : super(context) {
|
||||
init(context, null)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||
@@ -54,10 +54,10 @@ class MoreBadgeView : RelativeLayout {
|
||||
attrs,
|
||||
defStyleAttr
|
||||
) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
private fun init(context: Context?, attrs: AttributeSet?) {
|
||||
private fun init(context: Context?) {
|
||||
val view = inflate(context, R.layout.view_more_badge, this)
|
||||
B = ViewMoreBadgeBinding.bind(view)
|
||||
}
|
||||
@@ -95,4 +95,4 @@ class MoreBadgeView : RelativeLayout {
|
||||
@OnViewRecycled
|
||||
fun clear() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,11 +45,11 @@ class ReviewView : RelativeLayout {
|
||||
private lateinit var B: ViewReviewBinding
|
||||
|
||||
constructor(context: Context?) : super(context) {
|
||||
init(context, null)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||
@@ -57,10 +57,10 @@ class ReviewView : RelativeLayout {
|
||||
attrs,
|
||||
defStyleAttr
|
||||
) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
private fun init(context: Context?, attrs: AttributeSet?) {
|
||||
private fun init(context: Context?) {
|
||||
val view = inflate(context, R.layout.view_review, this)
|
||||
B = ViewReviewBinding.bind(view)
|
||||
}
|
||||
@@ -96,4 +96,4 @@ class ReviewView : RelativeLayout {
|
||||
fun clear() {
|
||||
B.img.clear()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,11 +51,11 @@ class ScreenshotView : RelativeLayout {
|
||||
}
|
||||
|
||||
constructor(context: Context?) : super(context) {
|
||||
init(context, null)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||
@@ -63,10 +63,10 @@ class ScreenshotView : RelativeLayout {
|
||||
attrs,
|
||||
defStyleAttr
|
||||
) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
private fun init(context: Context?, attrs: AttributeSet?) {
|
||||
private fun init(context: Context?) {
|
||||
val view = inflate(context, R.layout.view_screenshot, this)
|
||||
B = ViewScreenshotBinding.bind(view)
|
||||
}
|
||||
@@ -123,4 +123,4 @@ class ScreenshotView : RelativeLayout {
|
||||
fun clear() {
|
||||
B.img.clear()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,11 +41,11 @@ class DashView : RelativeLayout {
|
||||
private lateinit var B: ViewDashBinding
|
||||
|
||||
constructor(context: Context?) : super(context) {
|
||||
init(context, null)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||
@@ -53,10 +53,10 @@ class DashView : RelativeLayout {
|
||||
attrs,
|
||||
defStyleAttr
|
||||
) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
private fun init(context: Context?, attrs: AttributeSet?) {
|
||||
private fun init(context: Context?) {
|
||||
val view = inflate(context, R.layout.view_dash, this)
|
||||
B = ViewDashBinding.bind(view)
|
||||
}
|
||||
@@ -81,4 +81,4 @@ class DashView : RelativeLayout {
|
||||
fun click(onClickListener: OnClickListener?) {
|
||||
B.root.setOnClickListener(onClickListener)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,11 +41,11 @@ class DeviceView : RelativeLayout {
|
||||
private lateinit var B: ViewDeviceBinding
|
||||
|
||||
constructor(context: Context?) : super(context) {
|
||||
init(context, null)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||
@@ -53,10 +53,10 @@ class DeviceView : RelativeLayout {
|
||||
attrs,
|
||||
defStyleAttr
|
||||
) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
private fun init(context: Context?, attrs: AttributeSet?) {
|
||||
private fun init(context: Context?) {
|
||||
val view = inflate(context, R.layout.view_device, this)
|
||||
B = ViewDeviceBinding.bind(view)
|
||||
}
|
||||
@@ -81,4 +81,4 @@ class DeviceView : RelativeLayout {
|
||||
fun checked(onCheckedChangeListener: CompoundButton.OnCheckedChangeListener?) {
|
||||
B.checkbox.setOnCheckedChangeListener(onCheckedChangeListener)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,11 +40,11 @@ class InstallerView : RelativeLayout {
|
||||
private lateinit var B: ViewInstallerBinding
|
||||
|
||||
constructor(context: Context?) : super(context) {
|
||||
init(context, null)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||
@@ -52,10 +52,10 @@ class InstallerView : RelativeLayout {
|
||||
attrs,
|
||||
defStyleAttr
|
||||
) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
private fun init(context: Context?, attrs: AttributeSet?) {
|
||||
private fun init(context: Context?) {
|
||||
val view = inflate(context, R.layout.view_installer, this)
|
||||
B = ViewInstallerBinding.bind(view)
|
||||
}
|
||||
@@ -81,4 +81,4 @@ class InstallerView : RelativeLayout {
|
||||
fun click(onClickListener: OnClickListener?) {
|
||||
B.root.setOnClickListener(onClickListener)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,11 +42,11 @@ class LinkView : RelativeLayout {
|
||||
private lateinit var B: ViewLinkBinding
|
||||
|
||||
constructor(context: Context?) : super(context) {
|
||||
init(context, null)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||
@@ -54,10 +54,10 @@ class LinkView : RelativeLayout {
|
||||
attrs,
|
||||
defStyleAttr
|
||||
) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
private fun init(context: Context?, attrs: AttributeSet?) {
|
||||
private fun init(context: Context?) {
|
||||
val view = inflate(context, R.layout.view_link, this)
|
||||
B = ViewLinkBinding.bind(view)
|
||||
}
|
||||
@@ -81,4 +81,4 @@ class LinkView : RelativeLayout {
|
||||
fun click(onClickListener: OnClickListener?) {
|
||||
B.root.setOnClickListener(onClickListener)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,11 +40,11 @@ class LocaleView : RelativeLayout {
|
||||
private lateinit var B: ViewLocaleBinding
|
||||
|
||||
constructor(context: Context?) : super(context) {
|
||||
init(context, null)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||
@@ -52,10 +52,10 @@ class LocaleView : RelativeLayout {
|
||||
attrs,
|
||||
defStyleAttr
|
||||
) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
private fun init(context: Context?, attrs: AttributeSet?) {
|
||||
private fun init(context: Context?) {
|
||||
val view = inflate(context, R.layout.view_locale, this)
|
||||
B = ViewLocaleBinding.bind(view)
|
||||
}
|
||||
@@ -78,4 +78,4 @@ class LocaleView : RelativeLayout {
|
||||
fun checked(onCheckedChangeListener: CompoundButton.OnCheckedChangeListener?) {
|
||||
B.checkbox.setOnCheckedChangeListener(onCheckedChangeListener)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,11 +40,11 @@ class PermissionView : RelativeLayout {
|
||||
private lateinit var B: ViewPermissionBinding
|
||||
|
||||
constructor(context: Context?) : super(context) {
|
||||
init(context, null)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||
@@ -52,10 +52,10 @@ class PermissionView : RelativeLayout {
|
||||
attrs,
|
||||
defStyleAttr
|
||||
) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
private fun init(context: Context?, attrs: AttributeSet?) {
|
||||
private fun init(context: Context?) {
|
||||
val view = inflate(context, R.layout.view_permission, this)
|
||||
B = ViewPermissionBinding.bind(view)
|
||||
}
|
||||
@@ -81,4 +81,4 @@ class PermissionView : RelativeLayout {
|
||||
fun click(onClickListener: OnClickListener?) {
|
||||
B.btnAction.setOnClickListener(onClickListener)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,11 +36,11 @@ class AppListViewShimmer : ShimmerFrameLayout {
|
||||
private lateinit var B: ViewAppListShimmerBinding
|
||||
|
||||
constructor(context: Context?) : super(context) {
|
||||
init(context, null)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||
@@ -48,11 +48,11 @@ class AppListViewShimmer : ShimmerFrameLayout {
|
||||
attrs,
|
||||
defStyleAttr
|
||||
) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
private fun init(context: Context?, attrs: AttributeSet?) {
|
||||
private fun init(context: Context?) {
|
||||
val view = inflate(context, R.layout.view_app_list_shimmer, this)
|
||||
B = ViewAppListShimmerBinding.bind(view)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,11 +36,11 @@ class AppViewShimmer : ShimmerFrameLayout {
|
||||
private lateinit var B: ViewAppShimmerBinding
|
||||
|
||||
constructor(context: Context?) : super(context) {
|
||||
init(context, null)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||
@@ -48,11 +48,11 @@ class AppViewShimmer : ShimmerFrameLayout {
|
||||
attrs,
|
||||
defStyleAttr
|
||||
) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
private fun init(context: Context?, attrs: AttributeSet?) {
|
||||
private fun init(context: Context?) {
|
||||
val view = inflate(context, R.layout.view_app_shimmer, this)
|
||||
B = ViewAppShimmerBinding.bind(view)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,11 +36,11 @@ class HeaderViewShimmer : ShimmerFrameLayout {
|
||||
private lateinit var B: ViewHeaderShimmerBinding
|
||||
|
||||
constructor(context: Context?) : super(context) {
|
||||
init(context, null)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||
@@ -48,11 +48,11 @@ class HeaderViewShimmer : ShimmerFrameLayout {
|
||||
attrs,
|
||||
defStyleAttr
|
||||
) {
|
||||
init(context, attrs)
|
||||
init(context)
|
||||
}
|
||||
|
||||
private fun init(context: Context?, attrs: AttributeSet?) {
|
||||
private fun init(context: Context?) {
|
||||
val view = inflate(context, R.layout.view_header_shimmer, this)
|
||||
B = ViewHeaderShimmerBinding.bind(view)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@ class TopChartContainerFragment : Fragment() {
|
||||
|
||||
private fun setupViewPager() {
|
||||
B.pager.adapter = ViewPagerAdapter(childFragmentManager, lifecycle, chartType)
|
||||
B.topTabGroup.setOnCheckedChangeListener { group, checkedId ->
|
||||
B.topTabGroup.setOnCheckedChangeListener { _, checkedId ->
|
||||
when (checkedId) {
|
||||
R.id.tab_top_free -> B.pager.setCurrentItem(0, true)
|
||||
R.id.tab_top_grossing -> B.pager.setCurrentItem(1, true)
|
||||
@@ -127,4 +127,4 @@ class TopChartContainerFragment : Fragment() {
|
||||
return tabFragments.size
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@ class DetailsReviewActivity : BaseActivity() {
|
||||
}
|
||||
|
||||
private fun attachChips() {
|
||||
B.chipGroup.setOnCheckedChangeListener { group, checkedId ->
|
||||
B.chipGroup.setOnCheckedChangeListener { _, checkedId ->
|
||||
when (checkedId) {
|
||||
R.id.filter_review_all -> filter = Review.Filter.ALL
|
||||
R.id.filter_review_critical -> filter = Review.Filter.CRITICAL
|
||||
|
||||
@@ -126,7 +126,7 @@ class AccentFragment : BaseFragment() {
|
||||
}
|
||||
|
||||
private fun updateAccent(accentId: Int) {
|
||||
applyTheme(themeId, accentId, position = 3)
|
||||
applyTheme(themeId, position = 3)
|
||||
save(PREFERENCE_THEME_ACCENT, accentId)
|
||||
}
|
||||
|
||||
@@ -192,4 +192,4 @@ class AccentFragment : BaseFragment() {
|
||||
object : TypeToken<MutableList<Accent?>?>() {}.type
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ class UIPreference : PreferenceFragmentCompat() {
|
||||
|
||||
save(Preferences.PREFERENCE_THEME_TYPE, themeId)
|
||||
|
||||
applyTheme(themeId, accentId, shouldApplyTransition = false)
|
||||
applyTheme(themeId, shouldApplyTransition = false)
|
||||
|
||||
SettingsActivity.shouldRestart = true
|
||||
true
|
||||
@@ -66,11 +66,11 @@ class UIPreference : PreferenceFragmentCompat() {
|
||||
|
||||
save(Preferences.PREFERENCE_THEME_ACCENT, accentId)
|
||||
|
||||
applyTheme(themeId, accentId, shouldApplyTransition = false)
|
||||
applyTheme(themeId, shouldApplyTransition = false)
|
||||
|
||||
SettingsActivity.shouldRestart = true
|
||||
true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user