Verified Commit e2daac07 authored by aguestuser's avatar aguestuser
Browse files

fixup! Bug 40075: Support scoped storage to enable downloads on API < 29

- abandon attempts to block writing file metadata to system db, as
justified in #40075 (comment 2780108)
- this frees us to eliminate the `ANDROID_DOWNLOADS_INTEGRATION` feature toggle altogether
parent d6444a09
......@@ -21,8 +21,6 @@ android {
arg("room.schemaLocation", "$projectDir/schemas".toString())
}
}
buildConfigField("boolean", "ANDROID_DOWNLOADS_INTEGRATION", "false")
}
buildTypes {
......
......@@ -371,10 +371,7 @@ abstract class AbstractFetchDownloadService : Service() {
style.notificationAccentColor
)
COMPLETED -> {
// TBA blocks this call b/c it exposes file to Android DownloadManager in API < 29
if (BuildConfig.ANDROID_DOWNLOADS_INTEGRATION) {
addToDownloadSystemDatabaseCompat(download.state, scope)
}
addToDownloadSystemDatabaseCompat(download.state, scope)
DownloadNotification.createDownloadCompletedNotification(
context,
download,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment