Restore previous changes and delete onPause function

pull/840/head
Quentin Hibon 5 years ago
parent 89d5993047
commit 1f07c01774

@ -61,6 +61,7 @@ class SnoozeDelayPickerActivity : FragmentActivity(), OnItemClickListener {
.setItems(R.array.snooze_picker_names, null)
.create()
dialog!!.listView.onItemClickListener = this
dialog!!.setOnDismissListener { finish() }
dialog!!.show()
SystemUtils.unlockScreen(this)
}
@ -92,15 +93,4 @@ class SnoozeDelayPickerActivity : FragmentActivity(), OnItemClickListener {
super.finish()
overridePendingTransition(0, 0)
}
override fun onResume() {
SystemUtils.unlockScreen(this)
super.onResume()
if (dialog != null) dialog!!.show()
}
override fun onPause() {
super.onPause()
if (dialog != null) dialog!!.dismiss()
}
}

Loading…
Cancel
Save