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?,
|
bitmap: Bitmap?,
|
||||||
transitionOptions: TransitionOptions<*, Drawable>? = null,
|
transitionOptions: TransitionOptions<*, Drawable>? = null,
|
||||||
requestOptions: RequestOptions.() -> Unit
|
requestOptions: RequestOptions.() -> Unit
|
||||||
): ViewTarget<ImageView, Drawable> = loadAny(bitmap, transitionOptions, requestOptions)
|
): ViewTarget<ImageView, Drawable> = loadAny(bitmap, requestOptions)
|
||||||
|
|
||||||
@JvmSynthetic
|
@JvmSynthetic
|
||||||
inline fun ImageView.load(
|
inline fun ImageView.load(
|
||||||
byteArray: ByteArray?,
|
byteArray: ByteArray?,
|
||||||
transitionOptions: TransitionOptions<*, Drawable>? = null,
|
transitionOptions: TransitionOptions<*, Drawable>? = null,
|
||||||
requestOptions: RequestOptions.() -> Unit
|
requestOptions: RequestOptions.() -> Unit
|
||||||
): ViewTarget<ImageView, Drawable> = loadAny(byteArray, transitionOptions, requestOptions)
|
): ViewTarget<ImageView, Drawable> = loadAny(byteArray, requestOptions)
|
||||||
|
|
||||||
@JvmSynthetic
|
@JvmSynthetic
|
||||||
inline fun ImageView.load(
|
inline fun ImageView.load(
|
||||||
drawable: Drawable?,
|
drawable: Drawable?,
|
||||||
transitionOptions: TransitionOptions<*, Drawable>? = null,
|
transitionOptions: TransitionOptions<*, Drawable>? = null,
|
||||||
requestOptions: RequestOptions.() -> Unit
|
requestOptions: RequestOptions.() -> Unit
|
||||||
): ViewTarget<ImageView, Drawable> = loadAny(drawable, transitionOptions, requestOptions)
|
): ViewTarget<ImageView, Drawable> = loadAny(drawable, requestOptions)
|
||||||
|
|
||||||
@JvmSynthetic
|
@JvmSynthetic
|
||||||
inline fun ImageView.load(
|
inline fun ImageView.load(
|
||||||
@RawRes @DrawableRes resourceId: Int?,
|
@RawRes @DrawableRes resourceId: Int?,
|
||||||
transitionOptions: TransitionOptions<*, Drawable>? = null,
|
transitionOptions: TransitionOptions<*, Drawable>? = null,
|
||||||
requestOptions: RequestOptions.() -> Unit
|
requestOptions: RequestOptions.() -> Unit
|
||||||
): ViewTarget<ImageView, Drawable> = loadAny(resourceId, transitionOptions, requestOptions)
|
): ViewTarget<ImageView, Drawable> = loadAny(resourceId, requestOptions)
|
||||||
|
|
||||||
@JvmSynthetic
|
@JvmSynthetic
|
||||||
inline fun ImageView.load(
|
inline fun ImageView.load(
|
||||||
uri: Uri?,
|
uri: Uri?,
|
||||||
transitionOptions: TransitionOptions<*, Drawable>? = null,
|
transitionOptions: TransitionOptions<*, Drawable>? = null,
|
||||||
requestOptions: RequestOptions.() -> Unit
|
requestOptions: RequestOptions.() -> Unit
|
||||||
): ViewTarget<ImageView, Drawable> = loadAny(uri, transitionOptions, requestOptions)
|
): ViewTarget<ImageView, Drawable> = loadAny(uri, requestOptions)
|
||||||
|
|
||||||
@JvmSynthetic
|
@JvmSynthetic
|
||||||
inline fun ImageView.load(
|
inline fun ImageView.load(
|
||||||
string: String?,
|
string: String?,
|
||||||
transitionOptions: TransitionOptions<*, Drawable>? = null,
|
transitionOptions: TransitionOptions<*, Drawable>? = null,
|
||||||
requestOptions: RequestOptions.() -> Unit
|
requestOptions: RequestOptions.() -> Unit
|
||||||
): ViewTarget<ImageView, Drawable> = loadAny(string, transitionOptions, requestOptions)
|
): ViewTarget<ImageView, Drawable> = loadAny(string, requestOptions)
|
||||||
|
|
||||||
@JvmSynthetic
|
@JvmSynthetic
|
||||||
inline fun ImageView.load(
|
inline fun ImageView.load(
|
||||||
file: File?,
|
file: File?,
|
||||||
transitionOptions: TransitionOptions<*, Drawable>? = null,
|
transitionOptions: TransitionOptions<*, Drawable>? = null,
|
||||||
requestOptions: RequestOptions.() -> Unit
|
requestOptions: RequestOptions.() -> Unit
|
||||||
): ViewTarget<ImageView, Drawable> = loadAny(file, transitionOptions, requestOptions)
|
): ViewTarget<ImageView, Drawable> = loadAny(file, requestOptions)
|
||||||
|
|
||||||
@JvmSynthetic
|
@JvmSynthetic
|
||||||
fun ImageView.loadAny(
|
fun ImageView.loadAny(
|
||||||
@@ -148,7 +148,6 @@ fun ImageView.loadAny(
|
|||||||
@JvmSynthetic
|
@JvmSynthetic
|
||||||
inline fun ImageView.loadAny(
|
inline fun ImageView.loadAny(
|
||||||
data: Any?,
|
data: Any?,
|
||||||
transitionOptions: TransitionOptions<*, Drawable>? = null,
|
|
||||||
requestOptions: RequestOptions.() -> Unit
|
requestOptions: RequestOptions.() -> Unit
|
||||||
): ViewTarget<ImageView, Drawable> {
|
): ViewTarget<ImageView, Drawable> {
|
||||||
val factory = DrawableCrossFadeFactory.Builder().setCrossFadeEnabled(true).build()
|
val factory = DrawableCrossFadeFactory.Builder().setCrossFadeEnabled(true).build()
|
||||||
|
|||||||
@@ -36,7 +36,6 @@ import com.aurora.store.util.CommonUtil
|
|||||||
|
|
||||||
fun Fragment.applyTheme(
|
fun Fragment.applyTheme(
|
||||||
themeId: Int,
|
themeId: Int,
|
||||||
accentId: Int = 1,
|
|
||||||
shouldApplyTransition: Boolean = true,
|
shouldApplyTransition: Boolean = true,
|
||||||
position: Int = 2
|
position: Int = 2
|
||||||
) {
|
) {
|
||||||
|
|||||||
@@ -36,11 +36,11 @@ class AuroraGlide : AppGlideModule() {
|
|||||||
val memoryCacheSizeBytes = 1024 * 1024 * 50
|
val memoryCacheSizeBytes = 1024 * 1024 * 50
|
||||||
builder.setMemoryCache(LruResourceCache(memoryCacheSizeBytes.toLong()))
|
builder.setMemoryCache(LruResourceCache(memoryCacheSizeBytes.toLong()))
|
||||||
builder.setDiskCache(InternalCacheDiskCacheFactory(context, memoryCacheSizeBytes.toLong()))
|
builder.setDiskCache(InternalCacheDiskCacheFactory(context, memoryCacheSizeBytes.toLong()))
|
||||||
builder.setDefaultRequestOptions(requestOptions(context))
|
builder.setDefaultRequestOptions(requestOptions())
|
||||||
}
|
}
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
private fun requestOptions(context: Context): RequestOptions {
|
private fun requestOptions(): RequestOptions {
|
||||||
return RequestOptions()
|
return RequestOptions()
|
||||||
.signature(ObjectKey(System.currentTimeMillis() / (24 * 60 * 60 * 1000)))
|
.signature(ObjectKey(System.currentTimeMillis() / (24 * 60 * 60 * 1000)))
|
||||||
.centerCrop()
|
.centerCrop()
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ object RequestBuilder {
|
|||||||
File.FileType.BASE,
|
File.FileType.BASE,
|
||||||
File.FileType.SPLIT -> PathUtil.getApkDownloadFile(context, app, file)
|
File.FileType.SPLIT -> PathUtil.getApkDownloadFile(context, app, file)
|
||||||
File.FileType.OBB,
|
File.FileType.OBB,
|
||||||
File.FileType.PATCH -> PathUtil.getObbDownloadFile(context, app, file)
|
File.FileType.PATCH -> PathUtil.getObbDownloadFile(app, file)
|
||||||
}
|
}
|
||||||
return Request(file.url, fileName).apply {
|
return Request(file.url, fileName).apply {
|
||||||
attachMetaData(context, app)
|
attachMetaData(context, app)
|
||||||
|
|||||||
@@ -30,11 +30,11 @@ class AMInstaller(context: Context) : InstallerBase(context) {
|
|||||||
}
|
}
|
||||||
when {
|
when {
|
||||||
fileList.size == 1 -> {
|
fileList.size == 1 -> {
|
||||||
xInstall(packageName, File(fileList.first()))
|
xInstall(File(fileList.first()))
|
||||||
}
|
}
|
||||||
fileList.size > 1 -> {
|
fileList.size > 1 -> {
|
||||||
val apks = zipFile(fileList)
|
val apks = zipFile(fileList)
|
||||||
xInstall(packageName, apks)
|
xInstall(apks)
|
||||||
}
|
}
|
||||||
else -> {
|
else -> {
|
||||||
throw Exception("Invalid data, expecting non empty fileList")
|
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)
|
val intent: Intent = Intent(Intent.ACTION_VIEW)
|
||||||
intent.setDataAndType(
|
intent.setDataAndType(
|
||||||
FileProvider.getUriForFile(
|
FileProvider.getUriForFile(
|
||||||
|
|||||||
@@ -42,12 +42,12 @@ class NativeInstaller(context: Context) : InstallerBase(context) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}.forEach {
|
}.forEach {
|
||||||
xInstall(packageName, it)
|
xInstall(it)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun xInstall(packageName: String, file: File) {
|
private fun xInstall(file: File) {
|
||||||
val intent: Intent
|
val intent: Intent
|
||||||
|
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
||||||
|
|||||||
@@ -48,14 +48,14 @@ object FuelClient : IHttpClient {
|
|||||||
val parameters = params
|
val parameters = params
|
||||||
.map { it.key to it.value }
|
.map { it.key to it.value }
|
||||||
.toList()
|
.toList()
|
||||||
val (request, response, result) = Fuel.get(url, parameters)
|
val (request, response, _) = Fuel.get(url, parameters)
|
||||||
.header(headers)
|
.header(headers)
|
||||||
.response()
|
.response()
|
||||||
return buildPlayResponse(response, request)
|
return buildPlayResponse(response, request)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun getAuth(url: String): PlayResponse {
|
override fun getAuth(url: String): PlayResponse {
|
||||||
val (request, response, result) = Fuel.get(url)
|
val (request, response, _) = Fuel.get(url)
|
||||||
.appendHeader(
|
.appendHeader(
|
||||||
"User-Agent",
|
"User-Agent",
|
||||||
"${BuildConfig.APPLICATION_ID}-${BuildConfig.VERSION_NAME}-${BuildConfig.VERSION_CODE}"
|
"${BuildConfig.APPLICATION_ID}-${BuildConfig.VERSION_NAME}-${BuildConfig.VERSION_CODE}"
|
||||||
@@ -69,14 +69,14 @@ object FuelClient : IHttpClient {
|
|||||||
headers: Map<String, String>,
|
headers: Map<String, String>,
|
||||||
paramString: String
|
paramString: String
|
||||||
): PlayResponse {
|
): PlayResponse {
|
||||||
val (request, response, result) = Fuel.get(url + paramString)
|
val (request, response, _) = Fuel.get(url + paramString)
|
||||||
.header(headers)
|
.header(headers)
|
||||||
.response()
|
.response()
|
||||||
return buildPlayResponse(response, request)
|
return buildPlayResponse(response, request)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun post(url: String, headers: Map<String, String>, body: ByteArray): PlayResponse {
|
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)
|
.header(headers)
|
||||||
.appendHeader(Headers.CONTENT_TYPE, "application/x-protobuf")
|
.appendHeader(Headers.CONTENT_TYPE, "application/x-protobuf")
|
||||||
.body(body, Charset.defaultCharset())
|
.body(body, Charset.defaultCharset())
|
||||||
@@ -92,14 +92,14 @@ object FuelClient : IHttpClient {
|
|||||||
val parameters = params
|
val parameters = params
|
||||||
.map { it.key to it.value }
|
.map { it.key to it.value }
|
||||||
.toList()
|
.toList()
|
||||||
val (request, response, result) = Fuel.post(url, parameters)
|
val (request, response, _) = Fuel.post(url, parameters)
|
||||||
.header(headers)
|
.header(headers)
|
||||||
.response()
|
.response()
|
||||||
return buildPlayResponse(response, request)
|
return buildPlayResponse(response, request)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun postAuth(url: String, body: ByteArray): PlayResponse {
|
override fun postAuth(url: String, body: ByteArray): PlayResponse {
|
||||||
val (request, response, result) = Fuel.post(url)
|
val (request, response, _) = Fuel.post(url)
|
||||||
.appendHeader(
|
.appendHeader(
|
||||||
"User-Agent",
|
"User-Agent",
|
||||||
"${BuildConfig.APPLICATION_ID}-${BuildConfig.VERSION_NAME}-${BuildConfig.VERSION_CODE}"
|
"${BuildConfig.APPLICATION_ID}-${BuildConfig.VERSION_NAME}-${BuildConfig.VERSION_CODE}"
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ import android.graphics.Color
|
|||||||
import android.os.Build
|
import android.os.Build
|
||||||
import android.os.IBinder
|
import android.os.IBinder
|
||||||
import android.util.ArrayMap
|
import android.util.ArrayMap
|
||||||
import androidx.annotation.RequiresApi
|
|
||||||
import androidx.core.app.NotificationCompat
|
import androidx.core.app.NotificationCompat
|
||||||
import androidx.core.app.NotificationManagerCompat
|
import androidx.core.app.NotificationManagerCompat
|
||||||
import androidx.core.content.ContextCompat
|
import androidx.core.content.ContextCompat
|
||||||
@@ -351,7 +350,7 @@ class NotificationService : Service() {
|
|||||||
return PendingIntent.getActivity(this, 0, intent, flags)
|
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)
|
val intent = Intent(this, InstallReceiver::class.java)
|
||||||
intent.putExtra(Constants.STRING_EXTRA, packageName)
|
intent.putExtra(Constants.STRING_EXTRA, packageName)
|
||||||
val flags = if (isMAndAbove())
|
val flags = if (isMAndAbove())
|
||||||
|
|||||||
@@ -70,13 +70,13 @@ object PathUtil {
|
|||||||
return "${getExternalPath()}/Exports/"
|
return "${getExternalPath()}/Exports/"
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun getObbDownloadPath(context: Context, app: App): String {
|
private fun getObbDownloadPath(app: App): String {
|
||||||
return Environment.getExternalStorageDirectory()
|
return Environment.getExternalStorageDirectory()
|
||||||
.toString() + "/Android/obb/" + app.packageName
|
.toString() + "/Android/obb/" + app.packageName
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getObbDownloadFile(context: Context, app: App, file: File): String {
|
fun getObbDownloadFile(app: App, file: File): String {
|
||||||
val obbDir = getObbDownloadPath(context, app)
|
val obbDir = getObbDownloadPath(app)
|
||||||
return "$obbDir/${file.name}"
|
return "$obbDir/${file.name}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,11 +35,11 @@ class UpdateButton : RelativeLayout {
|
|||||||
private lateinit var B: ViewUpdateButtonBinding
|
private lateinit var B: ViewUpdateButtonBinding
|
||||||
|
|
||||||
constructor(context: Context) : super(context) {
|
constructor(context: Context) : super(context) {
|
||||||
init(context, null)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context, attrs: AttributeSet?) : super(context, attrs) {
|
constructor(context: Context, attrs: AttributeSet?) : super(context, attrs) {
|
||||||
init(context, attrs)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||||
@@ -47,7 +47,7 @@ class UpdateButton : RelativeLayout {
|
|||||||
attrs,
|
attrs,
|
||||||
defStyleAttr
|
defStyleAttr
|
||||||
) {
|
) {
|
||||||
init(context, attrs)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequiresApi(Build.VERSION_CODES.LOLLIPOP)
|
@RequiresApi(Build.VERSION_CODES.LOLLIPOP)
|
||||||
@@ -57,10 +57,10 @@ class UpdateButton : RelativeLayout {
|
|||||||
defStyleAttr: Int,
|
defStyleAttr: Int,
|
||||||
defStyleRes: Int
|
defStyleRes: Int
|
||||||
) : super(context, attrs, defStyleAttr, defStyleRes) {
|
) : 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)
|
val view = inflate(context, R.layout.view_update_button, this)
|
||||||
B = ViewUpdateButtonBinding.bind(view)
|
B = ViewUpdateButtonBinding.bind(view)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,11 +41,11 @@ class AccentView : RelativeLayout {
|
|||||||
private lateinit var B: ViewAccentBinding
|
private lateinit var B: ViewAccentBinding
|
||||||
|
|
||||||
constructor(context: Context?) : super(context) {
|
constructor(context: Context?) : super(context) {
|
||||||
init(context, null)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||||
init(context, attrs)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||||
@@ -53,10 +53,10 @@ class AccentView : RelativeLayout {
|
|||||||
attrs,
|
attrs,
|
||||||
defStyleAttr
|
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)
|
val view = inflate(context, R.layout.view_accent, this)
|
||||||
B = ViewAccentBinding.bind(view)
|
B = ViewAccentBinding.bind(view)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,11 +32,11 @@ class AppProgressView : RelativeLayout {
|
|||||||
private lateinit var B: ViewAppProgressBinding
|
private lateinit var B: ViewAppProgressBinding
|
||||||
|
|
||||||
constructor(context: Context?) : super(context) {
|
constructor(context: Context?) : super(context) {
|
||||||
init(context, null)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||||
init(context, attrs)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||||
@@ -44,10 +44,10 @@ class AppProgressView : RelativeLayout {
|
|||||||
attrs,
|
attrs,
|
||||||
defStyleAttr
|
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)
|
val view = inflate(context, R.layout.view_app_progress, this)
|
||||||
B = ViewAppProgressBinding.bind(view)
|
B = ViewAppProgressBinding.bind(view)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,11 +43,11 @@ class BlackListView : RelativeLayout {
|
|||||||
private lateinit var B: ViewBlackBinding
|
private lateinit var B: ViewBlackBinding
|
||||||
|
|
||||||
constructor(context: Context?) : super(context) {
|
constructor(context: Context?) : super(context) {
|
||||||
init(context, null)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||||
init(context, attrs)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||||
@@ -55,10 +55,10 @@ class BlackListView : RelativeLayout {
|
|||||||
attrs,
|
attrs,
|
||||||
defStyleAttr
|
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)
|
val view = inflate(context, R.layout.view_black, this)
|
||||||
B = ViewBlackBinding.bind(view)
|
B = ViewBlackBinding.bind(view)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,11 +42,11 @@ class CategoryView : RelativeLayout {
|
|||||||
private lateinit var B: ViewCategoryBinding
|
private lateinit var B: ViewCategoryBinding
|
||||||
|
|
||||||
constructor(context: Context?) : super(context) {
|
constructor(context: Context?) : super(context) {
|
||||||
init(context, null)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||||
init(context, attrs)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||||
@@ -54,10 +54,10 @@ class CategoryView : RelativeLayout {
|
|||||||
attrs,
|
attrs,
|
||||||
defStyleAttr
|
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)
|
val view = inflate(context, R.layout.view_category, this)
|
||||||
B = ViewCategoryBinding.bind(view)
|
B = ViewCategoryBinding.bind(view)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,11 +57,11 @@ class DownloadView : RelativeLayout {
|
|||||||
.create()
|
.create()
|
||||||
|
|
||||||
constructor(context: Context?) : super(context) {
|
constructor(context: Context?) : super(context) {
|
||||||
init(context, null)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||||
init(context, attrs)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||||
@@ -69,10 +69,10 @@ class DownloadView : RelativeLayout {
|
|||||||
attrs,
|
attrs,
|
||||||
defStyleAttr
|
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)
|
val view = inflate(context, R.layout.view_download, this)
|
||||||
B = ViewDownloadBinding.bind(view)
|
B = ViewDownloadBinding.bind(view)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ package com.aurora.store.view.epoxy.views
|
|||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.util.AttributeSet
|
import android.util.AttributeSet
|
||||||
import android.widget.RelativeLayout
|
import android.widget.RelativeLayout
|
||||||
import androidx.core.text.HtmlCompat
|
|
||||||
import com.airbnb.epoxy.CallbackProp
|
import com.airbnb.epoxy.CallbackProp
|
||||||
import com.airbnb.epoxy.ModelProp
|
import com.airbnb.epoxy.ModelProp
|
||||||
import com.airbnb.epoxy.ModelView
|
import com.airbnb.epoxy.ModelView
|
||||||
@@ -38,11 +37,11 @@ class EditorHeadView : RelativeLayout {
|
|||||||
private lateinit var B: ViewEditorHeadBinding
|
private lateinit var B: ViewEditorHeadBinding
|
||||||
|
|
||||||
constructor(context: Context?) : super(context) {
|
constructor(context: Context?) : super(context) {
|
||||||
init(context, null)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||||
init(context, attrs)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||||
@@ -50,10 +49,10 @@ class EditorHeadView : RelativeLayout {
|
|||||||
attrs,
|
attrs,
|
||||||
defStyleAttr
|
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)
|
val view = inflate(context, R.layout.view_editor_head, this)
|
||||||
B = ViewEditorHeadBinding.bind(view)
|
B = ViewEditorHeadBinding.bind(view)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,11 +44,11 @@ class EditorImageView : RelativeLayout {
|
|||||||
private lateinit var B: ViewEditorImageBinding
|
private lateinit var B: ViewEditorImageBinding
|
||||||
|
|
||||||
constructor(context: Context?) : super(context) {
|
constructor(context: Context?) : super(context) {
|
||||||
init(context, null)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||||
init(context, attrs)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||||
@@ -56,10 +56,10 @@ class EditorImageView : RelativeLayout {
|
|||||||
attrs,
|
attrs,
|
||||||
defStyleAttr
|
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)
|
val view = inflate(context, R.layout.view_editor_image, this)
|
||||||
B = ViewEditorImageBinding.bind(view)
|
B = ViewEditorImageBinding.bind(view)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ package com.aurora.store.view.epoxy.views
|
|||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.util.AttributeSet
|
import android.util.AttributeSet
|
||||||
import android.widget.RelativeLayout
|
import android.widget.RelativeLayout
|
||||||
import androidx.annotation.Nullable
|
|
||||||
import com.airbnb.epoxy.CallbackProp
|
import com.airbnb.epoxy.CallbackProp
|
||||||
import com.airbnb.epoxy.ModelProp
|
import com.airbnb.epoxy.ModelProp
|
||||||
import com.airbnb.epoxy.ModelView
|
import com.airbnb.epoxy.ModelView
|
||||||
@@ -40,11 +39,11 @@ class HeaderView : RelativeLayout {
|
|||||||
private lateinit var B: ViewHeaderBinding
|
private lateinit var B: ViewHeaderBinding
|
||||||
|
|
||||||
constructor(context: Context?) : super(context) {
|
constructor(context: Context?) : super(context) {
|
||||||
init(context, null)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||||
init(context, attrs)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||||
@@ -52,10 +51,10 @@ class HeaderView : RelativeLayout {
|
|||||||
attrs,
|
attrs,
|
||||||
defStyleAttr
|
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)
|
val view = inflate(context, R.layout.view_header, this)
|
||||||
B = ViewHeaderBinding.bind(view)
|
B = ViewHeaderBinding.bind(view)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,11 +35,11 @@ class HorizontalDividerView : RelativeLayout {
|
|||||||
private lateinit var B: ViewDividerBinding
|
private lateinit var B: ViewDividerBinding
|
||||||
|
|
||||||
constructor(context: Context?) : super(context) {
|
constructor(context: Context?) : super(context) {
|
||||||
init(context, null)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||||
init(context, attrs)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||||
@@ -47,10 +47,10 @@ class HorizontalDividerView : RelativeLayout {
|
|||||||
attrs,
|
attrs,
|
||||||
defStyleAttr
|
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)
|
val view = inflate(context, R.layout.view_divider, this)
|
||||||
B = ViewDividerBinding.bind(view)
|
B = ViewDividerBinding.bind(view)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,11 +39,11 @@ class MinimalHeaderView : RelativeLayout {
|
|||||||
private lateinit var B: ViewActionHeaderBinding
|
private lateinit var B: ViewActionHeaderBinding
|
||||||
|
|
||||||
constructor(context: Context?) : super(context) {
|
constructor(context: Context?) : super(context) {
|
||||||
init(context, null)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||||
init(context, attrs)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||||
@@ -51,10 +51,10 @@ class MinimalHeaderView : RelativeLayout {
|
|||||||
attrs,
|
attrs,
|
||||||
defStyleAttr
|
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)
|
val view = inflate(context, R.layout.view_action_header, this)
|
||||||
B = ViewActionHeaderBinding.bind(view)
|
B = ViewActionHeaderBinding.bind(view)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,11 +43,11 @@ class SearchSuggestionView : RelativeLayout {
|
|||||||
private lateinit var B: ViewSearchSuggestionBinding
|
private lateinit var B: ViewSearchSuggestionBinding
|
||||||
|
|
||||||
constructor(context: Context?) : super(context) {
|
constructor(context: Context?) : super(context) {
|
||||||
init(context, null)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||||
init(context, attrs)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||||
@@ -55,10 +55,10 @@ class SearchSuggestionView : RelativeLayout {
|
|||||||
attrs,
|
attrs,
|
||||||
defStyleAttr
|
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)
|
val view = inflate(context, R.layout.view_search_suggestion, this)
|
||||||
B = ViewSearchSuggestionBinding.bind(view)
|
B = ViewSearchSuggestionBinding.bind(view)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,11 +39,11 @@ class ThemeView : RelativeLayout {
|
|||||||
private lateinit var B: ViewThemeBinding
|
private lateinit var B: ViewThemeBinding
|
||||||
|
|
||||||
constructor(context: Context?) : super(context) {
|
constructor(context: Context?) : super(context) {
|
||||||
init(context, null)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||||
init(context, attrs)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||||
@@ -51,10 +51,10 @@ class ThemeView : RelativeLayout {
|
|||||||
attrs,
|
attrs,
|
||||||
defStyleAttr
|
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)
|
val view = inflate(context, R.layout.view_theme, this)
|
||||||
B = ViewThemeBinding.bind(view)
|
B = ViewThemeBinding.bind(view)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,11 +39,11 @@ class UpdateHeaderView : RelativeLayout {
|
|||||||
private lateinit var B: ViewHeaderUpdateBinding
|
private lateinit var B: ViewHeaderUpdateBinding
|
||||||
|
|
||||||
constructor(context: Context?) : super(context) {
|
constructor(context: Context?) : super(context) {
|
||||||
init(context, null)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||||
init(context, attrs)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||||
@@ -51,10 +51,10 @@ class UpdateHeaderView : RelativeLayout {
|
|||||||
attrs,
|
attrs,
|
||||||
defStyleAttr
|
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)
|
val view = inflate(context, R.layout.view_header_update, this)
|
||||||
B = ViewHeaderUpdateBinding.bind(view)
|
B = ViewHeaderUpdateBinding.bind(view)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,11 +45,11 @@ class AppListView : RelativeLayout {
|
|||||||
private lateinit var B: ViewAppListBinding
|
private lateinit var B: ViewAppListBinding
|
||||||
|
|
||||||
constructor(context: Context?) : super(context) {
|
constructor(context: Context?) : super(context) {
|
||||||
init(context, null)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||||
init(context, attrs)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||||
@@ -57,10 +57,10 @@ class AppListView : RelativeLayout {
|
|||||||
attrs,
|
attrs,
|
||||||
defStyleAttr
|
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)
|
val view = inflate(context, R.layout.view_app_list, this)
|
||||||
B = ViewAppListBinding.bind(view)
|
B = ViewAppListBinding.bind(view)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,11 +49,11 @@ class AppUpdateView : RelativeLayout {
|
|||||||
private lateinit var B: ViewAppUpdateBinding
|
private lateinit var B: ViewAppUpdateBinding
|
||||||
|
|
||||||
constructor(context: Context?) : super(context) {
|
constructor(context: Context?) : super(context) {
|
||||||
init(context, null)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||||
init(context, attrs)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||||
@@ -61,10 +61,10 @@ class AppUpdateView : RelativeLayout {
|
|||||||
attrs,
|
attrs,
|
||||||
defStyleAttr
|
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)
|
val view = inflate(context, R.layout.view_app_update, this)
|
||||||
B = ViewAppUpdateBinding.bind(view)
|
B = ViewAppUpdateBinding.bind(view)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,11 +45,11 @@ class AppView : RelativeLayout {
|
|||||||
private lateinit var B: ViewAppBinding
|
private lateinit var B: ViewAppBinding
|
||||||
|
|
||||||
constructor(context: Context?) : super(context) {
|
constructor(context: Context?) : super(context) {
|
||||||
init(context, null)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||||
init(context, attrs)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||||
@@ -57,10 +57,10 @@ class AppView : RelativeLayout {
|
|||||||
attrs,
|
attrs,
|
||||||
defStyleAttr
|
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)
|
val view = inflate(context, R.layout.view_app, this)
|
||||||
B = ViewAppBinding.bind(view)
|
B = ViewAppBinding.bind(view)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,11 +38,11 @@ class NoAppAltView : RelativeLayout {
|
|||||||
private lateinit var B: ViewNoAppAltBinding
|
private lateinit var B: ViewNoAppAltBinding
|
||||||
|
|
||||||
constructor(context: Context?) : super(context) {
|
constructor(context: Context?) : super(context) {
|
||||||
init(context, null)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||||
init(context, attrs)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||||
@@ -50,10 +50,10 @@ class NoAppAltView : RelativeLayout {
|
|||||||
attrs,
|
attrs,
|
||||||
defStyleAttr
|
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)
|
val view = inflate(context, R.layout.view_no_app_alt, this)
|
||||||
B = ViewNoAppAltBinding.bind(view)
|
B = ViewNoAppAltBinding.bind(view)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,11 +39,11 @@ class NoAppView : RelativeLayout {
|
|||||||
private lateinit var B: ViewNoAppBinding
|
private lateinit var B: ViewNoAppBinding
|
||||||
|
|
||||||
constructor(context: Context?) : super(context) {
|
constructor(context: Context?) : super(context) {
|
||||||
init(context, null)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||||
init(context, attrs)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||||
@@ -51,10 +51,10 @@ class NoAppView : RelativeLayout {
|
|||||||
attrs,
|
attrs,
|
||||||
defStyleAttr
|
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)
|
val view = inflate(context, R.layout.view_no_app, this)
|
||||||
B = ViewNoAppBinding.bind(view)
|
B = ViewNoAppBinding.bind(view)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,11 +43,11 @@ class AppDependentView : RelativeLayout {
|
|||||||
private lateinit var B: ViewAppDependentBinding
|
private lateinit var B: ViewAppDependentBinding
|
||||||
|
|
||||||
constructor(context: Context?) : super(context) {
|
constructor(context: Context?) : super(context) {
|
||||||
init(context, null)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||||
init(context, attrs)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||||
@@ -55,10 +55,10 @@ class AppDependentView : RelativeLayout {
|
|||||||
attrs,
|
attrs,
|
||||||
defStyleAttr
|
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)
|
val view = inflate(context, R.layout.view_app_dependent, this)
|
||||||
B = ViewAppDependentBinding.bind(view)
|
B = ViewAppDependentBinding.bind(view)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,11 +41,11 @@ class BadgeView : RelativeLayout {
|
|||||||
private lateinit var B: ViewBadgeBinding
|
private lateinit var B: ViewBadgeBinding
|
||||||
|
|
||||||
constructor(context: Context?) : super(context) {
|
constructor(context: Context?) : super(context) {
|
||||||
init(context, null)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||||
init(context, attrs)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||||
@@ -53,10 +53,10 @@ class BadgeView : RelativeLayout {
|
|||||||
attrs,
|
attrs,
|
||||||
defStyleAttr
|
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)
|
val view = inflate(context, R.layout.view_badge, this)
|
||||||
B = ViewBadgeBinding.bind(view)
|
B = ViewBadgeBinding.bind(view)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,11 +40,11 @@ class ExodusView : RelativeLayout {
|
|||||||
private lateinit var B: ViewExodusBinding
|
private lateinit var B: ViewExodusBinding
|
||||||
|
|
||||||
constructor(context: Context?) : super(context) {
|
constructor(context: Context?) : super(context) {
|
||||||
init(context, null)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||||
init(context, attrs)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||||
@@ -52,10 +52,10 @@ class ExodusView : RelativeLayout {
|
|||||||
attrs,
|
attrs,
|
||||||
defStyleAttr
|
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)
|
val view = inflate(context, R.layout.view_exodus, this)
|
||||||
B = ViewExodusBinding.bind(view)
|
B = ViewExodusBinding.bind(view)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,11 +39,11 @@ class FileView : RelativeLayout {
|
|||||||
private lateinit var B: ViewFileBinding
|
private lateinit var B: ViewFileBinding
|
||||||
|
|
||||||
constructor(context: Context?) : super(context) {
|
constructor(context: Context?) : super(context) {
|
||||||
init(context, null)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||||
init(context, attrs)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||||
@@ -51,10 +51,10 @@ class FileView : RelativeLayout {
|
|||||||
attrs,
|
attrs,
|
||||||
defStyleAttr
|
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)
|
val view = inflate(context, R.layout.view_file, this)
|
||||||
B = ViewFileBinding.bind(view)
|
B = ViewFileBinding.bind(view)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,11 +39,11 @@ class InfoView : RelativeLayout {
|
|||||||
private lateinit var B: ViewInfoBinding
|
private lateinit var B: ViewInfoBinding
|
||||||
|
|
||||||
constructor(context: Context?) : super(context) {
|
constructor(context: Context?) : super(context) {
|
||||||
init(context, null)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||||
init(context, attrs)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||||
@@ -51,10 +51,10 @@ class InfoView : RelativeLayout {
|
|||||||
attrs,
|
attrs,
|
||||||
defStyleAttr
|
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)
|
val view = inflate(context, R.layout.view_info, this)
|
||||||
B = ViewInfoBinding.bind(view)
|
B = ViewInfoBinding.bind(view)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,11 +50,11 @@ class LargeScreenshotView : RelativeLayout {
|
|||||||
private lateinit var B: ViewScreenshotLargeBinding
|
private lateinit var B: ViewScreenshotLargeBinding
|
||||||
|
|
||||||
constructor(context: Context?) : super(context) {
|
constructor(context: Context?) : super(context) {
|
||||||
init(context, null)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||||
init(context, attrs)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||||
@@ -62,10 +62,10 @@ class LargeScreenshotView : RelativeLayout {
|
|||||||
attrs,
|
attrs,
|
||||||
defStyleAttr
|
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)
|
val view = inflate(context, R.layout.view_screenshot_large, this)
|
||||||
B = ViewScreenshotLargeBinding.bind(view)
|
B = ViewScreenshotLargeBinding.bind(view)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,11 +51,11 @@ class MiniScreenshotView : RelativeLayout {
|
|||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?) : super(context) {
|
constructor(context: Context?) : super(context) {
|
||||||
init(context, null)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||||
init(context, attrs)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||||
@@ -63,10 +63,10 @@ class MiniScreenshotView : RelativeLayout {
|
|||||||
attrs,
|
attrs,
|
||||||
defStyleAttr
|
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)
|
val view = inflate(context, R.layout.view_screenshot_mini, this)
|
||||||
B = ViewScreenshotMiniBinding.bind(view)
|
B = ViewScreenshotMiniBinding.bind(view)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,11 +42,11 @@ class MoreBadgeView : RelativeLayout {
|
|||||||
private lateinit var B: ViewMoreBadgeBinding
|
private lateinit var B: ViewMoreBadgeBinding
|
||||||
|
|
||||||
constructor(context: Context?) : super(context) {
|
constructor(context: Context?) : super(context) {
|
||||||
init(context, null)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||||
init(context, attrs)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||||
@@ -54,10 +54,10 @@ class MoreBadgeView : RelativeLayout {
|
|||||||
attrs,
|
attrs,
|
||||||
defStyleAttr
|
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)
|
val view = inflate(context, R.layout.view_more_badge, this)
|
||||||
B = ViewMoreBadgeBinding.bind(view)
|
B = ViewMoreBadgeBinding.bind(view)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,11 +45,11 @@ class ReviewView : RelativeLayout {
|
|||||||
private lateinit var B: ViewReviewBinding
|
private lateinit var B: ViewReviewBinding
|
||||||
|
|
||||||
constructor(context: Context?) : super(context) {
|
constructor(context: Context?) : super(context) {
|
||||||
init(context, null)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||||
init(context, attrs)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||||
@@ -57,10 +57,10 @@ class ReviewView : RelativeLayout {
|
|||||||
attrs,
|
attrs,
|
||||||
defStyleAttr
|
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)
|
val view = inflate(context, R.layout.view_review, this)
|
||||||
B = ViewReviewBinding.bind(view)
|
B = ViewReviewBinding.bind(view)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,11 +51,11 @@ class ScreenshotView : RelativeLayout {
|
|||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?) : super(context) {
|
constructor(context: Context?) : super(context) {
|
||||||
init(context, null)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||||
init(context, attrs)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||||
@@ -63,10 +63,10 @@ class ScreenshotView : RelativeLayout {
|
|||||||
attrs,
|
attrs,
|
||||||
defStyleAttr
|
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)
|
val view = inflate(context, R.layout.view_screenshot, this)
|
||||||
B = ViewScreenshotBinding.bind(view)
|
B = ViewScreenshotBinding.bind(view)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,11 +41,11 @@ class DashView : RelativeLayout {
|
|||||||
private lateinit var B: ViewDashBinding
|
private lateinit var B: ViewDashBinding
|
||||||
|
|
||||||
constructor(context: Context?) : super(context) {
|
constructor(context: Context?) : super(context) {
|
||||||
init(context, null)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||||
init(context, attrs)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||||
@@ -53,10 +53,10 @@ class DashView : RelativeLayout {
|
|||||||
attrs,
|
attrs,
|
||||||
defStyleAttr
|
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)
|
val view = inflate(context, R.layout.view_dash, this)
|
||||||
B = ViewDashBinding.bind(view)
|
B = ViewDashBinding.bind(view)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,11 +41,11 @@ class DeviceView : RelativeLayout {
|
|||||||
private lateinit var B: ViewDeviceBinding
|
private lateinit var B: ViewDeviceBinding
|
||||||
|
|
||||||
constructor(context: Context?) : super(context) {
|
constructor(context: Context?) : super(context) {
|
||||||
init(context, null)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||||
init(context, attrs)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||||
@@ -53,10 +53,10 @@ class DeviceView : RelativeLayout {
|
|||||||
attrs,
|
attrs,
|
||||||
defStyleAttr
|
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)
|
val view = inflate(context, R.layout.view_device, this)
|
||||||
B = ViewDeviceBinding.bind(view)
|
B = ViewDeviceBinding.bind(view)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,11 +40,11 @@ class InstallerView : RelativeLayout {
|
|||||||
private lateinit var B: ViewInstallerBinding
|
private lateinit var B: ViewInstallerBinding
|
||||||
|
|
||||||
constructor(context: Context?) : super(context) {
|
constructor(context: Context?) : super(context) {
|
||||||
init(context, null)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||||
init(context, attrs)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||||
@@ -52,10 +52,10 @@ class InstallerView : RelativeLayout {
|
|||||||
attrs,
|
attrs,
|
||||||
defStyleAttr
|
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)
|
val view = inflate(context, R.layout.view_installer, this)
|
||||||
B = ViewInstallerBinding.bind(view)
|
B = ViewInstallerBinding.bind(view)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,11 +42,11 @@ class LinkView : RelativeLayout {
|
|||||||
private lateinit var B: ViewLinkBinding
|
private lateinit var B: ViewLinkBinding
|
||||||
|
|
||||||
constructor(context: Context?) : super(context) {
|
constructor(context: Context?) : super(context) {
|
||||||
init(context, null)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||||
init(context, attrs)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||||
@@ -54,10 +54,10 @@ class LinkView : RelativeLayout {
|
|||||||
attrs,
|
attrs,
|
||||||
defStyleAttr
|
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)
|
val view = inflate(context, R.layout.view_link, this)
|
||||||
B = ViewLinkBinding.bind(view)
|
B = ViewLinkBinding.bind(view)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,11 +40,11 @@ class LocaleView : RelativeLayout {
|
|||||||
private lateinit var B: ViewLocaleBinding
|
private lateinit var B: ViewLocaleBinding
|
||||||
|
|
||||||
constructor(context: Context?) : super(context) {
|
constructor(context: Context?) : super(context) {
|
||||||
init(context, null)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||||
init(context, attrs)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||||
@@ -52,10 +52,10 @@ class LocaleView : RelativeLayout {
|
|||||||
attrs,
|
attrs,
|
||||||
defStyleAttr
|
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)
|
val view = inflate(context, R.layout.view_locale, this)
|
||||||
B = ViewLocaleBinding.bind(view)
|
B = ViewLocaleBinding.bind(view)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,11 +40,11 @@ class PermissionView : RelativeLayout {
|
|||||||
private lateinit var B: ViewPermissionBinding
|
private lateinit var B: ViewPermissionBinding
|
||||||
|
|
||||||
constructor(context: Context?) : super(context) {
|
constructor(context: Context?) : super(context) {
|
||||||
init(context, null)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||||
init(context, attrs)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||||
@@ -52,10 +52,10 @@ class PermissionView : RelativeLayout {
|
|||||||
attrs,
|
attrs,
|
||||||
defStyleAttr
|
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)
|
val view = inflate(context, R.layout.view_permission, this)
|
||||||
B = ViewPermissionBinding.bind(view)
|
B = ViewPermissionBinding.bind(view)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,11 +36,11 @@ class AppListViewShimmer : ShimmerFrameLayout {
|
|||||||
private lateinit var B: ViewAppListShimmerBinding
|
private lateinit var B: ViewAppListShimmerBinding
|
||||||
|
|
||||||
constructor(context: Context?) : super(context) {
|
constructor(context: Context?) : super(context) {
|
||||||
init(context, null)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||||
init(context, attrs)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||||
@@ -48,10 +48,10 @@ class AppListViewShimmer : ShimmerFrameLayout {
|
|||||||
attrs,
|
attrs,
|
||||||
defStyleAttr
|
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)
|
val view = inflate(context, R.layout.view_app_list_shimmer, this)
|
||||||
B = ViewAppListShimmerBinding.bind(view)
|
B = ViewAppListShimmerBinding.bind(view)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,11 +36,11 @@ class AppViewShimmer : ShimmerFrameLayout {
|
|||||||
private lateinit var B: ViewAppShimmerBinding
|
private lateinit var B: ViewAppShimmerBinding
|
||||||
|
|
||||||
constructor(context: Context?) : super(context) {
|
constructor(context: Context?) : super(context) {
|
||||||
init(context, null)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||||
init(context, attrs)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||||
@@ -48,10 +48,10 @@ class AppViewShimmer : ShimmerFrameLayout {
|
|||||||
attrs,
|
attrs,
|
||||||
defStyleAttr
|
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)
|
val view = inflate(context, R.layout.view_app_shimmer, this)
|
||||||
B = ViewAppShimmerBinding.bind(view)
|
B = ViewAppShimmerBinding.bind(view)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,11 +36,11 @@ class HeaderViewShimmer : ShimmerFrameLayout {
|
|||||||
private lateinit var B: ViewHeaderShimmerBinding
|
private lateinit var B: ViewHeaderShimmerBinding
|
||||||
|
|
||||||
constructor(context: Context?) : super(context) {
|
constructor(context: Context?) : super(context) {
|
||||||
init(context, null)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) {
|
||||||
init(context, attrs)
|
init(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(
|
||||||
@@ -48,10 +48,10 @@ class HeaderViewShimmer : ShimmerFrameLayout {
|
|||||||
attrs,
|
attrs,
|
||||||
defStyleAttr
|
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)
|
val view = inflate(context, R.layout.view_header_shimmer, this)
|
||||||
B = ViewHeaderShimmerBinding.bind(view)
|
B = ViewHeaderShimmerBinding.bind(view)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ class TopChartContainerFragment : Fragment() {
|
|||||||
|
|
||||||
private fun setupViewPager() {
|
private fun setupViewPager() {
|
||||||
B.pager.adapter = ViewPagerAdapter(childFragmentManager, lifecycle, chartType)
|
B.pager.adapter = ViewPagerAdapter(childFragmentManager, lifecycle, chartType)
|
||||||
B.topTabGroup.setOnCheckedChangeListener { group, checkedId ->
|
B.topTabGroup.setOnCheckedChangeListener { _, checkedId ->
|
||||||
when (checkedId) {
|
when (checkedId) {
|
||||||
R.id.tab_top_free -> B.pager.setCurrentItem(0, true)
|
R.id.tab_top_free -> B.pager.setCurrentItem(0, true)
|
||||||
R.id.tab_top_grossing -> B.pager.setCurrentItem(1, true)
|
R.id.tab_top_grossing -> B.pager.setCurrentItem(1, true)
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ class DetailsReviewActivity : BaseActivity() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun attachChips() {
|
private fun attachChips() {
|
||||||
B.chipGroup.setOnCheckedChangeListener { group, checkedId ->
|
B.chipGroup.setOnCheckedChangeListener { _, checkedId ->
|
||||||
when (checkedId) {
|
when (checkedId) {
|
||||||
R.id.filter_review_all -> filter = Review.Filter.ALL
|
R.id.filter_review_all -> filter = Review.Filter.ALL
|
||||||
R.id.filter_review_critical -> filter = Review.Filter.CRITICAL
|
R.id.filter_review_critical -> filter = Review.Filter.CRITICAL
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ class AccentFragment : BaseFragment() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun updateAccent(accentId: Int) {
|
private fun updateAccent(accentId: Int) {
|
||||||
applyTheme(themeId, accentId, position = 3)
|
applyTheme(themeId, position = 3)
|
||||||
save(PREFERENCE_THEME_ACCENT, accentId)
|
save(PREFERENCE_THEME_ACCENT, accentId)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ class UIPreference : PreferenceFragmentCompat() {
|
|||||||
|
|
||||||
save(Preferences.PREFERENCE_THEME_TYPE, themeId)
|
save(Preferences.PREFERENCE_THEME_TYPE, themeId)
|
||||||
|
|
||||||
applyTheme(themeId, accentId, shouldApplyTransition = false)
|
applyTheme(themeId, shouldApplyTransition = false)
|
||||||
|
|
||||||
SettingsActivity.shouldRestart = true
|
SettingsActivity.shouldRestart = true
|
||||||
true
|
true
|
||||||
@@ -66,7 +66,7 @@ class UIPreference : PreferenceFragmentCompat() {
|
|||||||
|
|
||||||
save(Preferences.PREFERENCE_THEME_ACCENT, accentId)
|
save(Preferences.PREFERENCE_THEME_ACCENT, accentId)
|
||||||
|
|
||||||
applyTheme(themeId, accentId, shouldApplyTransition = false)
|
applyTheme(themeId, shouldApplyTransition = false)
|
||||||
|
|
||||||
SettingsActivity.shouldRestart = true
|
SettingsActivity.shouldRestart = true
|
||||||
true
|
true
|
||||||
|
|||||||
Reference in New Issue
Block a user