mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-23 08:30:44 +00:00
Only show 'download has started' toast when a download has started
This commit is contained in:
parent
0039312a64
commit
e775037366
@ -671,9 +671,6 @@ public class DownloadDialog extends DialogFragment
|
|||||||
prefs.edit()
|
prefs.edit()
|
||||||
.putString(getString(R.string.last_used_download_type), selectedMediaType)
|
.putString(getString(R.string.last_used_download_type), selectedMediaType)
|
||||||
.apply();
|
.apply();
|
||||||
|
|
||||||
Toast.makeText(context, getString(R.string.download_has_started),
|
|
||||||
Toast.LENGTH_SHORT).show();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void checkSelectedDownload(final StoredDirectoryHelper mainStorage,
|
private void checkSelectedDownload(final StoredDirectoryHelper mainStorage,
|
||||||
@ -929,6 +926,9 @@ public class DownloadDialog extends DialogFragment
|
|||||||
DownloadManagerService.startMission(context, urls, storage, kind, threads,
|
DownloadManagerService.startMission(context, urls, storage, kind, threads,
|
||||||
currentInfo.getUrl(), psName, psArgs, nearLength, recoveryInfo);
|
currentInfo.getUrl(), psName, psArgs, nearLength, recoveryInfo);
|
||||||
|
|
||||||
|
Toast.makeText(context, getString(R.string.download_has_started),
|
||||||
|
Toast.LENGTH_SHORT).show();
|
||||||
|
|
||||||
dismiss();
|
dismiss();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user