Chromium Code Reviews| Index: chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellActivity.java |
| diff --git a/chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellActivity.java b/chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellActivity.java |
| index 9f14d5d4615cee18614e644a2770de4e9b80fa6c..1eb022ad8a7b93bd3d1ac1fba7069a4beb9c2539 100644 |
| --- a/chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellActivity.java |
| +++ b/chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellActivity.java |
| @@ -6,6 +6,7 @@ |
| import android.app.Activity; |
| import android.app.FragmentManager; |
| +import android.app.Notification; |
| import android.content.Intent; |
| import android.os.Bundle; |
| import android.provider.Browser; |
| @@ -39,6 +40,7 @@ |
| import org.chromium.chrome.browser.identity.UuidBasedUniqueIdentificationGenerator; |
| import org.chromium.chrome.browser.nfc.BeamController; |
| import org.chromium.chrome.browser.nfc.BeamProvider; |
| +import org.chromium.chrome.browser.notifications.NotificationUIManager; |
| import org.chromium.chrome.browser.preferences.PreferencesLauncher; |
| import org.chromium.chrome.browser.printing.PrintingControllerFactory; |
| import org.chromium.chrome.browser.printing.TabPrinter; |
| @@ -209,6 +211,12 @@ public String getTabUrlForBeam() { |
| return tab.getUrl(); |
| } |
| }); |
| + |
| + // The notification settings cog on the flipped side of Notifications and in the Android |
|
Peter Beverloo
2015/02/25 18:26:09
I would have expected this to be in onNewIntent().
Michael van Ouwerkerk
2015/02/25 19:00:19
That's also what I expected, but I could find no w
|
| + // Settings "App Notifications" view will open us with a specific category. |
| + if (getIntent().hasCategory(Notification.INTENT_CATEGORY_NOTIFICATION_PREFERENCES)) { |
| + NotificationUIManager.launchNotificationPreferences(this, getIntent()); |
| + } |
| } |
| @Override |