Fix QT build breakage.

Test: builds
Change-Id: Iff6f516d68659a9b81009f82b6e1874089daa592
This commit is contained in:
Sudheer Shanka
2019-04-24 18:30:32 -07:00
parent cbfe50d70c
commit ebcf054b48

View File

@@ -556,7 +556,7 @@ public class DownloadManager {
final Context context = AppGlobals.getInitialApplication();
if (context.getApplicationInfo().targetSdkVersion
>= Build.VERSION_CODES.Q || Environment.isExternalStorageSandboxed()) {
>= Build.VERSION_CODES.Q || !Environment.isExternalStorageLegacy()) {
try (ContentProviderClient client = context.getContentResolver()
.acquireContentProviderClient(Downloads.Impl.AUTHORITY)) {
final Bundle extras = new Bundle();