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

Commit 68f799a4 authored by Jakub Pawlowski's avatar Jakub Pawlowski
Browse files

Prevent drawing on top of DevicePickerActivity

Bug: 182584940
Change-Id: I8b27b397bce1708a42b96b1b647c64e23142c468
parent 1e8d908c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@

package com.android.settings.bluetooth;

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

import android.os.Bundle;

import androidx.fragment.app.FragmentActivity;
@@ -31,6 +33,7 @@ public final class DevicePickerActivity extends FragmentActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getWindow().addSystemFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);
        setContentView(R.layout.bluetooth_device_picker);
    }
}