Fix issue where postponed transition would not start at the right time.

This commit is contained in:
Alex Hart
2022-07-28 10:07:40 -03:00
committed by Greyson Parrelli
parent 39d07c0081
commit 2674fd2df4
5 changed files with 25 additions and 25 deletions

View File

@@ -220,6 +220,7 @@ public final class ImageEditorFragment extends Fragment implements ImageEditorHu
@Override
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
controller.restoreState();
Mode mode = Mode.getByCode(requireArguments().getString(KEY_MODE));
@@ -588,8 +589,10 @@ public final class ImageEditorFragment extends Fragment implements ImageEditorHu
@Override
public void onClearAll() {
imageEditorView.getModel().clearUndoStack();
updateHudDialRotation();
if (imageEditorView != null) {
imageEditorView.getModel().clearUndoStack();
updateHudDialRotation();
}
}
@Override
@@ -1050,6 +1053,8 @@ public final class ImageEditorFragment extends Fragment implements ImageEditorHu
void onMainImageLoaded();
void onMainImageFailedToLoad();
void restoreState();
}
private static class FaceDetectionResult {