mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
* only one media detail at a time * requested changes * disabled multitap on screen * requested changes
This commit is contained in:
parent
4dfad52685
commit
ff96f5047e
2 changed files with 7 additions and 8 deletions
|
|
@ -2,7 +2,7 @@ package fr.free.nrw.commons.explore;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.util.Log;
|
import android.os.Handler;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
|
|
@ -10,20 +10,16 @@ import android.widget.FrameLayout;
|
||||||
import androidx.annotation.NonNull;
|
import androidx.annotation.NonNull;
|
||||||
import androidx.annotation.Nullable;
|
import androidx.annotation.Nullable;
|
||||||
import androidx.fragment.app.Fragment;
|
import androidx.fragment.app.Fragment;
|
||||||
import androidx.fragment.app.FragmentActivity;
|
|
||||||
import butterknife.BindView;
|
import butterknife.BindView;
|
||||||
import butterknife.ButterKnife;
|
import butterknife.ButterKnife;
|
||||||
import com.google.android.material.tabs.TabLayout;
|
|
||||||
import fr.free.nrw.commons.Media;
|
import fr.free.nrw.commons.Media;
|
||||||
import fr.free.nrw.commons.R;
|
import fr.free.nrw.commons.R;
|
||||||
import fr.free.nrw.commons.category.CategoryImagesCallback;
|
import fr.free.nrw.commons.category.CategoryImagesCallback;
|
||||||
import fr.free.nrw.commons.contributions.ContributionsListFragment;
|
|
||||||
import fr.free.nrw.commons.contributions.MainActivity;
|
import fr.free.nrw.commons.contributions.MainActivity;
|
||||||
import fr.free.nrw.commons.di.CommonsDaggerSupportFragment;
|
import fr.free.nrw.commons.di.CommonsDaggerSupportFragment;
|
||||||
import fr.free.nrw.commons.explore.categories.media.CategoriesMediaFragment;
|
import fr.free.nrw.commons.explore.categories.media.CategoriesMediaFragment;
|
||||||
import fr.free.nrw.commons.media.MediaDetailPagerFragment;
|
import fr.free.nrw.commons.media.MediaDetailPagerFragment;
|
||||||
import fr.free.nrw.commons.navtab.NavTab;
|
import fr.free.nrw.commons.navtab.NavTab;
|
||||||
import fr.free.nrw.commons.settings.SettingsFragment;
|
|
||||||
|
|
||||||
public class ExploreListRootFragment extends CommonsDaggerSupportFragment implements
|
public class ExploreListRootFragment extends CommonsDaggerSupportFragment implements
|
||||||
MediaDetailPagerFragment.MediaDetailProvider, CategoryImagesCallback {
|
MediaDetailPagerFragment.MediaDetailProvider, CategoryImagesCallback {
|
||||||
|
|
@ -113,7 +109,6 @@ public class ExploreListRootFragment extends CommonsDaggerSupportFragment implem
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onMediaClicked(int position) {
|
public void onMediaClicked(int position) {
|
||||||
Log.d("deneme8","on media clicked");
|
|
||||||
container.setVisibility(View.VISIBLE);
|
container.setVisibility(View.VISIBLE);
|
||||||
((ExploreFragment) getParentFragment()).tabLayout.setVisibility(View.GONE);
|
((ExploreFragment) getParentFragment()).tabLayout.setVisibility(View.GONE);
|
||||||
mediaDetails = new MediaDetailPagerFragment(false, true);
|
mediaDetails = new MediaDetailPagerFragment(false, true);
|
||||||
|
|
|
||||||
|
|
@ -54,6 +54,8 @@
|
||||||
<item name="contributionsListTextSecondary">@color/white</item>
|
<item name="contributionsListTextSecondary">@color/white</item>
|
||||||
<item name="menu_item_tint">@color/white</item>
|
<item name="menu_item_tint">@color/white</item>
|
||||||
<item name="search_icon">@drawable/ic_search_white_24dp</item>
|
<item name="search_icon">@drawable/ic_search_white_24dp</item>
|
||||||
|
<item name="android:windowEnableSplitTouch">false</item>
|
||||||
|
<item name="android:splitMotionEvents">false</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="LightAppTheme" parent="Theme.AppCompat.Light.NoActionBar">
|
<style name="LightAppTheme" parent="Theme.AppCompat.Light.NoActionBar">
|
||||||
|
|
@ -109,6 +111,8 @@
|
||||||
<item name="contributionsListTextSecondary">@color/disabled_button_text_color_dark</item>
|
<item name="contributionsListTextSecondary">@color/disabled_button_text_color_dark</item>
|
||||||
<item name="menu_item_tint">@color/primaryDarkColor</item>
|
<item name="menu_item_tint">@color/primaryDarkColor</item>
|
||||||
<item name="search_icon">@drawable/ic_search_blue_24dp</item>
|
<item name="search_icon">@drawable/ic_search_blue_24dp</item>
|
||||||
|
<item name="android:windowEnableSplitTouch">false</item>
|
||||||
|
<item name="android:splitMotionEvents">false</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="LightMoreBottomSheetStyle" parent="LightAppTheme">
|
<style name="LightMoreBottomSheetStyle" parent="LightAppTheme">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue