Fixes #4159 On Explore Tab, All Available Options on toolbar in media detail view are only targeting the first media in the list.

Fixes #4159 On Explore Tab, All Available Options on toolbar in media detail view are only targeting the first media in the list.
This commit is contained in:
Pratham Pahariya 2021-01-20 22:48:55 +05:30 committed by GitHub
parent e70fea64fb
commit edef23f03d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -116,7 +116,8 @@ public class ExploreListRootFragment extends CommonsDaggerSupportFragment implem
Log.d("deneme8","on media clicked");
container.setVisibility(View.VISIBLE);
((ExploreFragment)getParentFragment()).tabLayout.setVisibility(View.GONE);
mediaDetails = new MediaDetailPagerFragment(false, true, position);
mediaDetails = new MediaDetailPagerFragment(false, true);
mediaDetails.showImage(position);
setFragment(mediaDetails, listFragment);
}