File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
app/src/main/java/fr/free/nrw/commons/media Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -272,6 +272,12 @@ && getParentFragment() instanceof MediaDetailPagerFragment) {
272
272
273
273
if (!sessionManager .isUserLoggedIn ()) {
274
274
binding .categoryEditButton .setVisibility (GONE );
275
+ binding .descriptionEdit .setVisibility (GONE );
276
+ binding .depictionsEditButton .setVisibility (GONE );
277
+ } else {
278
+ binding .categoryEditButton .setVisibility (VISIBLE );
279
+ binding .descriptionEdit .setVisibility (VISIBLE );
280
+ binding .depictionsEditButton .setVisibility (VISIBLE );
275
281
}
276
282
277
283
if (applicationKvStore .getBoolean ("login_skipped" )){
@@ -400,7 +406,6 @@ public void onGlobalLayout() {
400
406
}
401
407
);
402
408
binding .progressBarEdit .setVisibility (GONE );
403
- binding .descriptionEdit .setVisibility (VISIBLE );
404
409
}
405
410
406
411
@ Override
@@ -678,7 +683,9 @@ private void updateCategoryList(final String s) {
678
683
// Stick in a filler element.
679
684
allCategories .add (getString (R .string .detail_panel_cats_none ));
680
685
}
681
- binding .categoryEditButton .setVisibility (VISIBLE );
686
+ if (sessionManager .isUserLoggedIn ()) {
687
+ binding .categoryEditButton .setVisibility (VISIBLE );
688
+ }
682
689
rebuildCatList (allCategories );
683
690
}
684
691
You can’t perform that action at this time.
0 commit comments