Update NotificationStation after NotificationListenerService API change
Change-Id: Ia58c18657c44c0dd49b058ce5b581554889b08d5
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user