Apply Glif theme before using dynamic color.

As changes are being made to remove the dependency between dynamic
color and the glifv3 theme, this sets the Glif theme before calling
trySetDymanicColor, as requested.

Bug: 219883252
Test: Build & flash; visual inspection
Change-Id: I04d33a769845e631b9aeff3e343a9c5109b4c92d
This commit is contained in:
Oli Lan
2022-02-18 17:54:06 +00:00
parent 81fd48a532
commit fa4317c88f

View File

@@ -81,6 +81,7 @@ public class AvatarPickerActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setTheme(R.style.SudThemeGlifV3_DayNight);
ThemeHelper.trySetDynamicColor(this);
setContentView(R.layout.avatar_picker);
setUpButtons();