Create QkDialog to simplify showing menus

This commit is contained in:
Moez Bhatti
2018-04-19 01:14:11 -04:00
parent 0027dfd8e0
commit 13bcf27b51
13 changed files with 97 additions and 164 deletions
@@ -97,7 +97,7 @@ class NotificationPrefsViewModel(intent: Intent) : QkViewModel<NotificationPrefs
R.id.notifications -> notifications.set(!notifications.get())
R.id.notificationPreviews -> view.showNotificationPreviewModeDialog()
R.id.notificationPreviews -> view.showPreviewModeDialog()
R.id.vibration -> vibration.set(!vibration.get())
@@ -109,7 +109,7 @@ class NotificationPrefsViewModel(intent: Intent) : QkViewModel<NotificationPrefs
}
}
view.notificationPreviewModeSelectedIntent
view.previewModeSelectedIntent
.autoDisposable(view.scope())
.subscribe { prefs.notificationPreviews().set(it) }