Commit 76beb384 authored by yangwu.jia's avatar yangwu.jia

修改继承自ShimPluginRegistry

parent 652c012f
...@@ -6,6 +6,7 @@ import android.support.annotation.Nullable; ...@@ -6,6 +6,7 @@ import android.support.annotation.Nullable;
import com.idlefish.flutterboost.interfaces.IContainerRecord; import com.idlefish.flutterboost.interfaces.IContainerRecord;
import io.flutter.app.FlutterPluginRegistry; import io.flutter.app.FlutterPluginRegistry;
import io.flutter.embedding.engine.FlutterEngine; import io.flutter.embedding.engine.FlutterEngine;
import io.flutter.embedding.engine.plugins.shim.ShimPluginRegistry;
import io.flutter.plugin.common.BinaryMessenger; import io.flutter.plugin.common.BinaryMessenger;
import io.flutter.plugin.common.PluginRegistry; import io.flutter.plugin.common.PluginRegistry;
import io.flutter.plugin.platform.PlatformViewRegistry; import io.flutter.plugin.platform.PlatformViewRegistry;
...@@ -14,13 +15,13 @@ import io.flutter.view.TextureRegistry; ...@@ -14,13 +15,13 @@ import io.flutter.view.TextureRegistry;
import java.lang.ref.WeakReference; import java.lang.ref.WeakReference;
public class BoostPluginRegistry extends FlutterPluginRegistry { public class BoostPluginRegistry extends ShimPluginRegistry {
protected WeakReference<Activity> mCurrentActivityRef; protected WeakReference<Activity> mCurrentActivityRef;
private FlutterEngine mEngine; private FlutterEngine mEngine;
private Context mContext; private Context mContext;
public BoostPluginRegistry(FlutterEngine engine, Context context) { public BoostPluginRegistry(FlutterEngine engine, Context context) {
super(engine, context); super(engine);
mEngine = engine; mEngine = engine;
mContext=context; mContext=context;
} }
......
...@@ -62,8 +62,6 @@ public class FlutterSplashView extends FrameLayout { ...@@ -62,8 +62,6 @@ public class FlutterSplashView extends FrameLayout {
if (splashScreen != null&&!hasRendered) { if (splashScreen != null&&!hasRendered) {
transitionToFlutter(); transitionToFlutter();
hasRendered=true; hasRendered=true;
Log.i("xxxxxx22222",this.hashCode()+"");
} }
} }
}; };
......
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