• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

packages/apps/Settings


Commit MetaInfo

Revisionacf7cd4013bb18bd39f3cc45bc89334df825bfdb (tree)
Zeit2021-07-01 20:01:21
AutorJakub Pawlowski <jpawlowski@goog...>
CommiterAndroid Build Coastguard Worker

Log Message

Prevent drawing on top of DevicePickerActivity

Bug: 182584940
Change-Id: I8b27b397bce1708a42b96b1b647c64e23142c468
(cherry picked from commit 68f799a4c6afc3b96b354d1b8b970780bb6cf58a)

Ändern Zusammenfassung

Diff

--- a/src/com/android/settings/bluetooth/DevicePickerActivity.java
+++ b/src/com/android/settings/bluetooth/DevicePickerActivity.java
@@ -16,6 +16,8 @@
1616
1717 package com.android.settings.bluetooth;
1818
19+import static android.view.WindowManager.LayoutParams.SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS;
20+
1921 import android.os.Bundle;
2022
2123 import androidx.fragment.app.FragmentActivity;
@@ -31,6 +33,7 @@ public final class DevicePickerActivity extends FragmentActivity {
3133 @Override
3234 protected void onCreate(Bundle savedInstanceState) {
3335 super.onCreate(savedInstanceState);
36+ getWindow().addSystemFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);
3437 setContentView(R.layout.bluetooth_device_picker);
3538 }
3639 }