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

Commit f1367e9f authored by Jakub Pawlowski's avatar Jakub Pawlowski Committed by Vasyl Gello
Browse files

Prevent overlay drawing on top of Bluetooth discovery request dialog

Bug: 155650356
Change-Id: I9cee6e5bb8cef77aa385d664fe0738db1496ef20
Merged-In: I9cee6e5bb8cef77aa385d664fe0738db1496ef20
(cherry picked from commit ac671004)
parent 03a1e229
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -33,6 +33,8 @@ import com.android.settingslib.bluetooth.BluetoothDiscoverableTimeoutReceiver;
import com.android.settingslib.bluetooth.LocalBluetoothAdapter;
import com.android.settingslib.bluetooth.LocalBluetoothAdapter;
import com.android.settingslib.bluetooth.LocalBluetoothManager;
import com.android.settingslib.bluetooth.LocalBluetoothManager;


import static android.view.WindowManager.LayoutParams.PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS;

/**
/**
 * RequestPermissionActivity asks the user whether to enable discovery. This is
 * RequestPermissionActivity asks the user whether to enable discovery. This is
 * usually started by an application wanted to start bluetooth and or discovery
 * usually started by an application wanted to start bluetooth and or discovery
@@ -97,6 +99,8 @@ public class RequestPermissionActivity extends Activity implements
    protected void onCreate(Bundle savedInstanceState) {
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        super.onCreate(savedInstanceState);


        getWindow().addPrivateFlags(PRIVATE_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);

        // Note: initializes mLocalAdapter and returns true on error
        // Note: initializes mLocalAdapter and returns true on error
        if (parseIntent()) {
        if (parseIntent()) {
            finish();
            finish();