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:
parent
a4b8bbdb72
commit
f6e30a0642
@ -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();
|
||||
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user