diff --git a/app/src/main/java/com/aurora/extensions/Glide.kt b/app/src/main/java/com/aurora/extensions/Glide.kt index dd7ae9500..18f710d7e 100644 --- a/app/src/main/java/com/aurora/extensions/Glide.kt +++ b/app/src/main/java/com/aurora/extensions/Glide.kt @@ -86,49 +86,49 @@ inline fun ImageView.load( bitmap: Bitmap?, transitionOptions: TransitionOptions<*, Drawable>? = null, requestOptions: RequestOptions.() -> Unit -): ViewTarget = loadAny(bitmap, transitionOptions, requestOptions) +): ViewTarget = loadAny(bitmap, requestOptions) @JvmSynthetic inline fun ImageView.load( byteArray: ByteArray?, transitionOptions: TransitionOptions<*, Drawable>? = null, requestOptions: RequestOptions.() -> Unit -): ViewTarget = loadAny(byteArray, transitionOptions, requestOptions) +): ViewTarget = loadAny(byteArray, requestOptions) @JvmSynthetic inline fun ImageView.load( drawable: Drawable?, transitionOptions: TransitionOptions<*, Drawable>? = null, requestOptions: RequestOptions.() -> Unit -): ViewTarget = loadAny(drawable, transitionOptions, requestOptions) +): ViewTarget = loadAny(drawable, requestOptions) @JvmSynthetic inline fun ImageView.load( @RawRes @DrawableRes resourceId: Int?, transitionOptions: TransitionOptions<*, Drawable>? = null, requestOptions: RequestOptions.() -> Unit -): ViewTarget = loadAny(resourceId, transitionOptions, requestOptions) +): ViewTarget = loadAny(resourceId, requestOptions) @JvmSynthetic inline fun ImageView.load( uri: Uri?, transitionOptions: TransitionOptions<*, Drawable>? = null, requestOptions: RequestOptions.() -> Unit -): ViewTarget = loadAny(uri, transitionOptions, requestOptions) +): ViewTarget = loadAny(uri, requestOptions) @JvmSynthetic inline fun ImageView.load( string: String?, transitionOptions: TransitionOptions<*, Drawable>? = null, requestOptions: RequestOptions.() -> Unit -): ViewTarget = loadAny(string, transitionOptions, requestOptions) +): ViewTarget = loadAny(string, requestOptions) @JvmSynthetic inline fun ImageView.load( file: File?, transitionOptions: TransitionOptions<*, Drawable>? = null, requestOptions: RequestOptions.() -> Unit -): ViewTarget = loadAny(file, transitionOptions, requestOptions) +): ViewTarget = 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 { val factory = DrawableCrossFadeFactory.Builder().setCrossFadeEnabled(true).build() diff --git a/app/src/main/java/com/aurora/extensions/ThemeEngine.kt b/app/src/main/java/com/aurora/extensions/ThemeEngine.kt index 06121fb41..7e0e92d40 100644 --- a/app/src/main/java/com/aurora/extensions/ThemeEngine.kt +++ b/app/src/main/java/com/aurora/extensions/ThemeEngine.kt @@ -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 -} \ No newline at end of file +} diff --git a/app/src/main/java/com/aurora/store/AuroraGlide.kt b/app/src/main/java/com/aurora/store/AuroraGlide.kt index 2f6ea97a4..de9605f41 100644 --- a/app/src/main/java/com/aurora/store/AuroraGlide.kt +++ b/app/src/main/java/com/aurora/store/AuroraGlide.kt @@ -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) } } -} \ No newline at end of file +} diff --git a/app/src/main/java/com/aurora/store/data/downloader/RequestBuilder.kt b/app/src/main/java/com/aurora/store/data/downloader/RequestBuilder.kt index 30752d7ea..6d88c7d43 100644 --- a/app/src/main/java/com/aurora/store/data/downloader/RequestBuilder.kt +++ b/app/src/main/java/com/aurora/store/data/downloader/RequestBuilder.kt @@ -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) } } -} \ No newline at end of file +} diff --git a/app/src/main/java/com/aurora/store/data/installer/AMInstaller.kt b/app/src/main/java/com/aurora/store/data/installer/AMInstaller.kt index dc314a31a..f1bf1da2f 100644 --- a/app/src/main/java/com/aurora/store/data/installer/AMInstaller.kt +++ b/app/src/main/java/com/aurora/store/data/installer/AMInstaller.kt @@ -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) } -} \ No newline at end of file +} diff --git a/app/src/main/java/com/aurora/store/data/installer/NativeInstaller.kt b/app/src/main/java/com/aurora/store/data/installer/NativeInstaller.kt index 9f1860abc..950f4292f 100644 --- a/app/src/main/java/com/aurora/store/data/installer/NativeInstaller.kt +++ b/app/src/main/java/com/aurora/store/data/installer/NativeInstaller.kt @@ -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) } -} \ No newline at end of file +} diff --git a/app/src/main/java/com/aurora/store/data/network/FuelClient.kt b/app/src/main/java/com/aurora/store/data/network/FuelClient.kt index 54e81924b..55ced83f0 100644 --- a/app/src/main/java/com/aurora/store/data/network/FuelClient.kt +++ b/app/src/main/java/com/aurora/store/data/network/FuelClient.kt @@ -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, 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, 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}" diff --git a/app/src/main/java/com/aurora/store/data/service/NotificationService.kt b/app/src/main/java/com/aurora/store/data/service/NotificationService.kt index fda9f1884..7e620888c 100644 --- a/app/src/main/java/com/aurora/store/data/service/NotificationService.kt +++ b/app/src/main/java/com/aurora/store/data/service/NotificationService.kt @@ -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()) diff --git a/app/src/main/java/com/aurora/store/util/PathUtil.kt b/app/src/main/java/com/aurora/store/util/PathUtil.kt index b5f952ee3..193fa2755 100644 --- a/app/src/main/java/com/aurora/store/util/PathUtil.kt +++ b/app/src/main/java/com/aurora/store/util/PathUtil.kt @@ -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) -} \ No newline at end of file +} diff --git a/app/src/main/java/com/aurora/store/view/custom/layouts/button/UpdateButton.kt b/app/src/main/java/com/aurora/store/view/custom/layouts/button/UpdateButton.kt index fbedd481d..c0db039a4 100644 --- a/app/src/main/java/com/aurora/store/view/custom/layouts/button/UpdateButton.kt +++ b/app/src/main/java/com/aurora/store/view/custom/layouts/button/UpdateButton.kt @@ -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) } -} \ No newline at end of file +} diff --git a/app/src/main/java/com/aurora/store/view/epoxy/views/AccentView.kt b/app/src/main/java/com/aurora/store/view/epoxy/views/AccentView.kt index 6202c8919..844cc17c2 100644 --- a/app/src/main/java/com/aurora/store/view/epoxy/views/AccentView.kt +++ b/app/src/main/java/com/aurora/store/view/epoxy/views/AccentView.kt @@ -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) } -} \ No newline at end of file +} diff --git a/app/src/main/java/com/aurora/store/view/epoxy/views/AppProgressView.kt b/app/src/main/java/com/aurora/store/view/epoxy/views/AppProgressView.kt index dcbf64d0e..9f54bee11 100644 --- a/app/src/main/java/com/aurora/store/view/epoxy/views/AppProgressView.kt +++ b/app/src/main/java/com/aurora/store/view/epoxy/views/AppProgressView.kt @@ -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) } -} \ No newline at end of file +} diff --git a/app/src/main/java/com/aurora/store/view/epoxy/views/BlackListView.kt b/app/src/main/java/com/aurora/store/view/epoxy/views/BlackListView.kt index 6f4b0bd53..055f05788 100644 --- a/app/src/main/java/com/aurora/store/view/epoxy/views/BlackListView.kt +++ b/app/src/main/java/com/aurora/store/view/epoxy/views/BlackListView.kt @@ -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() } -} \ No newline at end of file +} diff --git a/app/src/main/java/com/aurora/store/view/epoxy/views/CategoryView.kt b/app/src/main/java/com/aurora/store/view/epoxy/views/CategoryView.kt index 1c26eeb0b..4d8ae4f15 100644 --- a/app/src/main/java/com/aurora/store/view/epoxy/views/CategoryView.kt +++ b/app/src/main/java/com/aurora/store/view/epoxy/views/CategoryView.kt @@ -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() } -} \ No newline at end of file +} diff --git a/app/src/main/java/com/aurora/store/view/epoxy/views/DownloadView.kt b/app/src/main/java/com/aurora/store/view/epoxy/views/DownloadView.kt index 9de4f2dcd..78af39996 100644 --- a/app/src/main/java/com/aurora/store/view/epoxy/views/DownloadView.kt +++ b/app/src/main/java/com/aurora/store/view/epoxy/views/DownloadView.kt @@ -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) } diff --git a/app/src/main/java/com/aurora/store/view/epoxy/views/EditorHeadView.kt b/app/src/main/java/com/aurora/store/view/epoxy/views/EditorHeadView.kt index a43d8c769..6be12f34a 100644 --- a/app/src/main/java/com/aurora/store/view/epoxy/views/EditorHeadView.kt +++ b/app/src/main/java/com/aurora/store/view/epoxy/views/EditorHeadView.kt @@ -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 } -} \ No newline at end of file +} diff --git a/app/src/main/java/com/aurora/store/view/epoxy/views/EditorImageView.kt b/app/src/main/java/com/aurora/store/view/epoxy/views/EditorImageView.kt index a227792ca..b0f64bb27 100644 --- a/app/src/main/java/com/aurora/store/view/epoxy/views/EditorImageView.kt +++ b/app/src/main/java/com/aurora/store/view/epoxy/views/EditorImageView.kt @@ -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() } -} \ No newline at end of file +} diff --git a/app/src/main/java/com/aurora/store/view/epoxy/views/HeaderView.kt b/app/src/main/java/com/aurora/store/view/epoxy/views/HeaderView.kt index c6472d292..8475e2c7f 100644 --- a/app/src/main/java/com/aurora/store/view/epoxy/views/HeaderView.kt +++ b/app/src/main/java/com/aurora/store/view/epoxy/views/HeaderView.kt @@ -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) } diff --git a/app/src/main/java/com/aurora/store/view/epoxy/views/HorizontalDividerView.kt b/app/src/main/java/com/aurora/store/view/epoxy/views/HorizontalDividerView.kt index 6b7d0fc82..db47faa08 100644 --- a/app/src/main/java/com/aurora/store/view/epoxy/views/HorizontalDividerView.kt +++ b/app/src/main/java/com/aurora/store/view/epoxy/views/HorizontalDividerView.kt @@ -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) } -} \ No newline at end of file +} diff --git a/app/src/main/java/com/aurora/store/view/epoxy/views/MinimalHeaderView.kt b/app/src/main/java/com/aurora/store/view/epoxy/views/MinimalHeaderView.kt index 8fe5457f8..23ac02d6e 100644 --- a/app/src/main/java/com/aurora/store/view/epoxy/views/MinimalHeaderView.kt +++ b/app/src/main/java/com/aurora/store/view/epoxy/views/MinimalHeaderView.kt @@ -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 } -} \ No newline at end of file +} diff --git a/app/src/main/java/com/aurora/store/view/epoxy/views/SearchSuggestionView.kt b/app/src/main/java/com/aurora/store/view/epoxy/views/SearchSuggestionView.kt index 7100cfbed..23150f710 100644 --- a/app/src/main/java/com/aurora/store/view/epoxy/views/SearchSuggestionView.kt +++ b/app/src/main/java/com/aurora/store/view/epoxy/views/SearchSuggestionView.kt @@ -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() } -} \ No newline at end of file +} diff --git a/app/src/main/java/com/aurora/store/view/epoxy/views/ThemeView.kt b/app/src/main/java/com/aurora/store/view/epoxy/views/ThemeView.kt index 1845f7534..abac72446 100644 --- a/app/src/main/java/com/aurora/store/view/epoxy/views/ThemeView.kt +++ b/app/src/main/java/com/aurora/store/view/epoxy/views/ThemeView.kt @@ -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) } -} \ No newline at end of file +} diff --git a/app/src/main/java/com/aurora/store/view/epoxy/views/UpdateHeaderView.kt b/app/src/main/java/com/aurora/store/view/epoxy/views/UpdateHeaderView.kt index 6f89ca936..e78164893 100644 --- a/app/src/main/java/com/aurora/store/view/epoxy/views/UpdateHeaderView.kt +++ b/app/src/main/java/com/aurora/store/view/epoxy/views/UpdateHeaderView.kt @@ -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 } -} \ No newline at end of file +} diff --git a/app/src/main/java/com/aurora/store/view/epoxy/views/app/AppListView.kt b/app/src/main/java/com/aurora/store/view/epoxy/views/app/AppListView.kt index 28228c66b..bed63a443 100644 --- a/app/src/main/java/com/aurora/store/view/epoxy/views/app/AppListView.kt +++ b/app/src/main/java/com/aurora/store/view/epoxy/views/app/AppListView.kt @@ -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() } -} \ No newline at end of file +} diff --git a/app/src/main/java/com/aurora/store/view/epoxy/views/app/AppUpdateView.kt b/app/src/main/java/com/aurora/store/view/epoxy/views/app/AppUpdateView.kt index 5fb4f7dcf..81c97aa42 100644 --- a/app/src/main/java/com/aurora/store/view/epoxy/views/app/AppUpdateView.kt +++ b/app/src/main/java/com/aurora/store/view/epoxy/views/app/AppUpdateView.kt @@ -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() } -} \ No newline at end of file +} diff --git a/app/src/main/java/com/aurora/store/view/epoxy/views/app/AppView.kt b/app/src/main/java/com/aurora/store/view/epoxy/views/app/AppView.kt index 28f39baf0..52ed1e64f 100644 --- a/app/src/main/java/com/aurora/store/view/epoxy/views/app/AppView.kt +++ b/app/src/main/java/com/aurora/store/view/epoxy/views/app/AppView.kt @@ -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() } -} \ No newline at end of file +} diff --git a/app/src/main/java/com/aurora/store/view/epoxy/views/app/NoAppAltView.kt b/app/src/main/java/com/aurora/store/view/epoxy/views/app/NoAppAltView.kt index 1c7568e7e..1c5c2fa16 100644 --- a/app/src/main/java/com/aurora/store/view/epoxy/views/app/NoAppAltView.kt +++ b/app/src/main/java/com/aurora/store/view/epoxy/views/app/NoAppAltView.kt @@ -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 } -} \ No newline at end of file +} diff --git a/app/src/main/java/com/aurora/store/view/epoxy/views/app/NoAppView.kt b/app/src/main/java/com/aurora/store/view/epoxy/views/app/NoAppView.kt index c03f262e6..eda2018f6 100644 --- a/app/src/main/java/com/aurora/store/view/epoxy/views/app/NoAppView.kt +++ b/app/src/main/java/com/aurora/store/view/epoxy/views/app/NoAppView.kt @@ -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)) } } -} \ No newline at end of file +} diff --git a/app/src/main/java/com/aurora/store/view/epoxy/views/details/AppDependentView.kt b/app/src/main/java/com/aurora/store/view/epoxy/views/details/AppDependentView.kt index c17a4513d..fa3411e0c 100644 --- a/app/src/main/java/com/aurora/store/view/epoxy/views/details/AppDependentView.kt +++ b/app/src/main/java/com/aurora/store/view/epoxy/views/details/AppDependentView.kt @@ -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() } -} \ No newline at end of file +} diff --git a/app/src/main/java/com/aurora/store/view/epoxy/views/details/BadgeView.kt b/app/src/main/java/com/aurora/store/view/epoxy/views/details/BadgeView.kt index 1cf280312..c18bbbc6d 100644 --- a/app/src/main/java/com/aurora/store/view/epoxy/views/details/BadgeView.kt +++ b/app/src/main/java/com/aurora/store/view/epoxy/views/details/BadgeView.kt @@ -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() { } -} \ No newline at end of file +} diff --git a/app/src/main/java/com/aurora/store/view/epoxy/views/details/ExodusView.kt b/app/src/main/java/com/aurora/store/view/epoxy/views/details/ExodusView.kt index edd3d069a..a6ca6f92f 100644 --- a/app/src/main/java/com/aurora/store/view/epoxy/views/details/ExodusView.kt +++ b/app/src/main/java/com/aurora/store/view/epoxy/views/details/ExodusView.kt @@ -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() { } -} \ No newline at end of file +} diff --git a/app/src/main/java/com/aurora/store/view/epoxy/views/details/FileView.kt b/app/src/main/java/com/aurora/store/view/epoxy/views/details/FileView.kt index 18be0e50c..a799eee36 100644 --- a/app/src/main/java/com/aurora/store/view/epoxy/views/details/FileView.kt +++ b/app/src/main/java/com/aurora/store/view/epoxy/views/details/FileView.kt @@ -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) } -} \ No newline at end of file +} diff --git a/app/src/main/java/com/aurora/store/view/epoxy/views/details/InfoView.kt b/app/src/main/java/com/aurora/store/view/epoxy/views/details/InfoView.kt index 1e8718b12..06b2b2a38 100644 --- a/app/src/main/java/com/aurora/store/view/epoxy/views/details/InfoView.kt +++ b/app/src/main/java/com/aurora/store/view/epoxy/views/details/InfoView.kt @@ -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) } diff --git a/app/src/main/java/com/aurora/store/view/epoxy/views/details/LargeScreenshotView.kt b/app/src/main/java/com/aurora/store/view/epoxy/views/details/LargeScreenshotView.kt index 12ae0f7c0..de6ee914d 100644 --- a/app/src/main/java/com/aurora/store/view/epoxy/views/details/LargeScreenshotView.kt +++ b/app/src/main/java/com/aurora/store/view/epoxy/views/details/LargeScreenshotView.kt @@ -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() } -} \ No newline at end of file +} diff --git a/app/src/main/java/com/aurora/store/view/epoxy/views/details/MiniScreenshotView.kt b/app/src/main/java/com/aurora/store/view/epoxy/views/details/MiniScreenshotView.kt index 8fedbfd37..08b11659a 100644 --- a/app/src/main/java/com/aurora/store/view/epoxy/views/details/MiniScreenshotView.kt +++ b/app/src/main/java/com/aurora/store/view/epoxy/views/details/MiniScreenshotView.kt @@ -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() } -} \ No newline at end of file +} diff --git a/app/src/main/java/com/aurora/store/view/epoxy/views/details/MoreBadgeView.kt b/app/src/main/java/com/aurora/store/view/epoxy/views/details/MoreBadgeView.kt index 73b30e4b3..5b632ab10 100644 --- a/app/src/main/java/com/aurora/store/view/epoxy/views/details/MoreBadgeView.kt +++ b/app/src/main/java/com/aurora/store/view/epoxy/views/details/MoreBadgeView.kt @@ -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() { } -} \ No newline at end of file +} diff --git a/app/src/main/java/com/aurora/store/view/epoxy/views/details/ReviewView.kt b/app/src/main/java/com/aurora/store/view/epoxy/views/details/ReviewView.kt index e7881c8ae..2a37a21dd 100644 --- a/app/src/main/java/com/aurora/store/view/epoxy/views/details/ReviewView.kt +++ b/app/src/main/java/com/aurora/store/view/epoxy/views/details/ReviewView.kt @@ -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() } -} \ No newline at end of file +} diff --git a/app/src/main/java/com/aurora/store/view/epoxy/views/details/ScreenshotView.kt b/app/src/main/java/com/aurora/store/view/epoxy/views/details/ScreenshotView.kt index 15471f09b..62d27504e 100644 --- a/app/src/main/java/com/aurora/store/view/epoxy/views/details/ScreenshotView.kt +++ b/app/src/main/java/com/aurora/store/view/epoxy/views/details/ScreenshotView.kt @@ -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() } -} \ No newline at end of file +} diff --git a/app/src/main/java/com/aurora/store/view/epoxy/views/preference/DashView.kt b/app/src/main/java/com/aurora/store/view/epoxy/views/preference/DashView.kt index f5421d99b..b2d88937a 100644 --- a/app/src/main/java/com/aurora/store/view/epoxy/views/preference/DashView.kt +++ b/app/src/main/java/com/aurora/store/view/epoxy/views/preference/DashView.kt @@ -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) } -} \ No newline at end of file +} diff --git a/app/src/main/java/com/aurora/store/view/epoxy/views/preference/DeviceView.kt b/app/src/main/java/com/aurora/store/view/epoxy/views/preference/DeviceView.kt index cbbf9b6c7..ac1f01f7d 100644 --- a/app/src/main/java/com/aurora/store/view/epoxy/views/preference/DeviceView.kt +++ b/app/src/main/java/com/aurora/store/view/epoxy/views/preference/DeviceView.kt @@ -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) } -} \ No newline at end of file +} diff --git a/app/src/main/java/com/aurora/store/view/epoxy/views/preference/InstallerView.kt b/app/src/main/java/com/aurora/store/view/epoxy/views/preference/InstallerView.kt index b60e4111c..d297471bf 100644 --- a/app/src/main/java/com/aurora/store/view/epoxy/views/preference/InstallerView.kt +++ b/app/src/main/java/com/aurora/store/view/epoxy/views/preference/InstallerView.kt @@ -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) } -} \ No newline at end of file +} diff --git a/app/src/main/java/com/aurora/store/view/epoxy/views/preference/LinkView.kt b/app/src/main/java/com/aurora/store/view/epoxy/views/preference/LinkView.kt index 4b4b0536b..69f69d7f9 100644 --- a/app/src/main/java/com/aurora/store/view/epoxy/views/preference/LinkView.kt +++ b/app/src/main/java/com/aurora/store/view/epoxy/views/preference/LinkView.kt @@ -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) } -} \ No newline at end of file +} diff --git a/app/src/main/java/com/aurora/store/view/epoxy/views/preference/LocaleView.kt b/app/src/main/java/com/aurora/store/view/epoxy/views/preference/LocaleView.kt index 03edd4ed5..fb4ad6508 100644 --- a/app/src/main/java/com/aurora/store/view/epoxy/views/preference/LocaleView.kt +++ b/app/src/main/java/com/aurora/store/view/epoxy/views/preference/LocaleView.kt @@ -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) } -} \ No newline at end of file +} diff --git a/app/src/main/java/com/aurora/store/view/epoxy/views/preference/PermissionView.kt b/app/src/main/java/com/aurora/store/view/epoxy/views/preference/PermissionView.kt index 08aa592d7..a8f146f2e 100644 --- a/app/src/main/java/com/aurora/store/view/epoxy/views/preference/PermissionView.kt +++ b/app/src/main/java/com/aurora/store/view/epoxy/views/preference/PermissionView.kt @@ -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) } -} \ No newline at end of file +} diff --git a/app/src/main/java/com/aurora/store/view/epoxy/views/shimmer/AppListViewShimmer.kt b/app/src/main/java/com/aurora/store/view/epoxy/views/shimmer/AppListViewShimmer.kt index 79e62dd24..e3c3a04a1 100644 --- a/app/src/main/java/com/aurora/store/view/epoxy/views/shimmer/AppListViewShimmer.kt +++ b/app/src/main/java/com/aurora/store/view/epoxy/views/shimmer/AppListViewShimmer.kt @@ -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) } -} \ No newline at end of file +} diff --git a/app/src/main/java/com/aurora/store/view/epoxy/views/shimmer/AppViewShimmer.kt b/app/src/main/java/com/aurora/store/view/epoxy/views/shimmer/AppViewShimmer.kt index c651c443d..43e19a038 100644 --- a/app/src/main/java/com/aurora/store/view/epoxy/views/shimmer/AppViewShimmer.kt +++ b/app/src/main/java/com/aurora/store/view/epoxy/views/shimmer/AppViewShimmer.kt @@ -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) } -} \ No newline at end of file +} diff --git a/app/src/main/java/com/aurora/store/view/epoxy/views/shimmer/HeaderViewShimmer.kt b/app/src/main/java/com/aurora/store/view/epoxy/views/shimmer/HeaderViewShimmer.kt index a10f74539..02ab7378f 100644 --- a/app/src/main/java/com/aurora/store/view/epoxy/views/shimmer/HeaderViewShimmer.kt +++ b/app/src/main/java/com/aurora/store/view/epoxy/views/shimmer/HeaderViewShimmer.kt @@ -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) } -} \ No newline at end of file +} diff --git a/app/src/main/java/com/aurora/store/view/ui/commons/TopChartContainerFragment.kt b/app/src/main/java/com/aurora/store/view/ui/commons/TopChartContainerFragment.kt index 98401e37b..a1860ac3d 100644 --- a/app/src/main/java/com/aurora/store/view/ui/commons/TopChartContainerFragment.kt +++ b/app/src/main/java/com/aurora/store/view/ui/commons/TopChartContainerFragment.kt @@ -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 } } -} \ No newline at end of file +} diff --git a/app/src/main/java/com/aurora/store/view/ui/details/DetailsReviewActivity.kt b/app/src/main/java/com/aurora/store/view/ui/details/DetailsReviewActivity.kt index 9bb77b91f..73925a369 100644 --- a/app/src/main/java/com/aurora/store/view/ui/details/DetailsReviewActivity.kt +++ b/app/src/main/java/com/aurora/store/view/ui/details/DetailsReviewActivity.kt @@ -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 diff --git a/app/src/main/java/com/aurora/store/view/ui/onboarding/AccentFragment.kt b/app/src/main/java/com/aurora/store/view/ui/onboarding/AccentFragment.kt index 6c185b3c1..b6178ca30 100644 --- a/app/src/main/java/com/aurora/store/view/ui/onboarding/AccentFragment.kt +++ b/app/src/main/java/com/aurora/store/view/ui/onboarding/AccentFragment.kt @@ -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?>() {}.type ) } -} \ No newline at end of file +} diff --git a/app/src/main/java/com/aurora/store/view/ui/preferences/UIPreference.kt b/app/src/main/java/com/aurora/store/view/ui/preferences/UIPreference.kt index f1942e11c..7eff05b4b 100644 --- a/app/src/main/java/com/aurora/store/view/ui/preferences/UIPreference.kt +++ b/app/src/main/java/com/aurora/store/view/ui/preferences/UIPreference.kt @@ -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 } } } -} \ No newline at end of file +}