app/src/main/java/fr/free/nrw/commons/bookmarks/pictures/BookmarkPicturesController.java
List<Media> loadBookmarkedPictures() {
        List<Bookmark> bookmarks = bookmarkDao.getAllBookmarks();
        currentBookmarks = bookmarks;
        ArrayList<Media> medias = new ArrayList<Media>();
        for (Bookmark bookmark : bookmarks) {
            List<Media> tmpMedias = mediaWikiApi.searchImages(bookmark.getMediaName(), 0);
            for (Media m : tmpMedias) {
                if (m.getCreator().equals(bookmark.getMediaCreator())) {
                    medias.add(m);
                    break;
                }
            }
        }
        return medias;
    }
/**
     * Loads the Media objects from the raw data stored in DB and the API.
     * @return a list of bookmarked Media object
     */
Loads the Media objects from the raw data stored in DB and the API.
@return a list of bookmarked Media object
Loads the Media objects from the raw data stored in DB and the API . @return a list of bookmarked Media object
List<Media> loadBookmarkedPictures() {
        List<Bookmark> bookmarks = bookmarkDao.getAllBookmarks();
        currentBookmarks = bookmarks;
        ArrayList<Media> medias = new ArrayList<Media>();
        for (Bookmark bookmark : bookmarks) {
            List<Media> tmpMedias = mediaWikiApi.searchImages(bookmark.getMediaName(), 0);
            for (Media m : tmpMedias) {
                if (m.getCreator().equals(bookmark.getMediaCreator())) {
                    medias.add(m);
                    break;
                }
            }
        }
        return medias;
    }
List < Media > loadBookmarkedPictures ( ) { List < Bookmark > bookmarks = bookmarkDao . getAllBookmarks ( ) ; currentBookmarks = bookmarks ; ArrayList < Media > medias = new ArrayList < Media > ( ) ; for ( Bookmark bookmark : bookmarks ) { List < Media > tmpMedias = mediaWikiApi . searchImages ( bookmark . getMediaName ( ) , 0 ) ; for ( Media m : tmpMedias ) { if ( m . getCreator ( ) . equals ( bookmark . getMediaCreator ( ) ) ) { medias . add ( m ) ; break ; } } } return medias ; }
Loads the Media objects from the raw data stored in DB and the API.
Loads the Media objects from the raw data stored in DB and the API .