Update NotificationStation after NotificationListenerService API change

Change-Id: Ia58c18657c44c0dd49b058ce5b581554889b08d5
This commit is contained in:
Christoph Studer
2014-07-25 11:46:45 +02:00
parent 3ded7ddb1f
commit fe1b8950bc

View File

@@ -119,7 +119,7 @@ public class NotificationStation extends SettingsPreferenceFragment {
mNoMan = INotificationManager.Stub.asInterface( mNoMan = INotificationManager.Stub.asInterface(
ServiceManager.getService(Context.NOTIFICATION_SERVICE)); ServiceManager.getService(Context.NOTIFICATION_SERVICE));
try { try {
mListener.registerAsSystemService(new ComponentName(mContext.getPackageName(), mListener.registerAsSystemService(mContext, new ComponentName(mContext.getPackageName(),
this.getClass().getCanonicalName()), ActivityManager.getCurrentUser()); this.getClass().getCanonicalName()), ActivityManager.getCurrentUser());
} catch (RemoteException e) { } catch (RemoteException e) {
Log.e(TAG, "Cannot register listener", e); Log.e(TAG, "Cannot register listener", e);