Update new UI/UX for open document tree

Update new UI/UX design for open document tree
1. Implement confrim dialog when selecting target.
2. Update pick buttton text for user getting more info.

Bug: 117427611
Test: atest DocumentUITests
Change-Id: Ice2187df17e09754eff86d490c062e7dd41f34bd
diff --git a/src/com/android/documentsui/BaseActivity.java b/src/com/android/documentsui/BaseActivity.java
index 5bda4d8..b0ccb16 100644
--- a/src/com/android/documentsui/BaseActivity.java
+++ b/src/com/android/documentsui/BaseActivity.java
@@ -459,6 +459,8 @@
 
         mState.derivedMode = LocalPreferences.getViewMode(this, mState.stack.getRoot(), MODE_GRID);
 
+        mNavigator.update();
+
         refreshDirectory(anim);
 
         final RootsFragment roots = RootsFragment.get(getSupportFragmentManager());
@@ -466,8 +468,6 @@
             roots.onCurrentRootChanged();
         }
 
-        mNavigator.update();
-
         // Causes talkback to announce the activity's new title
         setTitle(mState.stack.getTitle());
 
@@ -624,6 +624,22 @@
         }
     }
 
+    /**
+     * Get title string equal to the string action bar displayed.
+     * @return current directory title name
+     */
+    public String getCurrentTitle() {
+        if (!mState.stack.isInitialized()) {
+            return null;
+        }
+
+        if (mState.stack.size() > 1) {
+            return getCurrentDirectory().displayName;
+        } else {
+            return getCurrentRoot().title;
+        }
+    }
+
     @Override
     protected void onSaveInstanceState(Bundle state) {
         super.onSaveInstanceState(state);