setup a fragment listener after orientation change if theres none
This commit is contained in:
parent
74a4a5173c
commit
05af0f7862
|
@ -37,6 +37,9 @@ public class PhotoFragment extends ViewPagerFragment implements View.OnClickList
|
|||
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
if (listener == null)
|
||||
listener = (FragmentClickListener) getActivity();
|
||||
|
||||
listener.fragmentClicked();
|
||||
}
|
||||
|
||||
|
|
|
@ -156,6 +156,9 @@ public class VideoFragment extends ViewPagerFragment
|
|||
default:
|
||||
isFullscreen = !isFullscreen;
|
||||
checkFullscreen();
|
||||
|
||||
if (listener == null)
|
||||
listener = (FragmentClickListener) getActivity();
|
||||
listener.fragmentClicked();
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue