Prevent non-system overlays from showing over CDM UI am: d7f514abbe
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13121152 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ifb4d00ec2b870d5ffaffc49137c0da039d240bb5
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
package com.android.companiondevicemanager;
|
||||
|
||||
import static android.companion.BluetoothDeviceFilterUtils.getDeviceMacAddress;
|
||||
import static android.view.WindowManager.LayoutParams.SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.companion.CompanionDeviceManager;
|
||||
@@ -56,6 +57,8 @@ public class DeviceChooserActivity extends Activity {
|
||||
Log.e(LOG_TAG, "About to show UI, but no devices to show");
|
||||
}
|
||||
|
||||
getWindow().addSystemFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);
|
||||
|
||||
if (getService().mRequest.isSingleDevice()) {
|
||||
setContentView(R.layout.device_confirmation);
|
||||
final DeviceFilterPair selectedDevice = getService().mDevicesFound.get(0);
|
||||
|
||||
Reference in New Issue
Block a user