Fix landscape to reverse landscape issue
Fingerprint enrollment page needs to display different types of layout for both landscape mode and reverse landscape mode. However onConfigurationChanged doesn't get called when landscape mode rotates to reverse landscape mode directly, that causes it displays a wrong layout in the both landscape and reverse landscape modes. Trying to monitor rotation event and checking if the case that directly turns landscape mode to reverse landscape mode happens, if so, reCreate method will get called to re-lay out the page. There will be a flicker problem happening in re-laying out the page but this solution still works for users to have the correct layout. Fix: 186372522 Test: manual test 1) Navigate to fingerprint enrollment page 2) Rotate the screen from landscape mode to reverse landscape mode 3) Observe the page and see if it has a correct layout Change-Id: Ie94f43a6546f453c10ae9f1c3ba83e1178784950
Loading
Please register or sign in to comment