Commit 59d680fc authored by Peter E Conn's avatar Peter E Conn Committed by Chromium LUCI CQ

💥 Don't close system dialog on Android S.

Change-Id: I6ba0d84b62120e380c6a8fa5b4ce7cf27e472cd0
Bug: 1166691
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2640376
Commit-Queue: Peter Conn <peconn@chromium.org>
Reviewed-by: default avatarPeter Beverloo <peter@chromium.org>
Cr-Commit-Position: refs/heads/master@{#845314}
parent dbf9dfa3
...@@ -14,6 +14,7 @@ import android.content.ComponentName; ...@@ -14,6 +14,7 @@ import android.content.ComponentName;
import android.content.Context; import android.content.Context;
import android.content.Intent; import android.content.Intent;
import android.net.Uri; import android.net.Uri;
import android.os.Build;
import android.os.Bundle; import android.os.Bundle;
import android.os.Handler; import android.os.Handler;
import android.os.SystemClock; import android.os.SystemClock;
...@@ -138,8 +139,11 @@ public class WebappLauncherActivity extends Activity { ...@@ -138,8 +139,11 @@ public class WebappLauncherActivity extends Activity {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
// Close the notification tray. // Close the notification tray.
ContextUtils.getApplicationContext().sendBroadcast( if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.R) {
new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS)); // https://crbug.com/1166691
ContextUtils.getApplicationContext().sendBroadcast(
new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS));
}
long createTimestamp = SystemClock.elapsedRealtime(); long createTimestamp = SystemClock.elapsedRealtime();
Intent intent = getIntent(); Intent intent = getIntent();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment