mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 16:49:40 +01:00
Fix issue where postponed transition would not start at the right time.
This commit is contained in:
committed by
Greyson Parrelli
parent
39d07c0081
commit
2674fd2df4
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user