Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 478a98a3 authored by Felipe Leme's avatar Felipe Leme Committed by android-build-merger
Browse files

Merge "Re-add callback to onCancel() when screen is touched outside Save UI." into oc-mr1-dev

am: 87794e95

Change-Id: I4d9f94d688aa27789112afb070e262b76aad8926
parents 0e8e7830 87794e95
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -271,6 +271,10 @@ final class SaveUi {
        mDialog = new Dialog(context, R.style.Theme_DeviceDefault_Light_Panel);
        mDialog.setContentView(view);

        // Dialog can be dismissed when touched outside, but the negative listener should not be
        // notified (hence the null argument).
        mDialog.setOnDismissListener((d) -> mListener.onCancel(null));

        final Window window = mDialog.getWindow();
        window.setType(WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY);
        window.addFlags(WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE