|
2 | 2 |
|
3 | 3 | import android.content.Context;
|
4 | 4 | import android.os.Bundle;
|
5 |
| -import android.util.Log; |
| 5 | +import android.os.Handler; |
6 | 6 | import android.view.LayoutInflater;
|
7 | 7 | import android.view.View;
|
8 | 8 | import android.view.ViewGroup;
|
9 | 9 | import android.widget.FrameLayout;
|
10 | 10 | import androidx.annotation.NonNull;
|
11 | 11 | import androidx.annotation.Nullable;
|
12 | 12 | import androidx.fragment.app.Fragment;
|
13 |
| -import androidx.fragment.app.FragmentActivity; |
14 | 13 | import butterknife.BindView;
|
15 | 14 | import butterknife.ButterKnife;
|
16 |
| -import com.google.android.material.tabs.TabLayout; |
17 | 15 | import fr.free.nrw.commons.Media;
|
18 | 16 | import fr.free.nrw.commons.R;
|
19 | 17 | import fr.free.nrw.commons.category.CategoryImagesCallback;
|
20 |
| -import fr.free.nrw.commons.contributions.ContributionsListFragment; |
21 | 18 | import fr.free.nrw.commons.contributions.MainActivity;
|
22 | 19 | import fr.free.nrw.commons.di.CommonsDaggerSupportFragment;
|
23 | 20 | import fr.free.nrw.commons.explore.categories.media.CategoriesMediaFragment;
|
24 | 21 | import fr.free.nrw.commons.media.MediaDetailPagerFragment;
|
25 | 22 | import fr.free.nrw.commons.navtab.NavTab;
|
26 |
| -import fr.free.nrw.commons.settings.SettingsFragment; |
27 | 23 |
|
28 | 24 | public class ExploreListRootFragment extends CommonsDaggerSupportFragment implements
|
29 | 25 | MediaDetailPagerFragment.MediaDetailProvider, CategoryImagesCallback {
|
@@ -80,7 +76,7 @@ public void setFragment(Fragment fragment, Fragment otherFragment) {
|
80 | 76 | .addToBackStack("CONTRIBUTION_LIST_FRAGMENT_TAG")
|
81 | 77 | .commit();
|
82 | 78 | getChildFragmentManager().executePendingTransactions();
|
83 |
| - }else if (!fragment.isAdded() && otherFragment != null ) { |
| 79 | + } else if (!fragment.isAdded() && otherFragment != null ) { |
84 | 80 | getChildFragmentManager()
|
85 | 81 | .beginTransaction()
|
86 | 82 | .hide(otherFragment)
|
@@ -113,9 +109,8 @@ public void onAttach(final Context context) {
|
113 | 109 |
|
114 | 110 | @Override
|
115 | 111 | public void onMediaClicked(int position) {
|
116 |
| - Log.d("deneme8","on media clicked"); |
117 | 112 | container.setVisibility(View.VISIBLE);
|
118 |
| - ((ExploreFragment)getParentFragment()).tabLayout.setVisibility(View.GONE); |
| 113 | + ((ExploreFragment) getParentFragment()).tabLayout.setVisibility(View.GONE); |
119 | 114 | mediaDetails = new MediaDetailPagerFragment(false, true);
|
120 | 115 | mediaDetails.showImage(position);
|
121 | 116 | ((ExploreFragment) getParentFragment()).setScroll(false);
|
|
0 commit comments