| Index: chrome/android/webapk/shell_apk/src/org/chromium/webapk/shell_apk/NotificationSettingsLauncherActivity.java
|
| diff --git a/chrome/android/webapk/shell_apk/src/org/chromium/webapk/shell_apk/NotificationSettingsLauncherActivity.java b/chrome/android/webapk/shell_apk/src/org/chromium/webapk/shell_apk/NotificationSettingsLauncherActivity.java
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..fd405f28afdd1aba2075961c2e9d0c3400044df7
|
| --- /dev/null
|
| +++ b/chrome/android/webapk/shell_apk/src/org/chromium/webapk/shell_apk/NotificationSettingsLauncherActivity.java
|
| @@ -0,0 +1,27 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +package org.chromium.webapk.shell_apk;
|
| +
|
| +import android.app.Activity;
|
| +import android.content.Intent;
|
| +import android.os.Bundle;
|
| +
|
| +/**
|
| + * Forwards NOTIFICATION_PREFERENCES intent to host browser.
|
| + */
|
| +public class NotificationSettingsLauncherActivity extends Activity {
|
| +
|
| + @Override
|
| + public void onCreate(Bundle savedInstance) {
|
| + super.onCreate(savedInstance);
|
| +
|
| + String hostPackage = WebApkUtils.getHostBrowserPackageName(this);
|
| + Intent intent = getIntent();
|
| + intent.setPackage(hostPackage);
|
| + intent.setComponent(null);
|
| + startActivity(intent);
|
| + finish();
|
| + }
|
| +}
|
|
|