Merge "Hide non-system overlay windows in RequestIgnoreBatteryOptimizations." into sc-dev am: 735281a739
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13902431 Change-Id: I0c52ff4243fe576dfb7d7d6651e2579fd0603880
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user