packages/apps/Settings
Revision | acf7cd4013bb18bd39f3cc45bc89334df825bfdb (tree) |
---|---|
Zeit | 2021-07-01 20:01:21 |
Autor | Jakub Pawlowski <jpawlowski@goog...> |
Commiter | Android Build Coastguard Worker |
Prevent drawing on top of DevicePickerActivity
Bug: 182584940
Change-Id: I8b27b397bce1708a42b96b1b647c64e23142c468
(cherry picked from commit 68f799a4c6afc3b96b354d1b8b970780bb6cf58a)
@@ -16,6 +16,8 @@ | ||
16 | 16 | |
17 | 17 | package com.android.settings.bluetooth; |
18 | 18 | |
19 | +import static android.view.WindowManager.LayoutParams.SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS; | |
20 | + | |
19 | 21 | import android.os.Bundle; |
20 | 22 | |
21 | 23 | import androidx.fragment.app.FragmentActivity; |
@@ -31,6 +33,7 @@ public final class DevicePickerActivity extends FragmentActivity { | ||
31 | 33 | @Override |
32 | 34 | protected void onCreate(Bundle savedInstanceState) { |
33 | 35 | super.onCreate(savedInstanceState); |
36 | + getWindow().addSystemFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS); | |
34 | 37 | setContentView(R.layout.bluetooth_device_picker); |
35 | 38 | } |
36 | 39 | } |