Skip to content

Commit

Permalink
Make Custom Notification dialog dismiss itself on up press.
Browse files Browse the repository at this point in the history
  • Loading branch information
cody-signal committed Jun 7, 2020
1 parent d0ca9ba commit 98ab23c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -101,7 +101,7 @@ private void initializeViews(@NonNull View view) {

Toolbar toolbar = view.findViewById(R.id.custom_notifications_toolbar);

toolbar.setNavigationOnClickListener(v -> requireActivity().finish());
toolbar.setNavigationOnClickListener(v -> dismissAllowingStateLoss());

CompoundButton.OnCheckedChangeListener onCustomNotificationsSwitchCheckChangedListener = (buttonView, isChecked) -> {
viewModel.setHasCustomNotifications(isChecked);
Expand Down

0 comments on commit 98ab23c

Please sign in to comment.