Fix the background color of CollapsingToolbarLayout
The wrong background color of CollapsingToolbarLayout appears in some pages like "All apps" page or "Password and accounts" page. This symptom can be observed in these pages when the work profile is enabled and the line count of title is 1. This issue is caused by updating the title of the page many times. In these pages that have the tab view, the structure of the page differs from a general setting page. The title of the page is coming from BaseActivity, ProfileSelectFragment, PersonalFragment and WorkFragment, in which the page that has the issue has an empty string from ProfileSelectFragment. That is causing the CollapsingTollbarLayout has the different line count during the process of setting the title. Since the pages that have the tab view are different from the general pages in Settings, the title should be set separately for those pages. Adding a method to get the title resource ID so the page extending from ProfileSelectFragment can set its title. Bug: 192914660 Test: visual test and manual test 1) Enable work profile 2) Navigate to All apps page 3) The page should have the correct background color in the CollapsingToolbarLayout Change-Id: I52ef9729f3cad56161ea3d87ba25429dfcdb26ef
Loading
Please register or sign in to comment