mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-28 21:33:53 +01:00
Replace 'removeAll()' with 'clear()'
This commit is contained in:
parent
825cdafe7b
commit
547f2a062c
2 changed files with 3 additions and 3 deletions
|
|
@ -235,7 +235,7 @@ public class MediaDetailFragment extends Fragment {
|
|||
coordinates.setText(prettyCoordinates(media));
|
||||
uploadedDate.setText(prettyUploadedDate(media));
|
||||
|
||||
categoryNames.removeAll(categoryNames);
|
||||
categoryNames.clear();
|
||||
categoryNames.addAll(media.getCategories());
|
||||
|
||||
categoriesLoaded = true;
|
||||
|
|
@ -280,7 +280,7 @@ public class MediaDetailFragment extends Fragment {
|
|||
desc.setText(prettyDescription(media));
|
||||
license.setText(prettyLicense(media));
|
||||
|
||||
categoryNames.removeAll(categoryNames);
|
||||
categoryNames.clear();
|
||||
categoryNames.addAll(media.getCategories());
|
||||
|
||||
categoriesLoaded = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue