mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-22 12:38:00 +01:00
setup a fragment listener after orientation change if theres none
This commit is contained in:
parent
74a4a5173c
commit
05af0f7862
2 changed files with 6 additions and 0 deletions
|
@ -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 a new issue