From 0d019c1260246c64cc32dae943aa81952bff61c2 Mon Sep 17 00:00:00 2001 From: "yangwu.jia" <yangwu.jia@taobao.com> Date: Mon, 11 Nov 2019 14:05:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4onSaveInstanceState?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../containers/FlutterSplashView.java | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/android/src/main/java/com/idlefish/flutterboost/containers/FlutterSplashView.java b/android/src/main/java/com/idlefish/flutterboost/containers/FlutterSplashView.java index 3f122a9..c74382d 100644 --- a/android/src/main/java/com/idlefish/flutterboost/containers/FlutterSplashView.java +++ b/android/src/main/java/com/idlefish/flutterboost/containers/FlutterSplashView.java @@ -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. -- 2.26.2