mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 08:20:32 +05:30
Fix download fragment layout and add uploader
This commit is contained in:
parent
b2fa951c09
commit
d62c50c2c6
@ -384,7 +384,10 @@
|
||||
android:enabled="true"
|
||||
android:exported="false" />
|
||||
|
||||
<receiver android:name=".receivers.NotificationReceiver" />
|
||||
<receiver
|
||||
android:name=".receivers.NotificationReceiver"
|
||||
android:enabled="true"
|
||||
android:exported="false" />
|
||||
</application>
|
||||
|
||||
</manifest>
|
||||
|
@ -99,7 +99,8 @@ class DownloadService : Service() {
|
||||
fileName
|
||||
).absolutePath,
|
||||
description = streams.description ?: "",
|
||||
uploadDate = streams.uploadDate
|
||||
uploadDate = streams.uploadDate,
|
||||
uploader = streams.uploader ?: ""
|
||||
)
|
||||
)
|
||||
}
|
||||
|
@ -163,7 +163,7 @@ class DownloadsFragment : BaseFragment() {
|
||||
if (progressBar.isIndeterminate) return
|
||||
progressBar.incrementProgressBy(status.progress.toInt())
|
||||
val progressInfo = progressBar.progress.formatAsFileSize() +
|
||||
" / " + progressBar.max.formatAsFileSize()
|
||||
" /\n" + progressBar.max.formatAsFileSize()
|
||||
fileSize.text = progressInfo
|
||||
}
|
||||
is DownloadStatus.Error -> {
|
||||
|
@ -86,8 +86,9 @@
|
||||
|
||||
<TextView
|
||||
android:id="@+id/fileSize"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="64dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center" />
|
||||
android:layout_gravity="bottom"
|
||||
android:textSize="13sp"/>
|
||||
|
||||
</LinearLayout>
|
Loading…
x
Reference in New Issue
Block a user