small fixes (#61)

* quickfix

* android locale tuning

* toggle option to setting

* some customizations

* some fixes

* some fixes

* some fixes

* fixed header of search by image

---------

Co-authored-by: rebelonion <87634197+rebelonion@users.noreply.github.com>
This commit is contained in:
aayush262 2023-11-27 08:44:51 +05:30 committed by GitHub
parent e5f2bb6566
commit c5ed8acfa3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 5 deletions

View file

@ -99,7 +99,7 @@ class SearchFilterBottomDialog() : BottomSheetDialogFragment() {
ArrayAdapter( ArrayAdapter(
binding.root.context, binding.root.context,
R.layout.item_dropdown, R.layout.item_dropdown,
(1970 until 2024).map { it.toString() }.reversed().toTypedArray() (1970 until 2025).map { it.toString() }.reversed().toTypedArray()
) )
) )
} }

View file

@ -1151,7 +1151,7 @@ class ExoplayerView : AppCompatActivity(), Player.Listener {
if (settings.askIndividual) loadData<Boolean>("${media.id}_progressDialog") if (settings.askIndividual) loadData<Boolean>("${media.id}_progressDialog")
?: true else false ?: true else false
if (showProgressDialog && Anilist.userid != null && if (media.isAdult) settings.updateForH else true) if (showProgressDialog && Anilist.userid != null && if (media.isAdult) settings.updateForH else true)
AlertDialog.Builder(this, R.style.DialogTheme) AlertDialog.Builder(this, R.style.MyPopup)
.setTitle(getString(R.string.auto_update, media.userPreferredName)) .setTitle(getString(R.string.auto_update, media.userPreferredName))
.apply { .apply {
setOnCancelListener { hideSystemBars() } setOnCancelListener { hideSystemBars() }

View file

@ -245,7 +245,7 @@ ThemeManager(this).applyTheme()
showProgressDialog = if (settings.askIndividual) loadData<Boolean>("${media.id}_progressDialog") != true else false showProgressDialog = if (settings.askIndividual) loadData<Boolean>("${media.id}_progressDialog") != true else false
progressDialog = progressDialog =
if (showProgressDialog && Anilist.userid != null && if (media.isAdult) settings.updateForH else true) if (showProgressDialog && Anilist.userid != null && if (media.isAdult) settings.updateForH else true)
AlertDialog.Builder(this, R.style.DialogTheme).setTitle(getString(R.string.title_update_progress)).apply { AlertDialog.Builder(this, R.style.MyPopup).setTitle(getString(R.string.title_update_progress)).apply {
setMultiChoiceItems( setMultiChoiceItems(
arrayOf(getString(R.string.dont_ask_again, media.userPreferredName)), arrayOf(getString(R.string.dont_ask_again, media.userPreferredName)),
booleanArrayOf(false) booleanArrayOf(false)

View file

@ -2,7 +2,8 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="fill_parent"> android:layout_height="fill_parent"
android:fitsSystemWindows="true">
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"

View file

@ -55,7 +55,7 @@
android:insetBottom="0dp" android:insetBottom="0dp"
android:padding="8dp" android:padding="8dp"
android:text="@android:string/cancel" android:text="@android:string/cancel"
android:textColor="?attr/colorOnPrimary" android:textColor="?attr/colorPrimary"
android:textSize="16sp" android:textSize="16sp"
app:cornerRadius="16dp" /> app:cornerRadius="16dp" />