use of com.waz.zclient.ServiceContainer in project wire-android by wireapp.
the class BaseFragment method onAttach.
@Override
public final void onAttach(Activity activity) {
super.onAttach(activity);
if (activity instanceof ServiceContainer) {
controllerFactory = ((ServiceContainer) activity).getControllerFactory();
}
Fragment fragment = getParentFragment();
if (fragment != null) {
container = (T) fragment;
} else {
container = (T) activity;
}
onPostAttach(activity);
}
Aggregations