RESTRICT AUTOMERGE am: 30e9d28c22
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13181018 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ia0ce89b57ab01e6316b5cad5854b26624b460043
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION"/>
|
||||
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
|
||||
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>
|
||||
<uses-permission android:name="android.permission.HIDE_NON_SYSTEM_OVERLAY_WINDOWS"/>
|
||||
|
||||
<application
|
||||
android:allowClearUserData="true"
|
||||
|
||||
@@ -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