diff --git a/app/src/main/java/ryey/easer/plugins/event/notification/NotificationEventListenerService.java b/app/src/main/java/ryey/easer/plugins/event/notification/NotificationEventListenerService.java index cb4d85d8..2c6e1014 100644 --- a/app/src/main/java/ryey/easer/plugins/event/notification/NotificationEventListenerService.java +++ b/app/src/main/java/ryey/easer/plugins/event/notification/NotificationEventListenerService.java @@ -127,18 +127,21 @@ public void onListenerConnected() { @Override public IBinder onBind(Intent intent) { + Logger.d("NotificationEventListenerService onBind()"); is_running = true; return super.onBind(intent); } @Override public boolean onUnbind(Intent intent) { + Logger.d("NotificationEventListenerService onUnbind()"); is_running = false; return super.onUnbind(intent); } @Override public void onCreate() { + Logger.i("NotificationEventListenerService onCreate()"); super.onCreate(); IntentFilter filter = new IntentFilter(); filter.addAction(ACTION_LISTEN); @@ -148,6 +151,7 @@ public void onCreate() { @Override public void onDestroy() { + Logger.i("NotificationEventListenerService onDestroy()"); super.onDestroy(); LocalBroadcastManager.getInstance(getApplicationContext()).unregisterReceiver(mReceiver); if (dataList.size() > 0) { diff --git a/app/src/main/java/ryey/easer/plugins/operation/ringer_mode/InterruptionFilterSwitcherService.java b/app/src/main/java/ryey/easer/plugins/operation/ringer_mode/InterruptionFilterSwitcherService.java index 2a3a9cea..d1a4f18b 100644 --- a/app/src/main/java/ryey/easer/plugins/operation/ringer_mode/InterruptionFilterSwitcherService.java +++ b/app/src/main/java/ryey/easer/plugins/operation/ringer_mode/InterruptionFilterSwitcherService.java @@ -11,6 +11,8 @@ import android.support.annotation.RequiresApi; import android.support.v4.content.LocalBroadcastManager; +import com.orhanobut.logger.Logger; + @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP) public class InterruptionFilterSwitcherService extends NotificationListenerService { private static final String ACTION_CHANGE = "ryey.easer.plugins.operation.ringer_mode.action.CHANGE"; @@ -54,24 +56,28 @@ public void onListenerConnected() { @Override public IBinder onBind(Intent intent) { + Logger.i("InterruptionFilterSwitcherService onBind()"); is_running = true; return super.onBind(intent); } @Override public boolean onUnbind(Intent intent) { + Logger.i("InterruptionFilterSwitcherService onUnbind()"); is_running = false; return super.onUnbind(intent); } @Override public void onCreate() { + Logger.i("InterruptionFilterSwitcherService onCreate()"); super.onCreate(); LocalBroadcastManager.getInstance(getApplicationContext()).registerReceiver(mReceiver, mFilter); } @Override public void onDestroy() { + Logger.i("InterruptionFilterSwitcherService onDestroy()"); super.onDestroy(); LocalBroadcastManager.getInstance(getApplicationContext()).unregisterReceiver(mReceiver); }