Code cleanup

pull/14/head
Sam Bosley 13 years ago
parent 9fe7f30373
commit c56c7ef7e8

@ -26,7 +26,7 @@ public class SyncUpgradePrompt {
if (lastPromptDate == -1) if (lastPromptDate == -1)
lastPromptDate = Preferences.getLong(P_SYNC_UPGRADE_PROMPT, 0L); lastPromptDate = Preferences.getLong(P_SYNC_UPGRADE_PROMPT, 0L);
Dialog d; Dialog d = null;
if (DateUtilities.now() - lastPromptDate > DateUtilities.ONE_WEEK * 3) { if (DateUtilities.now() - lastPromptDate > DateUtilities.ONE_WEEK * 3) {
if (!PluginServices.getActFmPreferenceService().isLoggedIn()) { if (!PluginServices.getActFmPreferenceService().isLoggedIn()) {
if (PluginServices.getGtasksPreferenceService().isLoggedIn()) { if (PluginServices.getGtasksPreferenceService().isLoggedIn()) {
@ -69,11 +69,8 @@ public class SyncUpgradePrompt {
setLastPromptDate(Long.MAX_VALUE); setLastPromptDate(Long.MAX_VALUE);
} else { } else {
// Logged into just astrid--don't need to show prompts anymore // Logged into just astrid--don't need to show prompts anymore
d = null;
setLastPromptDate(Long.MAX_VALUE); setLastPromptDate(Long.MAX_VALUE);
} }
} else {
d = null;
} }
if (d != null) if (d != null)

Loading…
Cancel
Save