Skip to content
Commit e0507534 authored by Takamasa Kuramitsu's avatar Takamasa Kuramitsu
Browse files

Fix duplicated roots are shown

Symptom:
Duplicated roots are shown in the drawer of DocumentsUI

Root cause:
ArrayListMultimap that allows duplicate key-value pairs is used for
mRoots. If the specific roots info are re-loaded with getRootOneshot(),
the duplicate roots info are put in mRoots and results in duplicated
roots are shown.

Solution:
Use replaceValues() instead of putAll() when re-loading roots for the
specific authority.

Bug: 73470276
Test: Manual
Test: Run instrumentation tests from com.android.documentsui.tests
Change-Id: Ia3f53fe2e5c36aa13f2cd6e0d5e39cec05aa4b28
parent 960a2186
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment