projects/moments/app/src/main/java/io/v/moments/ux/MomentHolder.java
/**
     * Verify that advertising is off and that the UX reflects that fact.
     */
Verify that advertising is off and that the UX reflects that fact.
Verify that advertising is off and that the UX reflects that fact .
private void cleanUpPostStop(final Moment moment) {
        Log.d(TAG, "cleanUpPostStop");
        if (mToaster.isDestroyed()) {
            Log.d(TAG, "The activity is dead, no UX to fix.");
            return;
        }
        moment.setDesiredAdState(AdState.OFF);
        if (mAdvertiseButton.isChecked()) {
            Log.d(TAG, "Advertising off, must cleanup UX.");
            mAdvertiseButton.setChecked(false);
        }
    }
private void cleanUpPostStop ( final Moment moment ) { Log . d ( TAG , "cleanUpPostStop" ) ; if ( mToaster . isDestroyed ( ) ) { Log . d ( TAG , "The activity is dead, no UX to fix." ) ; return ; } moment . setDesiredAdState ( AdState . OFF ) ; if ( mAdvertiseButton . isChecked ( ) ) { Log . d ( TAG , "Advertising off, must cleanup UX." ) ; mAdvertiseButton . setChecked ( false ) ; } }
Verify that advertising is off and that the UX reflects that fact.
Verify that advertising is off and that the UX reflects that fact .