Fix the position of the "Recents" root in DocumentsUI.

BUG=24329078

Change-Id: Ia71b80b2075b34076c4f7802bcc45a13e95775e6
This commit is contained in:
Ben Kwa
2015-10-13 12:17:13 -07:00
parent 0c64308240
commit b2865d2339

View File

@@ -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);