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

Commit c51c89f2 authored by Eugene Susla's avatar Eugene Susla Committed by Automerger Merge Worker
Browse files

Prevent non-system overlays from showing over CDM UI am: d7f514ab

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13121152

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ifb4d00ec2b870d5ffaffc49137c0da039d240bb5
parents ef43403a d7f514ab
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);