Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 77283ec9 authored by Natalie Masse's avatar Natalie Masse Committed by Android (Google) Code Review
Browse files

Merge "Fixed NullPointerException due to null Bundle, changed time interval...

Merge "Fixed NullPointerException due to null Bundle, changed time interval from ms to seconds as per method documentation" into lmp-docs
parents fd117ff2 e24908e3
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -396,13 +396,11 @@ public class MainActivity extends FragmentActivity {
    // Account
    public static final String ACCOUNT = "default_account";
    // Sync interval constants
    public static final long MILLISECONDS_PER_SECOND = 1000L;
    public static final long SECONDS_PER_MINUTE = 60L;
    public static final long SYNC_INTERVAL_IN_MINUTES = 60L;
    public static final long SYNC_INTERVAL =
            SYNC_INTERVAL_IN_MINUTES *
            SECONDS_PER_MINUTE *
            MILLISECONDS_PER_SECOND;
            SECONDS_PER_MINUTE;
    // Global variables
    // A content resolver for accessing the provider
    ContentResolver mResolver;
@@ -419,7 +417,7 @@ public class MainActivity extends FragmentActivity {
        ContentResolver.addPeriodicSync(
                ACCOUNT,
                AUTHORITY,
                null,
                Bundle.EMPTY,
                SYNC_INTERVAL);
        ...
    }