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
|
||||||
) {
|
) {
|
||||||
@@ -142,4 +141,4 @@ private fun AppCompatActivity.setLightNavigationBar() {
|
|||||||
flags = flags or View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR
|
flags = flags or View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR
|
||||||
}
|
}
|
||||||
window.decorView.systemUiVisibility = flags
|
window.decorView.systemUiVisibility = flags
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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()
|
||||||
@@ -50,4 +50,4 @@ class AuroraGlide : AppGlideModule() {
|
|||||||
.skipMemoryCache(false)
|
.skipMemoryCache(false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -58,11 +58,11 @@ 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)
|
||||||
attachExtra(app)
|
attachExtra(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(
|
||||||
@@ -72,4 +72,4 @@ class AMInstaller(context: Context) : InstallerBase(context) {
|
|||||||
out.close()
|
out.close()
|
||||||
return File(outPath)
|
return File(outPath)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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) {
|
||||||
@@ -64,4 +64,4 @@ class NativeInstaller(context: Context) : InstallerBase(context) {
|
|||||||
intent.putExtra(Intent.EXTRA_INSTALLER_PACKAGE_NAME, "com.android.vending")
|
intent.putExtra(Intent.EXTRA_INSTALLER_PACKAGE_NAME, "com.android.vending")
|
||||||
context.startActivity(intent)
|
context.startActivity(intent)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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,17 +70,17 @@ 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}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun Context.isExternalStorageEnable(): Boolean {
|
fun Context.isExternalStorageEnable(): Boolean {
|
||||||
return Preferences.getBoolean(this, Preferences.PREFERENCE_DOWNLOAD_EXTERNAL)
|
return Preferences.getBoolean(this, Preferences.PREFERENCE_DOWNLOAD_EXTERNAL)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
@@ -101,4 +101,4 @@ class UpdateButton : RelativeLayout {
|
|||||||
fun addInstallOnClickListener(onClickListener: OnClickListener?) {
|
fun addInstallOnClickListener(onClickListener: OnClickListener?) {
|
||||||
B.btnInstall.setOnClickListener(onClickListener)
|
B.btnInstall.setOnClickListener(onClickListener)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
@@ -79,4 +79,4 @@ class AccentView : RelativeLayout {
|
|||||||
fun click(onClickListener: OnClickListener?) {
|
fun click(onClickListener: OnClickListener?) {
|
||||||
B.root.setOnClickListener(onClickListener)
|
B.root.setOnClickListener(onClickListener)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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,11 +44,11 @@ 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)
|
||||||
}
|
}
|
||||||
@@ -99,4 +99,4 @@ class BlackListView : RelativeLayout {
|
|||||||
fun clear() {
|
fun clear() {
|
||||||
B.imgIcon.clear()
|
B.imgIcon.clear()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
@@ -78,4 +78,4 @@ class CategoryView : RelativeLayout {
|
|||||||
fun clear() {
|
fun clear() {
|
||||||
B.imgBackground.clear()
|
B.imgBackground.clear()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
@@ -67,4 +66,4 @@ class EditorHeadView : RelativeLayout {
|
|||||||
fun title(title: String) {
|
fun title(title: String) {
|
||||||
B.title.text = title
|
B.title.text = title
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
@@ -96,4 +96,4 @@ class EditorImageView : RelativeLayout {
|
|||||||
fun clear() {
|
fun clear() {
|
||||||
B.img.clear()
|
B.img.clear()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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,11 +47,11 @@ 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)
|
||||||
}
|
}
|
||||||
@@ -73,4 +73,4 @@ class MinimalHeaderView : RelativeLayout {
|
|||||||
fun clear() {
|
fun clear() {
|
||||||
B.imgAction.visibility = VISIBLE
|
B.imgAction.visibility = VISIBLE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
@@ -95,4 +95,4 @@ class SearchSuggestionView : RelativeLayout {
|
|||||||
fun clear() {
|
fun clear() {
|
||||||
B.img.clear()
|
B.img.clear()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
@@ -74,4 +74,4 @@ class ThemeView : RelativeLayout {
|
|||||||
fun checked(onCheckedChangeListener: CompoundButton.OnCheckedChangeListener?) {
|
fun checked(onCheckedChangeListener: CompoundButton.OnCheckedChangeListener?) {
|
||||||
B.radiobutton.setOnCheckedChangeListener(onCheckedChangeListener)
|
B.radiobutton.setOnCheckedChangeListener(onCheckedChangeListener)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
@@ -78,4 +78,4 @@ class UpdateHeaderView : RelativeLayout {
|
|||||||
fun clear() {
|
fun clear() {
|
||||||
B.btnAction.isEnabled = true
|
B.btnAction.isEnabled = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
@@ -108,4 +108,4 @@ class AppListView : RelativeLayout {
|
|||||||
fun clear() {
|
fun clear() {
|
||||||
B.imgIcon.clear()
|
B.imgIcon.clear()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
@@ -173,4 +173,4 @@ class AppUpdateView : RelativeLayout {
|
|||||||
B.headerIndicator.removeCallbacks { }
|
B.headerIndicator.removeCallbacks { }
|
||||||
B.progressDownload.invisible()
|
B.progressDownload.invisible()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
@@ -91,4 +91,4 @@ class AppView : RelativeLayout {
|
|||||||
fun clear() {
|
fun clear() {
|
||||||
B.imgIcon.clear()
|
B.imgIcon.clear()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
@@ -62,4 +62,4 @@ class NoAppAltView : RelativeLayout {
|
|||||||
fun message(message: String) {
|
fun message(message: String) {
|
||||||
B.txtMsg.text = message
|
B.txtMsg.text = message
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
@@ -70,4 +70,4 @@ class NoAppView : RelativeLayout {
|
|||||||
B.img.setImageDrawable(ContextCompat.getDrawable(context, icon))
|
B.img.setImageDrawable(ContextCompat.getDrawable(context, icon))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
@@ -86,4 +86,4 @@ class AppDependentView : RelativeLayout {
|
|||||||
fun clear() {
|
fun clear() {
|
||||||
B.imgIcon.clear()
|
B.imgIcon.clear()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
@@ -88,4 +88,4 @@ class BadgeView : RelativeLayout {
|
|||||||
@OnViewRecycled
|
@OnViewRecycled
|
||||||
fun clear() {
|
fun clear() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
@@ -75,4 +75,4 @@ class ExodusView : RelativeLayout {
|
|||||||
@OnViewRecycled
|
@OnViewRecycled
|
||||||
fun clear() {
|
fun clear() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
@@ -64,4 +64,4 @@ class FileView : RelativeLayout {
|
|||||||
B.line1.text = file.name
|
B.line1.text = file.name
|
||||||
B.line2.text = CommonUtil.addSiPrefix(file.size)
|
B.line2.text = CommonUtil.addSiPrefix(file.size)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
@@ -116,4 +116,4 @@ class LargeScreenshotView : RelativeLayout {
|
|||||||
fun clear() {
|
fun clear() {
|
||||||
B.img.clear()
|
B.img.clear()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
@@ -123,4 +123,4 @@ class MiniScreenshotView : RelativeLayout {
|
|||||||
fun clear() {
|
fun clear() {
|
||||||
B.img.clear()
|
B.img.clear()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
@@ -95,4 +95,4 @@ class MoreBadgeView : RelativeLayout {
|
|||||||
@OnViewRecycled
|
@OnViewRecycled
|
||||||
fun clear() {
|
fun clear() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
@@ -96,4 +96,4 @@ class ReviewView : RelativeLayout {
|
|||||||
fun clear() {
|
fun clear() {
|
||||||
B.img.clear()
|
B.img.clear()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
@@ -123,4 +123,4 @@ class ScreenshotView : RelativeLayout {
|
|||||||
fun clear() {
|
fun clear() {
|
||||||
B.img.clear()
|
B.img.clear()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
@@ -81,4 +81,4 @@ class DashView : RelativeLayout {
|
|||||||
fun click(onClickListener: OnClickListener?) {
|
fun click(onClickListener: OnClickListener?) {
|
||||||
B.root.setOnClickListener(onClickListener)
|
B.root.setOnClickListener(onClickListener)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
@@ -81,4 +81,4 @@ class DeviceView : RelativeLayout {
|
|||||||
fun checked(onCheckedChangeListener: CompoundButton.OnCheckedChangeListener?) {
|
fun checked(onCheckedChangeListener: CompoundButton.OnCheckedChangeListener?) {
|
||||||
B.checkbox.setOnCheckedChangeListener(onCheckedChangeListener)
|
B.checkbox.setOnCheckedChangeListener(onCheckedChangeListener)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
@@ -81,4 +81,4 @@ class InstallerView : RelativeLayout {
|
|||||||
fun click(onClickListener: OnClickListener?) {
|
fun click(onClickListener: OnClickListener?) {
|
||||||
B.root.setOnClickListener(onClickListener)
|
B.root.setOnClickListener(onClickListener)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
@@ -81,4 +81,4 @@ class LinkView : RelativeLayout {
|
|||||||
fun click(onClickListener: OnClickListener?) {
|
fun click(onClickListener: OnClickListener?) {
|
||||||
B.root.setOnClickListener(onClickListener)
|
B.root.setOnClickListener(onClickListener)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
@@ -78,4 +78,4 @@ class LocaleView : RelativeLayout {
|
|||||||
fun checked(onCheckedChangeListener: CompoundButton.OnCheckedChangeListener?) {
|
fun checked(onCheckedChangeListener: CompoundButton.OnCheckedChangeListener?) {
|
||||||
B.checkbox.setOnCheckedChangeListener(onCheckedChangeListener)
|
B.checkbox.setOnCheckedChangeListener(onCheckedChangeListener)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
@@ -81,4 +81,4 @@ class PermissionView : RelativeLayout {
|
|||||||
fun click(onClickListener: OnClickListener?) {
|
fun click(onClickListener: OnClickListener?) {
|
||||||
B.btnAction.setOnClickListener(onClickListener)
|
B.btnAction.setOnClickListener(onClickListener)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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,11 +48,11 @@ 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,11 +48,11 @@ 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,11 +48,11 @@ 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)
|
||||||
@@ -127,4 +127,4 @@ class TopChartContainerFragment : Fragment() {
|
|||||||
return tabFragments.size
|
return tabFragments.size
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -192,4 +192,4 @@ class AccentFragment : BaseFragment() {
|
|||||||
object : TypeToken<MutableList<Accent?>?>() {}.type
|
object : TypeToken<MutableList<Accent?>?>() {}.type
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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,11 +66,11 @@ 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