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

Commit 550784f8 authored by Steve McKay's avatar Steve McKay Committed by Android (Google) Code Review
Browse files

Merge "Mark Recents as supporting CREATE." into nyc-dev

parents d23947e1 327c3138
Loading
Loading
Loading
Loading
+5 −2
Original line number Original line Diff line number Diff line
@@ -90,7 +90,8 @@ public class RootsCache {
                // Special root for recents
                // Special root for recents
                derivedIcon = R.drawable.ic_root_recent;
                derivedIcon = R.drawable.ic_root_recent;
                derivedType = RootInfo.TYPE_RECENTS;
                derivedType = RootInfo.TYPE_RECENTS;
                flags = Root.FLAG_LOCAL_ONLY | Root.FLAG_SUPPORTS_IS_CHILD;
                flags = Root.FLAG_LOCAL_ONLY | Root.FLAG_SUPPORTS_IS_CHILD
                        | Root.FLAG_SUPPORTS_CREATE;
                title = mContext.getString(R.string.root_recent);
                title = mContext.getString(R.string.root_recent);
                availableBytes = -1;
                availableBytes = -1;
            }};
            }};
@@ -122,7 +123,9 @@ public class RootsCache {
            checkState(mRecentsRoot.rootId == null);
            checkState(mRecentsRoot.rootId == null);
            checkState(mRecentsRoot.derivedIcon == R.drawable.ic_root_recent);
            checkState(mRecentsRoot.derivedIcon == R.drawable.ic_root_recent);
            checkState(mRecentsRoot.derivedType == RootInfo.TYPE_RECENTS);
            checkState(mRecentsRoot.derivedType == RootInfo.TYPE_RECENTS);
            checkState(mRecentsRoot.flags == (Root.FLAG_LOCAL_ONLY | Root.FLAG_SUPPORTS_IS_CHILD));
            checkState(mRecentsRoot.flags == (Root.FLAG_LOCAL_ONLY
                    | Root.FLAG_SUPPORTS_IS_CHILD
                    | Root.FLAG_SUPPORTS_CREATE));
            checkState(mRecentsRoot.title == mContext.getString(R.string.root_recent));
            checkState(mRecentsRoot.title == mContext.getString(R.string.root_recent));
            checkState(mRecentsRoot.availableBytes == -1);
            checkState(mRecentsRoot.availableBytes == -1);
        }
        }