summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Ivan Chiang <chiangi@google.com> 2019-02-15 14:45:06 +0800
committer Ivan Chiang <chiangi@google.com> 2019-02-15 14:45:06 +0800
commit52924b561c3198f1b80e9693880ebcb900960959 (patch)
tree1e024e2f5b484f38811d34bab80b0250ac0ebd6b
parent55ba6da7e260061a6156457e722882c1aae6ae73 (diff)
Fix the issue of chips row disappears after rotate the device
It will not trigger refreshCurrentRootAndDirectory in this case. UpdateChips in Activity's onCreate Change-Id: I843de4067ab7ef3a973a90b111a3955568a4a881 Fix: 124481820 Test: Manual
-rw-r--r--src/com/android/documentsui/BaseActivity.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/documentsui/BaseActivity.java b/src/com/android/documentsui/BaseActivity.java
index 9782092c3..41d1658e2 100644
--- a/src/com/android/documentsui/BaseActivity.java
+++ b/src/com/android/documentsui/BaseActivity.java
@@ -201,6 +201,8 @@ public abstract class BaseActivity
chipGroup, icicle);
// initialize the chip sets by accept mime types
mSearchManager.initChipSets(mState.acceptMimes);
+ // update the chip items by the mime types of the root
+ mSearchManager.updateChips(getCurrentRoot().derivedMimeTypes);
// parse the query content from intent when launch the
// activity at the first time
if (icicle == null) {