You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
some time in fragment throws exception when i use :
//So i use it like this getActivity().findViewById(R.id.google_progress).setVisibility(View.INVISIBLE);
and i know getActivity some time return null instead context but still is problem ! you have any suggest can cover this ?
/** * Return the {@link FragmentActivity} this fragment is currently associated with. * May return {@code null} if the fragment is associated with a {@link Context} * instead. */finalpublicFragmentActivitygetActivity() {
returnmHost == null ? null : (FragmentActivity) mHost.getActivity();
}
The text was updated successfully, but these errors were encountered:
some time in
fragment
throws exception when i use :and i know
getActivity
some time return null instead context but still is problem ! you have any suggest can cover this ?The text was updated successfully, but these errors were encountered: