fixed issue #4500 coordinate edit button should be hidden if login skipped (#4662)

This commit is contained in:
Jose Mora 2021-10-07 02:54:39 -07:00 committed by GitHub
parent c42edf0379
commit a687046c02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);