mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +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) {
|
||||
MediaDetailFragment mf = new MediaDetailFragment();
|
||||
|
||||
Bundle state = new Bundle();
|
||||
state.putBoolean("editable", editable);
|
||||
state.putBoolean("isCategoryImage", isCategoryImage);
|
||||
|
|
@ -117,7 +116,6 @@ public class MediaDetailFragment extends CommonsDaggerSupportFragment implements
|
|||
state.putInt("listIndex", 0);
|
||||
state.putInt("listTop", 0);
|
||||
state.putBoolean("isWikipediaButtonDisplayed", isWikipediaButtonDisplayed);
|
||||
|
||||
mf.setArguments(state);
|
||||
|
||||
return mf;
|
||||
|
|
@ -201,6 +199,8 @@ public class MediaDetailFragment extends CommonsDaggerSupportFragment implements
|
|||
RecyclerView categoryRecyclerView;
|
||||
@BindView(R.id.update_categories_button)
|
||||
Button updateCategoriesButton;
|
||||
@BindView(R.id.coordinate_edit)
|
||||
Button coordinateEditButton;
|
||||
@BindView(R.id.dummy_category_edit_container)
|
||||
LinearLayout dummyCategoryEditContainer;
|
||||
@BindView(R.id.pb_categories)
|
||||
|
|
@ -320,6 +320,7 @@ public class MediaDetailFragment extends CommonsDaggerSupportFragment implements
|
|||
|
||||
if(applicationKvStore.getBoolean("login_skipped")){
|
||||
delete.setVisibility(GONE);
|
||||
coordinateEditButton.setVisibility(GONE);
|
||||
}
|
||||
|
||||
handleBackEvent(view);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue