use of org.signal.imageeditor.core.model.EditorModel in project Signal-Android by signalapp.
the class ImageEditorFragment method restoreState.
@Override
public void restoreState(@NonNull Object state) {
if (state instanceof Data) {
Data data = (Data) state;
EditorModel model = data.readModel();
if (model != null) {
if (imageEditorView != null) {
imageEditorView.setModel(model);
onDrawingChanged(false, false);
} else {
this.restoredModel = model;
}
}
} else {
Log.w(TAG, "Received a bad saved state. Received class: " + state.getClass().getName());
}
}
Aggregations