Skip to content
Snippets Groups Projects
Commit 5d60cfae authored by Tumbul, Erwin's avatar Tumbul, Erwin
Browse files

Rename NotifierListener to NotificationListener.

parent 47156fd0
No related branches found
No related tags found
No related merge requests found
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
tools:targetApi="31"> tools:targetApi="31">
<service <service
android:name=".NotifierService" android:name=".NotificationListener"
android:enabled="true" android:enabled="true"
android:exported="true" android:exported="true"
android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE"> android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE">
......
package com.mobilesec.client.notifier; package com.mobilesec.client.notifier;
import android.content.Intent; import android.content.Intent;
import android.service.notification.NotificationListenerService;
import android.service.notification.StatusBarNotification; import android.service.notification.StatusBarNotification;
import android.util.Log; import android.util.Log;
import androidx.localbroadcastmanager.content.LocalBroadcastManager; import androidx.localbroadcastmanager.content.LocalBroadcastManager;
// SEE https://developer.android.com/training/notify-user/build-notification // SEE https://developer.android.com/training/notify-user/build-notification
public class NotifierService extends NotificationListenerService { public class NotificationListener extends android.service.notification.NotificationListenerService {
@Override @Override
public void onNotificationPosted(StatusBarNotification sbn) { public void onNotificationPosted(StatusBarNotification sbn) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment