Skip to content

Commit

Permalink
resolve #69, #70, #71
Browse files Browse the repository at this point in the history
  • Loading branch information
valkriaine committed May 15, 2022
1 parent 567ba74 commit c61ca48
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -305,12 +305,6 @@ private void forceNotificationListener()
appListManager.clearAllNotifications();
if (notificationListenerIntent != null && getContext() != null)
{
ComponentName notificationComponent = new ComponentName(getContext().getApplicationContext(), NotificationListener.class);
PackageManager pm = getContext().getPackageManager();

pm.setComponentEnabledSetting(notificationComponent, PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP);
pm.setComponentEnabledSetting(notificationComponent, PackageManager.COMPONENT_ENABLED_STATE_ENABLED, PackageManager.DONT_KILL_APP);

try
{
getContext().startService(notificationListenerIntent);
Expand Down

0 comments on commit c61ca48

Please sign in to comment.