app/src/main/java/fr/neamar/kiss/DataHandler.java
/**
     * Called when some event occurred that makes us believe that all data providers
     * might be ready now
     */
Called when some event occurred that makes us believe that all data providers
might be ready now
Called when some event occurred that makes us believe that all data providers might be ready now
@SuppressWarnings("CatchAndPrintStackTrace")
    private void handleProviderLoaded() {
        if (this.allProvidersHaveLoaded) {
            return;
        }
        for (ProviderEntry entry : this.providers.values()) {
            if (entry.provider == null || !entry.provider.isLoaded()) {
                return;
            }
        }
        long time = System.currentTimeMillis() - start;
        Log.v(TAG, "Time to load all providers: " + time + "ms");
        this.allProvidersHaveLoaded = true;
        try {
            this.context.unregisterReceiver(this);
            Intent i = new Intent(MainActivity.FULL_LOAD_OVER);
            this.context.sendBroadcast(i);
        } catch (IllegalArgumentException e) {
            e.printStackTrace();
        }
    }
@ SuppressWarnings ( "CatchAndPrintStackTrace" ) private void handleProviderLoaded ( ) { if ( this . allProvidersHaveLoaded ) { return ; } for ( ProviderEntry entry : this . providers . values ( ) ) { if ( entry . provider == null || ! entry . provider . isLoaded ( ) ) { return ; } } long time = System . currentTimeMillis ( ) - start ; Log . v ( TAG , "Time to load all providers: " + time + "ms" ) ; this . allProvidersHaveLoaded = true ; try { this . context . unregisterReceiver ( this ) ; Intent i = new Intent ( MainActivity . FULL_LOAD_OVER ) ; this . context . sendBroadcast ( i ) ; } catch ( IllegalArgumentException e ) { e . printStackTrace ( ) ; } }
Called when some event occurred that makes us believe that all data providers
 might be ready now
Called when some event occurred that makes us believe that all data providers might be ready now
// Make sure that all providers are fully connected // Broadcast the fact that the new providers list is ready