OSDN Git Service

Create unique files, root ordering, UI bugs.
authorJeff Sharkey <jsharkey@android.com>
Sat, 21 Sep 2013 20:57:33 +0000 (13:57 -0700)
committerJeff Sharkey <jsharkey@android.com>
Sat, 21 Sep 2013 21:07:16 +0000 (14:07 -0700)
commit5545f56f7561810187545a1817b6001dd1f9931b
tree94cfb5e5a543575adaedbf75ec243a9bbbf765d7
parent562ce888af21fc18d1610545ff6373ee2ecbbb13
Create unique files, root ordering, UI bugs.

When a file already exists on disk, try adding a counter suffix to
make a unique name.  Move services near top of roots list, just below
recents.  Remove "Documents" root.

Increase number of recents allowed from single provider, and add more
logging to diagnose wedged loaders.

When launching GET_CONTENT apps, wait for successful result before
relaying result; canceled requests now return to DocumentsUI.

Add CloseGuard to ContentProviderClients, since leaked instances can
keep the remote process alive.

Fix UI bug around trailing breadcrumbs.  Fix bug that dropped Recents
from roots list.  Add up action to Settings activity.  Give our
activity a default icon while waiting for async roots to load.

Bug: 1081868310819461108194611081919610860199
Change-Id: I7b9e26b1cf8353dd3175458b23da2b4bda6c5831
core/java/android/content/ContentProviderClient.java
packages/DocumentsUI/AndroidManifest.xml
packages/DocumentsUI/src/com/android/documentsui/DocumentsActivity.java
packages/DocumentsUI/src/com/android/documentsui/RecentLoader.java
packages/DocumentsUI/src/com/android/documentsui/RecentsCreateFragment.java
packages/DocumentsUI/src/com/android/documentsui/RootsCache.java
packages/DocumentsUI/src/com/android/documentsui/RootsFragment.java
packages/DocumentsUI/src/com/android/documentsui/SettingsActivity.java
packages/DocumentsUI/src/com/android/documentsui/model/DocumentInfo.java
packages/DocumentsUI/src/com/android/documentsui/model/RootInfo.java
packages/ExternalStorageProvider/src/com/android/externalstorage/ExternalStorageProvider.java