Search in sources :

Example 1 with StatePreservationManager

use of com.cjsoftware.library.uistatepreservation.StatePreservationManager in project ucsFramework by cjsoftware-lib.

the class AbstractPreservableDialogFragment method restoreViewStateManager.

// endregion
// region Private helper methods
private StatePreservationManager restoreViewStateManager(Bundle savedState) {
    StatePreservationManager statePreservationManager = null;
    ObjectRegistry objectRegistry = getObjectRegistry();
    String statePreservationHandlerKey = savedState.getString(STATE_PRESERVATION_MANAGER_KEY);
    if (statePreservationHandlerKey != null) {
        statePreservationManager = objectRegistry.get(statePreservationHandlerKey);
    }
    return statePreservationManager;
}
Also used : StatePreservationManager(com.cjsoftware.library.uistatepreservation.StatePreservationManager) ObjectRegistry(com.cjsoftware.library.core.ObjectRegistry)

Example 2 with StatePreservationManager

use of com.cjsoftware.library.uistatepreservation.StatePreservationManager in project ucsFramework by cjsoftware-lib.

the class AbstractPreservableActivity method restoreViewStateManager.

// endregion
// region private helper methods
private StatePreservationManager restoreViewStateManager(Bundle savedState) {
    StatePreservationManager uiStatePreservationManager = null;
    ObjectRegistry objectRegistry = getObjectRegistry();
    String statePreservationHandlerKey = savedState.getString(STATE_PRESERVATION_MANAGER_KEY);
    if (statePreservationHandlerKey != null) {
        uiStatePreservationManager = objectRegistry.get(statePreservationHandlerKey);
    }
    return uiStatePreservationManager;
}
Also used : StatePreservationManager(com.cjsoftware.library.uistatepreservation.StatePreservationManager) ObjectRegistry(com.cjsoftware.library.core.ObjectRegistry)

Example 3 with StatePreservationManager

use of com.cjsoftware.library.uistatepreservation.StatePreservationManager in project ucsFramework by cjsoftware-lib.

the class AbstractPreservableFragment method restoreViewStateManager.

// endregion
// region Private helper methods
private StatePreservationManager restoreViewStateManager(Bundle savedState) {
    StatePreservationManager statePreservationManager = null;
    ObjectRegistry objectRegistry = getObjectRegistry();
    String statePreservationHandlerKey = savedState.getString(STATE_PRESERVATION_MANAGER_KEY);
    if (statePreservationHandlerKey != null) {
        statePreservationManager = objectRegistry.get(statePreservationHandlerKey);
    }
    return statePreservationManager;
}
Also used : StatePreservationManager(com.cjsoftware.library.uistatepreservation.StatePreservationManager) ObjectRegistry(com.cjsoftware.library.core.ObjectRegistry)

Aggregations

ObjectRegistry (com.cjsoftware.library.core.ObjectRegistry)3 StatePreservationManager (com.cjsoftware.library.uistatepreservation.StatePreservationManager)3