mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-02 07:23:36 +00:00
Fix a bunch of lint warning
This commit is contained in:
@@ -19,7 +19,6 @@ public class DownloadRepository {
|
||||
|
||||
private DownloadDao downloadDao;
|
||||
private MutableLiveData<List<Download>> listLiveDownload = new MutableLiveData<>(new ArrayList<>());
|
||||
private LiveData<List<Download>> listLiveDownloadSample;
|
||||
|
||||
public DownloadRepository(Application application) {
|
||||
AppDatabase database = AppDatabase.getInstance(application);
|
||||
@@ -62,8 +61,7 @@ public class DownloadRepository {
|
||||
}
|
||||
|
||||
public LiveData<List<Download>> getLiveDownloadSample(int size) {
|
||||
listLiveDownloadSample = downloadDao.getSample(size, PreferenceUtil.getInstance(App.getInstance()).getServerId());
|
||||
return listLiveDownloadSample;
|
||||
return downloadDao.getSample(size, PreferenceUtil.getInstance(App.getInstance()).getServerId());
|
||||
}
|
||||
|
||||
public void insert(Download download) {
|
||||
|
||||
@@ -22,7 +22,6 @@ public class QueueRepository {
|
||||
private static final String TAG = "QueueRepository";
|
||||
|
||||
private QueueDao queueDao;
|
||||
private LiveData<List<Queue>> listLiveQueue;
|
||||
|
||||
public QueueRepository(Application application) {
|
||||
AppDatabase database = AppDatabase.getInstance(application);
|
||||
@@ -30,8 +29,7 @@ public class QueueRepository {
|
||||
}
|
||||
|
||||
public LiveData<List<Queue>> getLiveQueue() {
|
||||
listLiveQueue = queueDao.getAll();
|
||||
return listLiveQueue;
|
||||
return queueDao.getAll();
|
||||
}
|
||||
|
||||
public List<Song> getSongs() {
|
||||
|
||||
@@ -17,7 +17,6 @@ public class ServerRepository {
|
||||
private static final String TAG = "QueueRepository";
|
||||
|
||||
private ServerDao serverDao;
|
||||
private LiveData<List<Server>> listLiveServer;
|
||||
|
||||
public ServerRepository(Application application) {
|
||||
AppDatabase database = AppDatabase.getInstance(application);
|
||||
@@ -25,8 +24,7 @@ public class ServerRepository {
|
||||
}
|
||||
|
||||
public LiveData<List<Server>> getLiveServer() {
|
||||
listLiveServer = serverDao.getAll();
|
||||
return listLiveServer;
|
||||
return serverDao.getAll();
|
||||
}
|
||||
|
||||
public void insert(Server server) {
|
||||
|
||||
Reference in New Issue
Block a user