Skip to content
Snippets Groups Projects
Verified Commit 82f939ec authored by Torsten Grote's avatar Torsten Grote
Browse files

Don't show sign-in reminder if user is signed-in already

parent c0d5a3a5
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,8 @@ public class SignInReminderReceiver extends BroadcastReceiver {
if (action == null) return;
if (action.equals(ACTION_BOOT_COMPLETED) ||
action.equals(ACTION_MY_PACKAGE_REPLACED)) {
if (accountManager.accountExists()) {
if (accountManager.accountExists() &&
!accountManager.hasDatabaseKey()) {
SharedPreferences prefs = app.getDefaultSharedPreferences();
if (prefs.getBoolean(NOTIFY_SIGN_IN, true)) {
showSignInNotification(ctx);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment