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

Commit 48b4299c 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

Change-Id: I3c4bd9b2b9228684db655133df78e98c6647c15f
parents 6582d086 0c63b5cb
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.