diff options
author | 2021-04-26 18:20:58 -0700 | |
---|---|---|
committer | 2021-04-27 01:28:32 +0000 | |
commit | 8646252e87c36d2f9848c80c786452a1e56dace7 (patch) | |
tree | ba59ae5d26523bc6ef69233010f448c0681db8b8 /res/layout | |
parent | cd06f188f0c1dade82b3220b35c1dfc7f85fdcb8 (diff) |
Fix SearchFragment crash in tests.
Cause of crash: FragmentManager is already executing transactions.
This is because we unnecessarily resets the current query string,
indirectly invoking onQueryTextChange, causing a fragment transaction;
later when the searchView focus changes. it causes a second fragment
transaction. Fixes by removing the query reset step (it gets reset at
next expansion of search view anyway).
Bug: 182958870
Test: atest DocumentsUIGoogleTests
Change-Id: I21de9ec3a2e8c72be1d0ce7c7ccfd98a4567e2a5
Diffstat (limited to 'res/layout')
0 files changed, 0 insertions, 0 deletions