flutter-dashboard · GitHub

@xster

@xster

@xster xster changed the title Let FlutterActivity subclasses detach from engine Enforce exclusivity for activity and fragments attached to the FlutterEngine

Sep 20, 2020

@xster

@xster

mehmetf

super.onDestroy();
delegate.onDestroyView();
delegate.onDetach();
Log.e("meh", "Activity " + this + " onDestroy");
Log.v(TAG, "FlutterActivity " + this + " onDestroy called after release.");
}
lifecycle.handleLifecycleEvent(Lifecycle.Event.ON_DESTROY);
}
"FlutterActivityAndFragmentDelegate's getAppComponent should only "
+ "be queried after onAttach, when the host's activity should always be non-null");
}
return host.getActivity();
// -------- Start ActivityControlSurface -------
private boolean isAttachedToActivity() {
return activity != null;
return activity != null || exclusiveActivity != null;
// If we were already attached to an Android component, detach from it.
detachFromAndroidComponent();
if (this.exclusiveActivity != null) {
this.exclusiveActivity.detachFromFlutterEngine();
* avoid situations where multiple activities are driving the FlutterEngine simultaneously.
* See https://github.com/flutter/flutter/issues/66192.
*/
@Deprecated
… activity/fragment

@xster xster mentioned this pull request

Sep 21, 2020

Merged

@xster

mehmetf

protected void onNewIntent(@NonNull Intent intent) {
// TODO(mattcarroll): change G3 lint rule that forces us to call super
super.onNewIntent(intent);
ensureAlive();

@xster

@xster

@xster

@xster

xster deleted the activity-overlap branch

September 22, 2020 17:34

Closed

Closed

zanderso added a commit that referenced this pull request

Sep 22, 2020

Closed

Closed

Closed

Merged

@xster xster mentioned this pull request

Oct 12, 2020

Open

Read the original on github.com ↗