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;
}
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;
}
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;
}
Aggregations