mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 01:53:31 +00:00
Imports optimization and entries rearranged
This commit is contained in:
parent
3c2837e096
commit
65e47f61ef
63 changed files with 987 additions and 1087 deletions
|
|
@ -49,12 +49,12 @@ public class SyncViewModel extends AndroidViewModel {
|
|||
}
|
||||
|
||||
private void countStep() {
|
||||
if(syncAlbum) step++;
|
||||
if(syncArtist) step++;
|
||||
if(syncGenres) step++;
|
||||
if(syncPlaylist) step++;
|
||||
if(syncSong) step++;
|
||||
if(crossSyncSongGenre) step++;
|
||||
if (syncAlbum) step++;
|
||||
if (syncArtist) step++;
|
||||
if (syncGenres) step++;
|
||||
if (syncPlaylist) step++;
|
||||
if (syncSong) step++;
|
||||
if (crossSyncSongGenre) step++;
|
||||
}
|
||||
|
||||
public boolean isSyncAlbum() {
|
||||
|
|
@ -90,7 +90,7 @@ public class SyncViewModel extends AndroidViewModel {
|
|||
}
|
||||
|
||||
public void setProgress(Boolean step) {
|
||||
if(step) progress++;
|
||||
if (step) progress++;
|
||||
}
|
||||
|
||||
public int getProgressBarInfo() {
|
||||
|
|
@ -100,7 +100,7 @@ public class SyncViewModel extends AndroidViewModel {
|
|||
public Map<Integer, Song> getCatalogue() {
|
||||
Map<Integer, Song> map = new HashMap<>();
|
||||
|
||||
for(Song song: songRepository.getCatalogue()){
|
||||
for (Song song : songRepository.getCatalogue()) {
|
||||
map.put(song.hashCode(), song);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue