use of androidx.fragment.app.FragmentActivity in project FirebaseUI-Android by firebase.
the class EmailLinkFragment method onAttach.
@Override
public void onAttach(Context context) {
super.onAttach(context);
FragmentActivity activity = getActivity();
if (!(activity instanceof TroubleSigningInListener)) {
throw new IllegalStateException("Activity must implement TroubleSigningInListener");
}
mListener = (TroubleSigningInListener) activity;
}
use of androidx.fragment.app.FragmentActivity in project FirebaseUI-Android by firebase.
the class TroubleSigningInFragment method onAttach.
@Override
public void onAttach(Context context) {
super.onAttach(context);
FragmentActivity activity = getActivity();
if (!(activity instanceof ResendEmailListener)) {
throw new IllegalStateException("Activity must implement ResendEmailListener");
}
mListener = (ResendEmailListener) activity;
}
use of androidx.fragment.app.FragmentActivity in project FirebaseUI-Android by firebase.
the class EmailLinkPromptEmailFragment method onActivityCreated.
@Override
public void onActivityCreated(@Nullable Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
FragmentActivity activity = getActivity();
if (!(activity instanceof EmailLinkPromptEmailListener)) {
throw new IllegalStateException("Activity must implement EmailLinkPromptEmailListener");
}
mListener = (EmailLinkPromptEmailListener) activity;
initHandler();
}
use of androidx.fragment.app.FragmentActivity in project FirebaseUI-Android by firebase.
the class RegisterEmailFragment method onActivityCreated.
@Override
public void onActivityCreated(@Nullable Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
FragmentActivity activity = requireActivity();
activity.setTitle(R.string.fui_title_register_email);
if (!(activity instanceof AnonymousUpgradeListener)) {
throw new IllegalStateException("Activity must implement CheckEmailListener");
}
mListener = (AnonymousUpgradeListener) activity;
}
use of androidx.fragment.app.FragmentActivity in project twicalico by moko256.
the class BaseListFragment method onActivityCreated.
@Override
public void onActivityCreated(@Nullable Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
FragmentActivity activity = getActivity();
if (activity instanceof GetViewForSnackBar) {
viewForSnackBar = ((GetViewForSnackBar) activity).getViewForSnackBar();
}
if (activity instanceof HasRefreshLayoutInterface) {
swipeRefreshLayout = ((HasRefreshLayoutInterface) activity).get();
}
}
Aggregations