未验证 提交 482155b3 编写于 作者: M Matt Carroll 提交者: GitHub

Fixed splash screen crash when bringing Android app back to foreground after...

Fixed splash screen crash when bringing Android app back to foreground after being evicted from memory. (#47635) (#16916)
上级 42e05721
......@@ -8,6 +8,7 @@ import android.content.Context;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.Keep;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
......@@ -251,6 +252,7 @@ import io.flutter.embedding.engine.renderer.FlutterUiDisplayListener;
splashScreen.transitionToFlutter(onTransitionComplete);
}
@Keep
public static class SavedState extends BaseSavedState {
public static Creator<SavedState> CREATOR =
new Creator<SavedState>() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册