diff options
author | Makoto Onuki <omakoto@google.com> | 2020-12-10 17:04:55 -0800 |
---|---|---|
committer | Makoto Onuki <omakoto@google.com> | 2020-12-11 19:33:43 +0000 |
commit | d74717f0319b8282f76bc88d999fca87138c2f48 (patch) | |
tree | 7cd60357a7982193e9b66a59f1cfa487be7fa21a | |
parent | 4c94266286279d545f3a770bad8a641d46164ee4 (diff) | |
download | ContactsProvider-d74717f0319b8282f76bc88d999fca87138c2f48.tar.gz |
Prevent the dialog from getting olerlayed.
Bug: 174045870
Test: Tested with the test app attached in http://b/174045870#comment4
Merged-in: I52d846d3aaadb84df953e46cf2f6c9e7cfc23eea
Change-Id: I52d846d3aaadb84df953e46cf2f6c9e7cfc23eea
(cherry picked from commit 0eb99400cd33618089d40647ea12d1da1adc5ba0)
-rw-r--r-- | AndroidManifest.xml | 1 | ||||
-rw-r--r-- | src/com/android/providers/contacts/debug/ContactsDumpActivity.java | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 9542e6d9..8cb73666 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -18,6 +18,7 @@ <uses-permission android:name="android.permission.WRITE_CONTACTS" /> <uses-permission android:name="android.permission.USE_RESERVED_DISK" /> <uses-permission android:name="android.permission.READ_DEVICE_CONFIG" /> + <uses-permission android:name="android.permission.HIDE_NON_SYSTEM_OVERLAY_WINDOWS" /> <permission android:name="android.permission.SEND_CALL_LOG_CHANGE" diff --git a/src/com/android/providers/contacts/debug/ContactsDumpActivity.java b/src/com/android/providers/contacts/debug/ContactsDumpActivity.java index 359f3f8b..725b5bfc 100644 --- a/src/com/android/providers/contacts/debug/ContactsDumpActivity.java +++ b/src/com/android/providers/contacts/debug/ContactsDumpActivity.java @@ -66,6 +66,13 @@ public class ContactsDumpActivity extends Activity implements OnClickListener { } @Override + protected void onStart() { + super.onStart(); + getWindow().addSystemFlags(android.view.WindowManager.LayoutParams + .SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS); + } + + @Override public void onClick(View v) { switch (v.getId()) { case R.id.confirm: |