Add nullability annotation
This commit is contained in:
parent
029f0fa4da
commit
e0df24182e
|
@ -1,5 +1,7 @@
|
||||||
package org.moire.ultrasonic.service;
|
package org.moire.ultrasonic.service;
|
||||||
|
|
||||||
|
import androidx.annotation.Nullable;
|
||||||
|
|
||||||
import org.moire.ultrasonic.domain.MusicDirectory;
|
import org.moire.ultrasonic.domain.MusicDirectory;
|
||||||
import org.moire.ultrasonic.util.LRUCache;
|
import org.moire.ultrasonic.util.LRUCache;
|
||||||
import org.moire.ultrasonic.util.ShufflePlayBuffer;
|
import org.moire.ultrasonic.util.ShufflePlayBuffer;
|
||||||
|
@ -28,6 +30,8 @@ public class Downloader
|
||||||
{
|
{
|
||||||
public final List<DownloadFile> downloadList = new ArrayList<>();
|
public final List<DownloadFile> downloadList = new ArrayList<>();
|
||||||
public final List<DownloadFile> backgroundDownloadList = new ArrayList<>();
|
public final List<DownloadFile> backgroundDownloadList = new ArrayList<>();
|
||||||
|
|
||||||
|
@Nullable
|
||||||
public DownloadFile currentDownloading;
|
public DownloadFile currentDownloading;
|
||||||
|
|
||||||
private final ShufflePlayBuffer shufflePlayBuffer;
|
private final ShufflePlayBuffer shufflePlayBuffer;
|
||||||
|
|
|
@ -409,9 +409,7 @@ class MediaPlayerController(
|
||||||
reset()
|
reset()
|
||||||
|
|
||||||
// Cancel current download, if necessary.
|
// Cancel current download, if necessary.
|
||||||
if (downloader.currentDownloading != null) {
|
downloader.currentDownloading?.cancelDownload()
|
||||||
downloader.currentDownloading.cancelDownload()
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
jukeboxMediaPlayer.stopJukeboxService()
|
jukeboxMediaPlayer.stopJukeboxService()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue