Make Custom Notification dialog dismiss itself on up press.
This commit is contained in:
parent
d0ca9ba6a6
commit
98ab23c1a3
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ public class CustomNotificationsDialogFragment extends DialogFragment {
|
||||||
|
|
||||||
Toolbar toolbar = view.findViewById(R.id.custom_notifications_toolbar);
|
Toolbar toolbar = view.findViewById(R.id.custom_notifications_toolbar);
|
||||||
|
|
||||||
toolbar.setNavigationOnClickListener(v -> requireActivity().finish());
|
toolbar.setNavigationOnClickListener(v -> dismissAllowingStateLoss());
|
||||||
|
|
||||||
CompoundButton.OnCheckedChangeListener onCustomNotificationsSwitchCheckChangedListener = (buttonView, isChecked) -> {
|
CompoundButton.OnCheckedChangeListener onCustomNotificationsSwitchCheckChangedListener = (buttonView, isChecked) -> {
|
||||||
viewModel.setHasCustomNotifications(isChecked);
|
viewModel.setHasCustomNotifications(isChecked);
|
||||||
|
|
Loading…
Add table
Reference in a new issue