1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2025-08-29 09:02:19 +00:00

Fix non-desugared method being used

Search for "Not supported at all minSDK levels" here: https://developer.android.com/studio/write/java8-support-table
This commit is contained in:
Stypox
2024-03-27 17:30:23 +01:00
parent 58ae7fbccb
commit bed3516687

View File

@@ -411,7 +411,7 @@ public class DownloadManagerService extends Service {
mission.threadCount = threads; mission.threadCount = threads;
mission.source = source; mission.source = source;
mission.nearLength = nearLength; mission.nearLength = nearLength;
mission.recoveryInfo = recovery.toArray(MissionRecoveryInfo[]::new); mission.recoveryInfo = recovery.toArray(new MissionRecoveryInfo[0]);
if (ps != null) if (ps != null)
ps.setTemporalDir(DownloadManager.pickAvailableTemporalDir(this)); ps.setTemporalDir(DownloadManager.pickAvailableTemporalDir(this));