commit | 87d6ddef8155c9567985bc6fe19d9cc395306892 | [log] [tgz] |
---|---|---|
author | Bill Lin <lbill@google.com> | Fri Dec 03 11:46:15 2021 +0800 |
committer | Bill Lin <lbill@google.com> | Tue Dec 14 17:28:47 2021 +0800 |
tree | b63ae44e6f8b3d4abbe51301602708c22b9ccf90 | |
parent | ed18bb120e2217a385aa0c7cf813999ded9b9111 [diff] |
Provides OneHandedController for wm shell features Provides OneHandedController singleton instance through dagger. Then Bubble can register OneHandedTransitionCallback to monitor - onStartFinished(Rect bounds) - onStopFinished(Rect bounds) and use the bounds.top to offset dismiss view in one handed mode Test: Manual, enable and check onStateChanged() callbacks Test: atest WMShellUnitTests Bug: 208926540 Change-Id: I2c3f70ce6344a4445049ee6d8be2d4965ea9d11d