mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-29 05:43:55 +01:00
Lint issues (#2114)
* Dangling Javadoc comments * Replace for loop with foreach * Explicit type can be replaced with <> * Anonymous type can be replaced with lambda * Lambda can be replaced with method reference * Remove redundant methods * Use capital L for long literals * Remove unnecessary StringBuilder
This commit is contained in:
parent
8e967a3698
commit
f04503bb3e
26 changed files with 214 additions and 295 deletions
|
|
@ -76,14 +76,7 @@ public class BookmarkLocationsFragment extends DaggerFragment {
|
|||
super.onViewCreated(view, savedInstanceState);
|
||||
progressBar.setVisibility(View.VISIBLE);
|
||||
recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
|
||||
recyclerView.setAdapter(
|
||||
adapterFactory.create(
|
||||
new ArrayList<Place>(),
|
||||
() -> {
|
||||
initList();
|
||||
}
|
||||
)
|
||||
);
|
||||
recyclerView.setAdapter(adapterFactory.create(new ArrayList<>(), this::initList));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ public class BookmarkPicturesController {
|
|||
List<Media> loadBookmarkedPictures() {
|
||||
List<Bookmark> bookmarks = bookmarkDao.getAllBookmarks();
|
||||
currentBookmarks = bookmarks;
|
||||
ArrayList<Media> medias = new ArrayList<Media>();
|
||||
ArrayList<Media> medias = new ArrayList<>();
|
||||
for (Bookmark bookmark : bookmarks) {
|
||||
List<Media> tmpMedias = mediaWikiApi.searchImages(bookmark.getMediaName(), 0);
|
||||
for (Media m : tmpMedias) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue