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 2d0356fcb2
commit 7ee19f40f0

View file

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