Don't show sync notification if user logged out but still has pending messages (edge case)

pull/14/head
Sam Bosley 12 years ago
parent a0626ddfc2
commit 7839e67f1f

@ -253,7 +253,7 @@ public class ActFmSyncThread {
synchronized(monitor) {
while ((pendingMessages.isEmpty() && !timeForBackgroundSync()) || !actFmPreferenceService.isLoggedIn() || !syncMigration) {
try {
if (pendingMessages.isEmpty() && notificationId >= 0) {
if ((pendingMessages.isEmpty() || !actFmPreferenceService.isLoggedIn()) && notificationId >= 0) {
notificationManager.cancel(notificationId);
notificationId = -1;
}

Loading…
Cancel
Save