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

Commit 735281a7 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Hide non-system overlay windows in RequestIgnoreBatteryOptimizations." into sc-dev

parents 77dc7541 90321d45
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -93,6 +93,13 @@ public class RequestIgnoreBatteryOptimizations extends AlertActivity implements
        setupAlert();
    }

    @Override
    protected void onStart() {
        super.onStart();
        getWindow().addSystemFlags(android.view.WindowManager.LayoutParams
                .SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);
    }

    @Override
    public void onClick(DialogInterface dialog, int which) {
        switch (which) {