diff options
| author | Jeff Sharkey <jsharkey@android.com> | 2013-08-16 00:08:05 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-08-16 00:08:05 +0000 |
| commit | 3aa2d9f5530524287dcff84369d8298f12bc3f0d (patch) | |
| tree | ae4e297cc1b6c0f6c3a3f5e3e9157203ccf286a4 /packages/DocumentsUI/src/com/android/documentsui/model/Root.java | |
| parent | 6bab49deaa96ddb0c427c1e2ab127608e5a8d93b (diff) | |
| parent | a5599ef636e37cb0b6474349936999be1afe6987 (diff) | |
| download | frameworks_base-3aa2d9f5530524287dcff84369d8298f12bc3f0d.zip frameworks_base-3aa2d9f5530524287dcff84369d8298f12bc3f0d.tar.gz frameworks_base-3aa2d9f5530524287dcff84369d8298f12bc3f0d.tar.bz2 | |
Merge "Documents management mode; API adjustment." into klp-dev
Diffstat (limited to 'packages/DocumentsUI/src/com/android/documentsui/model/Root.java')
| -rw-r--r-- | packages/DocumentsUI/src/com/android/documentsui/model/Root.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/DocumentsUI/src/com/android/documentsui/model/Root.java b/packages/DocumentsUI/src/com/android/documentsui/model/Root.java index 0880731..23d16df 100644 --- a/packages/DocumentsUI/src/com/android/documentsui/model/Root.java +++ b/packages/DocumentsUI/src/com/android/documentsui/model/Root.java @@ -24,7 +24,9 @@ import android.database.Cursor; import android.graphics.drawable.Drawable; import android.net.Uri; import android.provider.DocumentsContract; +import android.provider.DocumentsContract.Documents; import android.provider.DocumentsContract.RootColumns; +import android.provider.DocumentsContract.Roots; import com.android.documentsui.R; @@ -47,7 +49,7 @@ public class Root { final PackageManager pm = context.getPackageManager(); final Root root = new Root(); root.rootId = null; - root.rootType = DocumentsContract.ROOT_TYPE_SHORTCUT; + root.rootType = Roots.ROOT_TYPE_SHORTCUT; root.uri = null; root.icon = context.getResources().getDrawable(R.drawable.ic_dir); root.title = context.getString(R.string.root_recent); @@ -65,7 +67,7 @@ public class Root { root.rootId = cursor.getString(cursor.getColumnIndex(RootColumns.ROOT_ID)); root.rootType = cursor.getInt(cursor.getColumnIndex(RootColumns.ROOT_TYPE)); root.uri = DocumentsContract.buildDocumentUri( - info.providerInfo.authority, root.rootId, DocumentsContract.ROOT_DOC_ID); + info.providerInfo.authority, root.rootId, Documents.DOC_ID_ROOT); root.icon = info.providerInfo.loadIcon(pm); root.title = info.providerInfo.loadLabel(pm).toString(); root.availableBytes = cursor.getLong(cursor.getColumnIndex(RootColumns.AVAILABLE_BYTES)); |
