diff options
| author | 2024-06-14 22:24:00 +0000 | |
|---|---|---|
| committer | 2024-06-25 16:40:05 +0000 | |
| commit | 417094ee3776c95d0f1a4bab8bdf4d91772b1024 (patch) | |
| tree | 65c8e04104e20fb03a3af9a664a711f276c9c722 /libs/androidfw/StringPool.cpp | |
| parent | f0237201c7014ea82074fa088f5f875c13f877cc (diff) | |
[1/N] (Max Menu) Better encapsulation of window decor's views
Moves gesture & click detection for the Maximize Menu out of the
DesktopModeWindowDecorViewModel and into the MaximizeMenuView.
The goal here is to keep the implementation details of the menu view
encapsulated (resource ids, gesture detection, styling - even the fact
that the menu UI happens to be built with xml/android.view and not
Compose), and provide the decoration/viewmodel with abstractions for
actions taken by the user on the view (e.g.
DesktopModeWindowDecoration#setOnLeftSnapClickLitener). The ViewModel
shouldn't care about which specific maximize gesture was triggered
(button in header vs menu vs double-tap), so ideally those others should
be hooked up to these same abstractions later on.
Flag: EXEMPT refactor
Bug: 346441962
Test: atest WMShellUnitTests; maximize menu's hover / click actions work
as usual
Change-Id: I4b5476e157e43f98fc935bc1216e879b354c7e07
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions