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

Commit b0cf7ea6 authored by Dongwon Kang's avatar Dongwon Kang
Browse files

Make MediaProjectionPermissionActivity secure with setFilterTouchesWhenObscured()

Bug: 21485727
Change-Id: I6b639464a3543dec4d7a248bdd8042b2c3872fac
parent 76233f06
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -96,6 +96,7 @@ public class MediaProjectionPermissionActivity extends Activity
                .create();
                .create();


        mDialog.create();
        mDialog.create();
        mDialog.getButton(DialogInterface.BUTTON_POSITIVE).setFilterTouchesWhenObscured(true);


        ((CheckBox) mDialog.findViewById(R.id.remember)).setOnCheckedChangeListener(this);
        ((CheckBox) mDialog.findViewById(R.id.remember)).setOnCheckedChangeListener(this);
        mDialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT);
        mDialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT);