Resource house keeping + color cleanup

This commit is contained in:
Rahul Patel
2024-07-22 23:12:04 +05:30
parent bf7e8bf347
commit 2b65eeb742
120 changed files with 337 additions and 1133 deletions

View File

@@ -70,7 +70,7 @@ class NativeInstaller @Inject constructor(
intent.flags = Intent.FLAG_GRANT_READ_URI_PERMISSION or Intent.FLAG_ACTIVITY_NEW_TASK
} else {
intent = Intent(Intent.ACTION_VIEW)
intent.setDataAndType(Uri.fromFile(file), "application/vnd.android.package-archive");
intent.setDataAndType(Uri.fromFile(file), "application/vnd.android.package-archive")
intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK
}

View File

@@ -21,6 +21,4 @@ package com.aurora.store.data.providers
import androidx.core.content.FileProvider
class ApkProvider : FileProvider() {
}
class ApkProvider : FileProvider()

View File

@@ -27,7 +27,7 @@ import java.lang.reflect.Modifier
import java.util.Locale
import java.util.Properties
class SpoofProvider constructor(var context: Context) {
class SpoofProvider(var context: Context) {
companion object {
const val LOCALE_SPOOF_ENABLED = "LOCALE_SPOOF_ENABLED"

View File

@@ -1,6 +1,6 @@
package com.aurora.store.data.room.favourites;
package com.aurora.store.data.room.favourites
import androidx.room.Dao;
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query

View File

@@ -66,20 +66,6 @@ class ActionButton : RelativeLayout {
R.drawable.ic_check
)
val stateBackground =
when (typedArray.getString(R.styleable.ActionButton_btnActionBackground)) {
"0" -> R.drawable.bg_state_outline
"1" -> R.drawable.bg_state_outline_rounded
"2" -> R.drawable.bg_state_flat
"3" -> R.drawable.bg_state_flat_rounded
"4" -> null
else -> null
}
stateBackground?.let {
binding.root.background = ContextCompat.getDrawable(context, it)
}
val stateColor = ContextCompat.getColor(context, btnTxtColor)
binding.btn.text = btnTxt

View File

@@ -25,32 +25,24 @@ import androidx.preference.ListPreference
class AuroraListPreference : ListPreference {
constructor(context: Context) : super(context) {
constructor(context: Context) : super(context)
}
constructor(context: Context, attrs: AttributeSet?) : super(context, attrs) {
}
constructor(context: Context, attrs: AttributeSet?) : super(context, attrs)
constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : super(
context,
attrs,
defStyleAttr
) {
}
)
constructor(
context: Context,
attrs: AttributeSet?,
defStyleAttr: Int,
defStyleRes: Int
) : super(context, attrs, defStyleAttr, defStyleRes) {
) : super(context, attrs, defStyleAttr, defStyleRes)
}
override fun getPersistedString(defaultReturnValue: String?): String? {
override fun getPersistedString(defaultReturnValue: String?): String {
return getPersistedInt(defaultReturnValue?.toInt() ?: -1).toString()
}

View File

@@ -171,9 +171,9 @@ class AppDetailsFragment : BaseFragment<FragmentDetailsBinding>() {
findNavController().navigate(
AppDetailsFragmentDirections.actionAppDetailsFragmentToInstallErrorDialogSheet(
app,
event.packageName ?: "",
event.error ?: "",
event.extra ?: ""
event.packageName,
event.error,
event.extra
)
)
}
@@ -960,10 +960,10 @@ class AppDetailsFragment : BaseFragment<FragmentDetailsBinding>() {
binding.layoutDetailsBeta.apply {
if (isSubscribed) {
btnBetaAction.text = getString(R.string.action_leave)
txtBetaTitle.text = getString(R.string.details_beta_subscribed)
headerRatingReviews.setSubTitle(getString(R.string.details_beta_subscribed))
} else {
btnBetaAction.text = getString(R.string.action_join)
txtBetaTitle.text = getString(R.string.details_beta_available)
headerRatingReviews.setSubTitle(getString(R.string.details_beta_available))
}
}
}