summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/notification/NotificationStation.java
diff options
context:
space:
mode:
authorChris Wren <cwren@android.com>2014-05-06 15:25:07 -0400
committerChris Wren <cwren@android.com>2014-05-08 15:58:58 -0400
commit0c916144bdaa7398b1894244fd20e65f0293f925 (patch)
treefa159d5241669407b0317a790d80a09f9b08f76b /src/com/android/settings/notification/NotificationStation.java
parent029c13e1d9e342ab968914457a19157c0b390c06 (diff)
downloadpackages_apps_Settings-0c916144bdaa7398b1894244fd20e65f0293f925.zip
packages_apps_Settings-0c916144bdaa7398b1894244fd20e65f0293f925.tar.gz
packages_apps_Settings-0c916144bdaa7398b1894244fd20e65f0293f925.tar.bz2
port NotificationStation to new interface.
This change shouldn't be necessary for clients that extend NotificationListenerService. Depends-On: I7244c65944a9657df41fb313b3cb5a52e149709d Change-Id: I38476c860c196ab75982b89ea796566e4e57c1ea
Diffstat (limited to 'src/com/android/settings/notification/NotificationStation.java')
-rw-r--r--src/com/android/settings/notification/NotificationStation.java14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/com/android/settings/notification/NotificationStation.java b/src/com/android/settings/notification/NotificationStation.java
index d8a3efb..69a7a89 100644
--- a/src/com/android/settings/notification/NotificationStation.java
+++ b/src/com/android/settings/notification/NotificationStation.java
@@ -36,6 +36,7 @@ import android.os.RemoteException;
import android.os.ServiceManager;
import android.os.UserHandle;
import android.service.notification.INotificationListener;
+import android.service.notification.NotificationOrderUpdate;
import android.service.notification.StatusBarNotification;
import android.util.Log;
import android.view.LayoutInflater;
@@ -74,11 +75,12 @@ public class NotificationStation extends SettingsPreferenceFragment {
private INotificationListener.Stub mListener = new INotificationListener.Stub() {
@Override
- public void onListenerConnected(String[] notificationKeys) throws RemoteException {
+ public void onListenerConnected(NotificationOrderUpdate update) throws RemoteException {
// noop
}
@Override
- public void onNotificationPosted(StatusBarNotification notification) throws RemoteException {
+ public void onNotificationPosted(StatusBarNotification notification,
+ NotificationOrderUpdate update) throws RemoteException {
Log.v(TAG, "onNotificationPosted: " + notification);
final Handler h = getListView().getHandler();
h.removeCallbacks(mRefreshListRunnable);
@@ -86,11 +88,17 @@ public class NotificationStation extends SettingsPreferenceFragment {
}
@Override
- public void onNotificationRemoved(StatusBarNotification notification) throws RemoteException {
+ public void onNotificationRemoved(StatusBarNotification notification,
+ NotificationOrderUpdate update) throws RemoteException {
final Handler h = getListView().getHandler();
h.removeCallbacks(mRefreshListRunnable);
h.postDelayed(mRefreshListRunnable, 100);
}
+
+ @Override
+ public void onNotificationOrderUpdate(NotificationOrderUpdate update)
+ throws RemoteException {
+ }
};
private NotificationHistoryAdapter mAdapter;