Fix download fragment layout and add uploader

This commit is contained in:
Krunal Patel 2022-12-21 21:38:07 +05:30
parent b2fa951c09
commit d62c50c2c6
4 changed files with 10 additions and 5 deletions

View File

@ -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>

View File

@ -99,7 +99,8 @@ class DownloadService : Service() {
fileName
).absolutePath,
description = streams.description ?: "",
uploadDate = streams.uploadDate
uploadDate = streams.uploadDate,
uploader = streams.uploader ?: ""
)
)
}

View File

@ -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 -> {

View File

@ -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>