summaryrefslogtreecommitdiff
path: root/tests/Codegen/src/com/android/codegentest/SampleWithNestedDataClasses.java
diff options
context:
space:
mode:
authorMing-Shin Lu <lumark@google.com>2020-10-28 09:55:30 +0800
committerMing-Shin Lu <lumark@google.com>2020-10-28 02:14:45 +0000
commit877a2da3eb7b3d4902a942503e668a38bfaad4b5 (patch)
tree9bd11256ef3023f00ccb68a072c1047d9b39301c /tests/Codegen/src/com/android/codegentest/SampleWithNestedDataClasses.java
parent1ca2a4b1bb5ab2f2be9e0d4e43fc23e6eaee0498 (diff)
Ignore to show splash screen if the decorView is not opaque
When the user chooses dark theme, UiModeManager will clear the cache of task snapshot for this configuration change, which means the system will reset to use splash screen as the starting window when launching the app. However, when the user tries to bring the app to the top, some apps like Twitter MainActivity uses transparent drawable as the splash window background, which looks weird that only see the blanked status bar with transparent background when bring the app task back to top. To fix that, add a check in PhoneWindowManager#addSplashScreen, when the view background is not opaque, will ignore this splash screen creation. Fix: 146080233 Test: manual as below step: 1. Open Twitter, swipe home. 2. Quick settings => turn dark theme on. Close shade. 3. Launch Twitter from home screen 4. Expect no blanked status bar with transparent background during launching. Change-Id: I9d9713af7285c8c63b86faa90b72690471a202ea
Diffstat (limited to 'tests/Codegen/src/com/android/codegentest/SampleWithNestedDataClasses.java')
0 files changed, 0 insertions, 0 deletions