Fix NotificaitonPanelView x-axis shift with IME
IME will trigger the fitSystemWindow. And, there is a difference of the parameter insets between IME and no IME. The insets.right and insets.left report 0 without IME but positive number with IME because IME is a type of system window and trigger fitSystemWindow and then take the cutout as part of system window. StatusBarWindowView handle the following condition cutout > 0 && cutout == systemWindowInset and make its children not layout on the safe inset both of cut out and system window. In order to handle that cut out become system window, to take the maximum of cut out and system window to make sure that the safe inset is decided in StatusBarWindowView and its view decent only care about the corner cut out. Because StatusBarWindowView make both of PhoneStatusBarView's parent and NotificationPanelView to have the margin for both of cutout and system window, the counting of the padding and panel translation of the HeadsUpStatusBarView need to do the relative changes. Change-Id: Iafdc6a85e0e7d360b1bfc1e820f6e0779c32753f Fix: 79957419 Fix: 109945733 Fix: 109865908 Test: atest SystemUITests
Loading
Please register or sign in to comment