diff options
| author | 2016-05-06 10:49:54 -0700 | |
|---|---|---|
| committer | 2016-05-06 10:49:54 -0700 | |
| commit | 47bd7333e16f5743f06c387d12d8816fbbe33b76 (patch) | |
| tree | 4b7e64369c2d81509bbd509810ad564e9ab4952e /libs/hwui/ProgramCache.cpp | |
| parent | 9e5d4e078a93f187f6ec612734dded61372636fb (diff) | |
Fix: Cannot control ime_switcher and menu after resetting.
mButtonDispatchers contains ButtonDispatcher for ime_switcher and menu;
however, in #inflateButton, we tried to find ButtonDispatcher for
menu_ime, which is a FrameLayout containing ime_switcher and menu.
Therefore, after #clearViews and #inflateLayout, ime_switcher and menu
KeyButtonView are not in the corresponding ButtonDispatchers.
It means NavigationBarView#getImeSwitchButton and
NavigationBarView#getMenuButton returns empty ButtonDispatcher.
As a result, we can't control ime switch button and menu button via
NavigationBarView after then. e.g. We can't control ime switch button
visibility.
This CL fixes that issue by calling #addToDispatchers recursively for
ViewGroup children if corresponding ButtonDispatcher is not found. This
behavior is aligned with #addAll.
Bug: 28580774
Change-Id: Ibe724753390b7bbb395a6d53d00bc6d06d00aa9a
Diffstat (limited to 'libs/hwui/ProgramCache.cpp')
0 files changed, 0 insertions, 0 deletions