Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 989e10c9 authored by Wenbo Jie's avatar Wenbo Jie
Browse files

[DocsUI] Fix refresh logic when open in new window

Previously we assign the stack from the intent extra to the existing
stack in the state before calling onRootPicked(), but inside the
onRootPicked() method it will compare the root passed in with the
existing stack first before refreshing the file list, it's always
true so the refreshing is always skipped. This CL removes the
stack.reset() before calling onRootPicked() and relies on the
stack.changeRoot() inside to cover the same functionality.

Bug: 417577791
Test: atest DocumentsUIGoogleTests:com.android.documentsui.SidebarUiTest#testOpenInNewWindow_preservesFiles
Flag: EXEMPT bug fix
Change-Id: I3f562d82b2ceb844bb839daeddba84d403e6d1a2
parent 818c548c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment