From 0eb99400cd33618089d40647ea12d1da1adc5ba0 Mon Sep 17 00:00:00 2001 From: Makoto Onuki Date: Thu, 10 Dec 2020 17:04:55 -0800 Subject: Prevent the dialog from getting olerlayed. Bug: 174045870 Test: Tested with the test app attached in http://b/174045870#comment4 Change-Id: I52d846d3aaadb84df953e46cf2f6c9e7cfc23eea --- src/com/android/providers/contacts/debug/ContactsDumpActivity.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') 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 @@ -65,6 +65,13 @@ public class ContactsDumpActivity extends Activity implements OnClickListener { mDeleteButton.setEnabled(DataExporter.dumpFileExists(this)); } + @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()) { -- cgit v1.2.3