OSDN Git Service

Terminate DocumentsUI opened for the specific root.
authorDaichi Hirono <hirono@google.com>
Tue, 19 Apr 2016 08:56:13 +0000 (17:56 +0900)
committerDaichi Hirono <hirono@google.com>
Tue, 26 Apr 2016 07:52:44 +0000 (16:52 +0900)
commit99900a0e586dc474df52a2f9dda1379170d7e669
tree979b0c5adc6f046d046ee1b89fc49333b89c5d8f
parente2be9f4a670198edbe9b1c42422d6d429b8a21f6
Terminate DocumentsUI opened for the specific root.

If USB is opened in DocumentsUI from storage settings and format it from
context menu, a user expects it goes back to storage settings after
formatting the storage.  However, previous we show Downloads as a result
of redirect from the previous USB storage.

The CL changes the logic for callback so that it finishes the activity
if DocumentsUI is opened for the specific root and the root was removed
while a user stays at the root.

Fixes: 28246076
Change-Id: I5548152fc27fd13bd9b75b3083bcfbdd9f93509e
packages/DocumentsUI/src/com/android/documentsui/BaseActivity.java
packages/DocumentsUI/src/com/android/documentsui/RootsCache.java