Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4cb59268 authored by Abhijeet Kaur's avatar Abhijeet Kaur Committed by Automerger Merge Worker
Browse files

Manage mode for ExternalStorageProvider is supported R onwards only am: 0c63b5cb am: 5d8d36f5

Change-Id: Idc56d09e6eab1855458df879f1304850bb5a4f94
parents 0d15fc96 5d8d36f5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ package com.android.documentsui.files;
import com.android.documentsui.ActivityConfig;
import com.android.documentsui.base.DocumentStack;
import com.android.documentsui.base.RootInfo;
import com.android.documentsui.util.VersionUtils;

/**
 * Provides support for Files activity specific specializations.
@@ -32,7 +33,7 @@ public final class Config extends ActivityConfig {

        // When in Files activity, allow External Storage provider to view
        // Android/[data|obb|sandbox] directories which are otherwise hidden for privacy reasons.
        if (root != null && root.isExternalStorage()) {
        if (VersionUtils.isAtLeastR() && root != null && root.isExternalStorage()) {
            return true;
        }
        // When in downloads top level directory, we also show active downloads.