mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 06:28: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
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
|
if (listener == null)
|
||||||
|
listener = (FragmentClickListener) getActivity();
|
||||||
|
|
||||||
listener.fragmentClicked();
|
listener.fragmentClicked();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -156,6 +156,9 @@ public class VideoFragment extends ViewPagerFragment
|
||||||
default:
|
default:
|
||||||
isFullscreen = !isFullscreen;
|
isFullscreen = !isFullscreen;
|
||||||
checkFullscreen();
|
checkFullscreen();
|
||||||
|
|
||||||
|
if (listener == null)
|
||||||
|
listener = (FragmentClickListener) getActivity();
|
||||||
listener.fragmentClicked();
|
listener.fragmentClicked();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue