use of com.facebook.FacebookActivity in project facebook-android-sdk by facebook.
the class DeviceAuthDialog method onCreateView.
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View view = super.onCreateView(inflater, container, savedInstanceState);
FacebookActivity facebookActivity = (FacebookActivity) getActivity();
LoginFragment fragment = (LoginFragment) facebookActivity.getCurrentFragment();
deviceAuthMethodHandler = (DeviceAuthMethodHandler) fragment.getLoginClient().getCurrentHandler();
if (savedInstanceState != null) {
RequestState requestState = savedInstanceState.getParcelable(REQUEST_STATE_KEY);
if (requestState != null) {
setCurrentRequestState(requestState);
}
}
return view;
}
Aggregations