mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 14:20:30 +05:30
Merge pull request #1640 from shantanu1k/master
Simplified the download notification
This commit is contained in:
commit
304e1cfdd0
@ -2,7 +2,6 @@
|
|||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:installLocation="auto">
|
android:installLocation="auto">
|
||||||
|
|
||||||
<uses-permission android:name="android.permission.INTERNET" />
|
<uses-permission android:name="android.permission.INTERNET" />
|
||||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||||
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
|
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
|
||||||
|
@ -74,7 +74,7 @@ class DownloadService : Service() {
|
|||||||
)
|
)
|
||||||
if (downloadType in listOf(DownloadType.VIDEO, DownloadType.AUDIO_VIDEO)) {
|
if (downloadType in listOf(DownloadType.VIDEO, DownloadType.AUDIO_VIDEO)) {
|
||||||
videoDownloadId = downloadManagerRequest(
|
videoDownloadId = downloadManagerRequest(
|
||||||
getString(R.string.video),
|
"[${getString(R.string.video)}] $videoName",
|
||||||
getString(R.string.downloading),
|
getString(R.string.downloading),
|
||||||
videoUrl,
|
videoUrl,
|
||||||
Uri.fromFile(
|
Uri.fromFile(
|
||||||
@ -84,7 +84,7 @@ class DownloadService : Service() {
|
|||||||
}
|
}
|
||||||
if (downloadType in listOf(DownloadType.AUDIO, DownloadType.AUDIO_VIDEO)) {
|
if (downloadType in listOf(DownloadType.AUDIO, DownloadType.AUDIO_VIDEO)) {
|
||||||
audioDownloadId = downloadManagerRequest(
|
audioDownloadId = downloadManagerRequest(
|
||||||
getString(R.string.audio),
|
"[${getString(R.string.audio)}] $videoName",
|
||||||
getString(R.string.downloading),
|
getString(R.string.downloading),
|
||||||
audioUrl,
|
audioUrl,
|
||||||
Uri.fromFile(
|
Uri.fromFile(
|
||||||
|
Loading…
Reference in New Issue
Block a user