我正在使用Conductor代替与活动相关的 Fragment。
设想:
LocationConductor已附加到MotherActivity. 从LocationConductor,我正在访问哪个对话GoogleApiClient请求。LocationRequest
来自 LocationConductor:
LocationSettingsResult.getStatus().startResolutionForResult(getActivity(), RC_LOCATION_SETTINGS);
它请求LocationRequestDialog使用GoogleApiClient哪个需要Activity上下文。onActivityResultDialog 中的CallBack 将在MotherActivity传递ActivityContext 时返回。
问题 :
- 我希望回调到 LocationConductor 而不是 MotherActivity。如何在调用 LocationRequest 时强制在导体中回调或传递导体上下文?
试过:
- registerForActivityResult(requestCode) :但这也无助于在 Conductor 强制回调。
registerForActivityResult : Registers this Controller to handle onActivityResult responses. Calling this method is NOT necessary when calling {@link #startActivityForResult(Intent, int)}