Commit 0d019c12 authored by yangwu.jia's avatar yangwu.jia

去除onSaveInstanceState

parent e77ef8c7
......@@ -91,23 +91,6 @@ public class FlutterSplashView extends FrameLayout {
}
}
@Nullable
protected Parcelable onSaveInstanceState() {
Parcelable superState = super.onSaveInstanceState();
FlutterSplashView.SavedState savedState = new FlutterSplashView.SavedState(superState);
savedState.previousCompletedSplashIsolate = this.previousCompletedSplashIsolate;
savedState.splashScreenState = this.splashScreen != null ? this.splashScreen.saveSplashScreenState() : null;
return savedState;
}
protected void onRestoreInstanceState(Parcelable state) {
FlutterSplashView.SavedState savedState = (FlutterSplashView.SavedState)state;
super.onRestoreInstanceState(savedState.getSuperState());
this.previousCompletedSplashIsolate = savedState.previousCompletedSplashIsolate;
this.splashScreenState = savedState.splashScreenState;
}
/**
* Displays the given {@code splashScreen} on top of the given {@code flutterView} until
* Flutter has rendered its first frame, then the {@code splashScreen} is transitioned away.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment