From b2865d233971014759b9b35260b28045adb47348 Mon Sep 17 00:00:00 2001 From: Ben Kwa Date: Tue, 13 Oct 2015 12:17:13 -0700 Subject: [PATCH] Fix the position of the "Recents" root in DocumentsUI. BUG=24329078 Change-Id: Ia71b80b2075b34076c4f7802bcc45a13e95775e6 --- packages/DocumentsUI/src/com/android/documentsui/RootsCache.java | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/DocumentsUI/src/com/android/documentsui/RootsCache.java b/packages/DocumentsUI/src/com/android/documentsui/RootsCache.java index de35cef6ddb66..4fc378875b749 100644 --- a/packages/DocumentsUI/src/com/android/documentsui/RootsCache.java +++ b/packages/DocumentsUI/src/com/android/documentsui/RootsCache.java @@ -102,6 +102,7 @@ public class RootsCache { mRecentsRoot.authority = null; mRecentsRoot.rootId = null; mRecentsRoot.derivedIcon = R.drawable.ic_root_recent; + mRecentsRoot.derivedType = RootInfo.TYPE_RECENTS; mRecentsRoot.flags = Root.FLAG_LOCAL_ONLY | Root.FLAG_SUPPORTS_CREATE | Root.FLAG_SUPPORTS_IS_CHILD; mRecentsRoot.title = mContext.getString(R.string.root_recent);