summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/Allocation.java
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2020-06-22 17:37:54 -0600
committerJeff Sharkey <jsharkey@android.com>2020-06-23 07:13:13 -0600
commit83aaf908a6eba49fcf0205aa7ed6a6430b00c35e (patch)
tree8be53b47c54700ec72257ad0bb216eded42ec92a /rs/java/android/renderscript/Allocation.java
parent2020f93a13f740814dcdc465b1f3364608da677e (diff)
Override MIME type to match MediaStore behavior.
Internally, DownloadManager synchronizes its contents with MediaStore, which relies heavily on using file extensions to determine MIME types. To prevent these two databases from getting confused, this change adjusts DownloadManager to force the MIME type of already-completed downloads based on the file extension, matching what MediaStore does. Bug: 159594536 Test: atest PublicApiAccessTest#testAddCompletedWithoutExtension Change-Id: I60c613eafcfe55007dffcac2d7d1fe375b753c19
Diffstat (limited to 'rs/java/android/renderscript/Allocation.java')
0 files changed, 0 insertions, 0 deletions