Merge "Prevent overlay drawing on top of Bluetooth activity dialog" into qt-dev am: 721f43dcdc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13090438 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I9c3d91f901bc38554732ff2cc428232f117efea0
This commit is contained in:
@@ -34,6 +34,8 @@ import com.android.internal.app.AlertActivity;
|
|||||||
import com.android.internal.app.AlertController;
|
import com.android.internal.app.AlertController;
|
||||||
import com.android.settings.R;
|
import com.android.settings.R;
|
||||||
|
|
||||||
|
import static android.view.WindowManager.LayoutParams.SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BluetoothPermissionActivity shows a dialog for accepting incoming
|
* BluetoothPermissionActivity shows a dialog for accepting incoming
|
||||||
* profile connection request from untrusted devices.
|
* profile connection request from untrusted devices.
|
||||||
@@ -76,6 +78,7 @@ public class BluetoothPermissionActivity extends AlertActivity implements
|
|||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
|
getWindow().addPrivateFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);
|
||||||
Intent i = getIntent();
|
Intent i = getIntent();
|
||||||
String action = i.getAction();
|
String action = i.getAction();
|
||||||
if (!action.equals(BluetoothDevice.ACTION_CONNECTION_ACCESS_REQUEST)) {
|
if (!action.equals(BluetoothDevice.ACTION_CONNECTION_ACCESS_REQUEST)) {
|
||||||
|
Reference in New Issue
Block a user