Fixed file permsions for android 10 + made download error notifcation expandable

This commit is contained in:
Jay 2020-01-11 18:27:39 -08:00
parent 1c7d2446b7
commit 4e1952ffaf
2 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,7 @@
android:hardwareAccelerated="true"
android:usesCleartextTraffic="true"
android:icon="@mipmap/ic_launcher"
android:requestLegacyExternalStorage="true"
android:roundIcon="@mipmap/ic_launcher_round"
android:label="@string/app_name"
android:largeHeap="true"

View File

@ -215,6 +215,7 @@ internal class DownloadNotifier(private val context: Context) {
with(notification) {
setContentTitle(chapter ?: context.getString(R.string.download_notifier_downloader_title))
setContentText(error ?: context.getString(R.string.download_notifier_unkown_error))
setStyle(NotificationCompat.BigTextStyle().bigText(error ?: context.getString(R.string.download_notifier_unkown_error)))
setSmallIcon(android.R.drawable.stat_sys_warning)
setCategory(NotificationCompat.CATEGORY_ERROR)
clearActions()