diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2021-11-08 10:54:01 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-08 10:54:01 +0530 |
commit | bbadf4a68df41ae91acf161833c4d13e4c77c4eb (patch) | |
tree | 1326f0bb7ae429bdf34a2d198a6bb65ebd864a17 /app/src/main/java | |
parent | 67e70e5936797eaeb7a58b6d4fef53affa03736e (diff) |
Upgrade dependencies (#1537)
* app: use MaterialAlertDialogBuilder for preference dialogs
* build: upgrade all dependencies
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/dev/msfjarvis/aps/ui/settings/SettingsActivity.kt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/src/main/java/dev/msfjarvis/aps/ui/settings/SettingsActivity.kt b/app/src/main/java/dev/msfjarvis/aps/ui/settings/SettingsActivity.kt index 91dd4908..26f060ad 100644 --- a/app/src/main/java/dev/msfjarvis/aps/ui/settings/SettingsActivity.kt +++ b/app/src/main/java/dev/msfjarvis/aps/ui/settings/SettingsActivity.kt @@ -8,6 +8,8 @@ package dev.msfjarvis.aps.ui.settings import android.os.Bundle import android.view.MenuItem import androidx.appcompat.app.AppCompatActivity +import com.google.android.material.dialog.MaterialAlertDialogBuilder +import de.Maxr1998.modernpreferences.Preference import de.Maxr1998.modernpreferences.PreferencesAdapter import de.Maxr1998.modernpreferences.helpers.screen import de.Maxr1998.modernpreferences.helpers.subScreen @@ -30,6 +32,7 @@ class SettingsActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(binding.root) + Preference.Config.dialogBuilderFactory = { context -> MaterialAlertDialogBuilder(context) } val screen = screen(this) { subScreen { |