Skip to content

Commit a687046

Browse files
authored
fixed issue commons-app#4500 coordinate edit button should be hidden if login skipped (commons-app#4662)
1 parent c42edf0 commit a687046

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/src/main/java/fr/free/nrw/commons/media/MediaDetailFragment.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,13 @@ public class MediaDetailFragment extends CommonsDaggerSupportFragment implements
109109

110110
public static MediaDetailFragment forMedia(int index, boolean editable, boolean isCategoryImage, boolean isWikipediaButtonDisplayed) {
111111
MediaDetailFragment mf = new MediaDetailFragment();
112-
113112
Bundle state = new Bundle();
114113
state.putBoolean("editable", editable);
115114
state.putBoolean("isCategoryImage", isCategoryImage);
116115
state.putInt("index", index);
117116
state.putInt("listIndex", 0);
118117
state.putInt("listTop", 0);
119118
state.putBoolean("isWikipediaButtonDisplayed", isWikipediaButtonDisplayed);
120-
121119
mf.setArguments(state);
122120

123121
return mf;
@@ -201,6 +199,8 @@ public static MediaDetailFragment forMedia(int index, boolean editable, boolean
201199
RecyclerView categoryRecyclerView;
202200
@BindView(R.id.update_categories_button)
203201
Button updateCategoriesButton;
202+
@BindView(R.id.coordinate_edit)
203+
Button coordinateEditButton;
204204
@BindView(R.id.dummy_category_edit_container)
205205
LinearLayout dummyCategoryEditContainer;
206206
@BindView(R.id.pb_categories)
@@ -320,6 +320,7 @@ && getParentFragment() instanceof MediaDetailPagerFragment) {
320320

321321
if(applicationKvStore.getBoolean("login_skipped")){
322322
delete.setVisibility(GONE);
323+
coordinateEditButton.setVisibility(GONE);
323324
}
324325

325326
handleBackEvent(view);

0 commit comments

Comments
 (0)