mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +01:00
This commit is contained in:
parent
c42edf0379
commit
a687046c02
1 changed files with 3 additions and 2 deletions
|
|
@ -109,7 +109,6 @@ public class MediaDetailFragment extends CommonsDaggerSupportFragment implements
|
||||||
|
|
||||||
public static MediaDetailFragment forMedia(int index, boolean editable, boolean isCategoryImage, boolean isWikipediaButtonDisplayed) {
|
public static MediaDetailFragment forMedia(int index, boolean editable, boolean isCategoryImage, boolean isWikipediaButtonDisplayed) {
|
||||||
MediaDetailFragment mf = new MediaDetailFragment();
|
MediaDetailFragment mf = new MediaDetailFragment();
|
||||||
|
|
||||||
Bundle state = new Bundle();
|
Bundle state = new Bundle();
|
||||||
state.putBoolean("editable", editable);
|
state.putBoolean("editable", editable);
|
||||||
state.putBoolean("isCategoryImage", isCategoryImage);
|
state.putBoolean("isCategoryImage", isCategoryImage);
|
||||||
|
|
@ -117,7 +116,6 @@ public class MediaDetailFragment extends CommonsDaggerSupportFragment implements
|
||||||
state.putInt("listIndex", 0);
|
state.putInt("listIndex", 0);
|
||||||
state.putInt("listTop", 0);
|
state.putInt("listTop", 0);
|
||||||
state.putBoolean("isWikipediaButtonDisplayed", isWikipediaButtonDisplayed);
|
state.putBoolean("isWikipediaButtonDisplayed", isWikipediaButtonDisplayed);
|
||||||
|
|
||||||
mf.setArguments(state);
|
mf.setArguments(state);
|
||||||
|
|
||||||
return mf;
|
return mf;
|
||||||
|
|
@ -201,6 +199,8 @@ public class MediaDetailFragment extends CommonsDaggerSupportFragment implements
|
||||||
RecyclerView categoryRecyclerView;
|
RecyclerView categoryRecyclerView;
|
||||||
@BindView(R.id.update_categories_button)
|
@BindView(R.id.update_categories_button)
|
||||||
Button updateCategoriesButton;
|
Button updateCategoriesButton;
|
||||||
|
@BindView(R.id.coordinate_edit)
|
||||||
|
Button coordinateEditButton;
|
||||||
@BindView(R.id.dummy_category_edit_container)
|
@BindView(R.id.dummy_category_edit_container)
|
||||||
LinearLayout dummyCategoryEditContainer;
|
LinearLayout dummyCategoryEditContainer;
|
||||||
@BindView(R.id.pb_categories)
|
@BindView(R.id.pb_categories)
|
||||||
|
|
@ -320,6 +320,7 @@ public class MediaDetailFragment extends CommonsDaggerSupportFragment implements
|
||||||
|
|
||||||
if(applicationKvStore.getBoolean("login_skipped")){
|
if(applicationKvStore.getBoolean("login_skipped")){
|
||||||
delete.setVisibility(GONE);
|
delete.setVisibility(GONE);
|
||||||
|
coordinateEditButton.setVisibility(GONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
handleBackEvent(view);
|
handleBackEvent(view);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue