|
|
|
@ -49,7 +49,8 @@ class SnoozeDelayPickerActivity : FragmentActivity(), OnItemClickListener {
|
|
|
|
|
val app = applicationContext as HabitsApplication
|
|
|
|
|
val appComponent = app.component
|
|
|
|
|
reminderController = appComponent.reminderController
|
|
|
|
|
habit = appComponent.habitList.getById(ContentUris.parseId(intent.data))
|
|
|
|
|
val data = intent.data
|
|
|
|
|
if (data != null) habit = appComponent.habitList.getById(ContentUris.parseId(data))
|
|
|
|
|
if (habit == null) finish()
|
|
|
|
|
val theme = R.style.Theme_AppCompat_Light_Dialog_Alert
|
|
|
|
|
dialog = AlertDialog.Builder(ContextThemeWrapper(this, theme))
|
|
|
|
|