@ WorkerThread public ArrayList < AlbumFolder > getAllVideo ( ) { Map < String , AlbumFolder > albumFolderMap = new HashMap <> ( ) ; AlbumFolder allFileFolder = new AlbumFolder ( ) ; allFileFolder . setChecked ( true ) ; allFileFolder . setName ( mContext . getString ( R . string . album_all_videos ) ) ; scanVideoFile ( albumFolderMap , allFileFolder ) ; ArrayList < AlbumFolder > albumFolders = new ArrayList <> ( ) ; Collections . sort ( allFileFolder . getAlbumFiles ( ) ) ; albumFolders . add ( allFileFolder ) ; for ( Map . Entry < String , AlbumFolder > folderEntry : albumFolderMap . entrySet ( ) ) { AlbumFolder albumFolder = folderEntry . getValue ( ) ; Collections . sort ( albumFolder . getAlbumFiles ( ) ) ; albumFolders . add ( albumFolder ) ; } return albumFolders ; }
Scan the list of videos in the library .