urbanairship-core/src/main/java/com/urbanairship/remotedata/RemoteData.java
private void onForeground() {
        long timeSinceLastRefresh = System.currentTimeMillis() - preferenceDataStore.getLong(LAST_REFRESH_TIME_KEY, -1);
        if (getForegroundRefreshInterval() <= timeSinceLastRefresh) {
            refresh();
        }
    }
/**
     * Called when the application is foregrounded.
     */
Called when the application is foregrounded.
Called when the application is foregrounded .
private void onForeground() {
        long timeSinceLastRefresh = System.currentTimeMillis() - preferenceDataStore.getLong(LAST_REFRESH_TIME_KEY, -1);
        if (getForegroundRefreshInterval() <= timeSinceLastRefresh) {
            refresh();
        }
    }
private void onForeground ( ) { long timeSinceLastRefresh = System . currentTimeMillis ( ) - preferenceDataStore . getLong ( LAST_REFRESH_TIME_KEY , - 1 ) ; if ( getForegroundRefreshInterval ( ) <= timeSinceLastRefresh ) { refresh ( ) ; } }
Called when the application is foregrounded.
Called when the application is foregrounded .