summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMakoto Onuki <omakoto@google.com>2021-03-05 04:25:55 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-03-05 04:25:55 +0000
commitaa4273212f161b96429dd2443daf7c274bc3c1f6 (patch)
tree2959d5f8b9181f1231f5a71cb7cefd64f2b62d86
parent8897a25115a78edd4357bb6f1962d4fac52d3ae1 (diff)
parent11fe2048a5aa5d3d3db315194921130bf2407919 (diff)
downloadCalendarProvider-aa4273212f161b96429dd2443daf7c274bc3c1f6.tar.gz
Add SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS to CalendarDebugActivity am: 11fe2048a5
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/providers/CalendarProvider/+/13545483 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I69fb185a4e5558929be7e6ef14e170d9cdeb7788
-rw-r--r--AndroidManifest.xml1
-rw-r--r--src/com/android/providers/calendar/CalendarDebugActivity.java7
2 files changed, 8 insertions, 0 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 9d87918..fd56187 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -18,6 +18,7 @@
package="com.android.providers.calendar"
android:sharedUserId="android.uid.calendar">
+ <uses-permission android:name="android.permission.HIDE_NON_SYSTEM_OVERLAY_WINDOWS" />
<uses-permission android:name="android.permission.READ_CALENDAR" />
<uses-permission android:name="android.permission.WRITE_CALENDAR" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
diff --git a/src/com/android/providers/calendar/CalendarDebugActivity.java b/src/com/android/providers/calendar/CalendarDebugActivity.java
index d06e095..70a1fe4 100644
--- a/src/com/android/providers/calendar/CalendarDebugActivity.java
+++ b/src/com/android/providers/calendar/CalendarDebugActivity.java
@@ -69,6 +69,13 @@ public class CalendarDebugActivity extends Activity implements OnClickListener {
updateDeleteButton();
}
+ @Override
+ protected void onStart() {
+ super.onStart();
+ getWindow().addSystemFlags(android.view.WindowManager.LayoutParams
+ .SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);
+ }
+
private void updateDeleteButton() {
final boolean fileExist =
new File(Environment.getExternalStorageDirectory(), OUT_FILE).exists();