Fix QT build breakage.
Test: builds Change-Id: Iff6f516d68659a9b81009f82b6e1874089daa592
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user