Add a dialog before favorites sync initializes
This commit is contained in:
parent
e6586dbc73
commit
56492ae446
1 changed files with 8 additions and 1 deletions
|
|
@ -496,7 +496,14 @@ class LibraryController(
|
|||
if (preferences.exhShowSyncIntro().get()) {
|
||||
activity?.let { FavoritesIntroDialog().show(it) }
|
||||
} else {
|
||||
presenter.favoritesSync.runSync()
|
||||
MaterialAlertDialogBuilder(activity!!)
|
||||
.setTitle(R.string.favorites_sync)
|
||||
.setMessage(R.string.favorites_sync_conformation_message)
|
||||
.setPositiveButton(android.R.string.ok) { _, _ ->
|
||||
presenter.favoritesSync.runSync()
|
||||
}
|
||||
.setNegativeButton(android.R.string.cancel, null)
|
||||
.show()
|
||||
}
|
||||
}
|
||||
// SY <--
|
||||
|
|
|
|||
Loading…
Reference in a new issue