Commit 25b8932c authored by akwizgran's avatar akwizgran

Merge branch '47-sign-in-reminder' into 'master'

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

Closes #47

See merge request !872
parents d8ce1d75 82f939ec
Pipeline #1965 passed with stage
in 8 minutes and 51 seconds
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment