Alway create window context of TYPE_NAVIGATION_BAR_PANEL for FloatingRotationButton
FloatingRotationButton is added with TYPE_NAVIGATION_BAR_PANEL. Currently in task bar, we pass the window context with TYPE_NAVIGATION_BAR directly which caused this crash. To ensure safety of this call, we will always create a window context of TYPE_NAVIGATION_BAR_PANEL for handling everything in this class. Bug: 309053627 Test: with task bar / nav bar unification, tilt the phone to show rotation button. Make sure it doesn't crash Change-Id: Iefa2460ab8a3dd952101efdff36e181403051f01
Loading
Please register or sign in to comment