Search in sources :

Example 1 with FacebookActivity

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;
}
Also used : FacebookActivity(com.facebook.FacebookActivity) View(android.view.View) TextView(android.widget.TextView) Nullable(android.support.annotation.Nullable)

Aggregations

Nullable (android.support.annotation.Nullable)1 View (android.view.View)1 TextView (android.widget.TextView)1 FacebookActivity (com.facebook.FacebookActivity)1