1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-24 02:12:15 -05:00

Removed unreachable searchStats overrides

Removed unreachable searchStats overrides.
Replaced with folderStatusChanged in MessageProvider.

Further review confirmed searchStats is only called for listeners passed
directly to MessagingController.searchLocalMessages* and never called
for any
MessagingController registered listener.
folderStatusChanged  is more appropriate for this purpose.
This commit is contained in:
Roee Shlomo 2012-08-31 04:35:56 +03:00
parent a4b8bbdb72
commit f6e30a0642
2 changed files with 1 additions and 7 deletions

View File

@ -577,12 +577,6 @@ public class K9 extends Application {
}
@Override
public void searchStats(final AccountStats stats) {
// let observers know a fetch occurred
K9.this.sendBroadcast(new Intent(K9.Intents.EmailReceived.ACTION_REFRESH_OBSERVER, null));
}
});
notifyObservers();

View File

@ -965,7 +965,7 @@ public class MessageProvider extends ContentProvider {
MessagingController.getInstance(application).addListener(new MessagingListener() {
@Override
public void searchStats(final AccountStats stats) {
public void folderStatusChanged(Account account, String folderName, int unreadMessageCount) {
application.getContentResolver().notifyChange(CONTENT_URI, null);
}
});