OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package org.chromium.webapk.lib.runtime_library; | 5 package org.chromium.webapk.lib.runtime_library; |
6 | 6 |
7 import android.app.Notification; | 7 import android.app.Notification; |
8 import android.app.NotificationManager; | 8 import android.app.NotificationManager; |
9 import android.app.PendingIntent; | 9 import android.app.PendingIntent; |
10 import android.content.Context; | 10 import android.content.Context; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 | 89 |
90 @Override | 90 @Override |
91 public void closeNotification(String platformTag, int platformID) { | 91 public void closeNotification(String platformTag, int platformID) { |
92 getNotificationManager().cancel(platformTag, platformID); | 92 getNotificationManager().cancel(platformTag, platformID); |
93 } | 93 } |
94 | 94 |
95 private NotificationManager getNotificationManager() { | 95 private NotificationManager getNotificationManager() { |
96 return (NotificationManager) mContext.getSystemService(Context.NOTIFICAT
ION_SERVICE); | 96 return (NotificationManager) mContext.getSystemService(Context.NOTIFICAT
ION_SERVICE); |
97 } | 97 } |
98 } | 98 } |
OLD | NEW |