Loading services/core/java/com/android/server/notification/NotificationHistoryDatabase.java +8 −2 Original line number Diff line number Diff line Loading @@ -103,7 +103,7 @@ public class NotificationHistoryDatabase { IntentFilter deletionFilter = new IntentFilter(ACTION_HISTORY_DELETION); deletionFilter.addDataScheme(SCHEME_DELETION); mContext.registerReceiver(mFileCleaupReceiver, deletionFilter); mContext.registerReceiver(mFileCleanupReceiver, deletionFilter); } public void init() { Loading Loading @@ -329,6 +329,12 @@ public class NotificationHistoryDatabase { } } public void unregisterFileCleanupReceiver() { if(mContext != null) { mContext.unregisterReceiver(mFileCleanupReceiver); } } private static long safeParseLong(String fileName) { // AtomicFile will create copies of the numeric files with ".new" and ".bak" // over the course of its processing. If these files still exist on boot we need to clean Loading @@ -340,7 +346,7 @@ public class NotificationHistoryDatabase { } } private final BroadcastReceiver mFileCleaupReceiver = new BroadcastReceiver() { private final BroadcastReceiver mFileCleanupReceiver = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { String action = intent.getAction(); Loading services/core/java/com/android/server/notification/NotificationHistoryManager.java +1 −0 Original line number Diff line number Diff line Loading @@ -272,6 +272,7 @@ public class NotificationHistoryManager { private void disableHistory(NotificationHistoryDatabase userHistory, @UserIdInt int userId) { userHistory.disableHistory(); userHistory.unregisterFileCleanupReceiver(); mUserPendingHistoryDisables.put(userId, false); mHistoryEnabled.put(userId, false); Loading Loading
services/core/java/com/android/server/notification/NotificationHistoryDatabase.java +8 −2 Original line number Diff line number Diff line Loading @@ -103,7 +103,7 @@ public class NotificationHistoryDatabase { IntentFilter deletionFilter = new IntentFilter(ACTION_HISTORY_DELETION); deletionFilter.addDataScheme(SCHEME_DELETION); mContext.registerReceiver(mFileCleaupReceiver, deletionFilter); mContext.registerReceiver(mFileCleanupReceiver, deletionFilter); } public void init() { Loading Loading @@ -329,6 +329,12 @@ public class NotificationHistoryDatabase { } } public void unregisterFileCleanupReceiver() { if(mContext != null) { mContext.unregisterReceiver(mFileCleanupReceiver); } } private static long safeParseLong(String fileName) { // AtomicFile will create copies of the numeric files with ".new" and ".bak" // over the course of its processing. If these files still exist on boot we need to clean Loading @@ -340,7 +346,7 @@ public class NotificationHistoryDatabase { } } private final BroadcastReceiver mFileCleaupReceiver = new BroadcastReceiver() { private final BroadcastReceiver mFileCleanupReceiver = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { String action = intent.getAction(); Loading
services/core/java/com/android/server/notification/NotificationHistoryManager.java +1 −0 Original line number Diff line number Diff line Loading @@ -272,6 +272,7 @@ public class NotificationHistoryManager { private void disableHistory(NotificationHistoryDatabase userHistory, @UserIdInt int userId) { userHistory.disableHistory(); userHistory.unregisterFileCleanupReceiver(); mUserPendingHistoryDisables.put(userId, false); mHistoryEnabled.put(userId, false); Loading