ParanoidThemePicker: Keep icon pack and font settings to home screen only
Change-Id: If96982d79cbb7e855dcc4ca0d9d21c9c3c9c6780 Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
This commit is contained in:
parent
d6ed0637f4
commit
207e9bf5ca
|
@ -92,6 +92,7 @@ public final class AospaCustomizationSections implements CustomizationSections {
|
|||
mThemedIconSnapshotRestorer = themedIconSnapshotRestorer;
|
||||
mThemedIconInteractor = themedIconInteractor;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<CustomizationSectionController<?>> getRevampedUISectionControllersForScreen(
|
||||
Screen screen,
|
||||
|
@ -109,6 +110,7 @@ public final class AospaCustomizationSections implements CustomizationSections {
|
|||
WallpaperManager wallpaperManager,
|
||||
boolean isTwoPaneAndSmallWidth) {
|
||||
List<CustomizationSectionController<?>> sectionControllers = new ArrayList<>();
|
||||
|
||||
// Wallpaper section.
|
||||
sectionControllers.add(
|
||||
mFlags.isCustomClocksEnabled(activity)
|
||||
|
@ -184,6 +186,7 @@ public final class AospaCustomizationSections implements CustomizationSections {
|
|||
// More settings section.
|
||||
sectionControllers.add(new MoreSettingsSectionController());
|
||||
break;
|
||||
|
||||
case HOME_SCREEN:
|
||||
// Themed app icon section.
|
||||
sectionControllers.add(
|
||||
|
@ -200,16 +203,20 @@ public final class AospaCustomizationSections implements CustomizationSections {
|
|||
sectionNavigationController,
|
||||
lifecycleOwner,
|
||||
/* isRevampedUiEnabled= */ true));
|
||||
break;
|
||||
}
|
||||
|
||||
// Icon pack selection section.
|
||||
sectionControllers.add(new IconPackSectionController(
|
||||
IconPackManager.getInstance(activity, new OverlayManagerCompat(activity)), sectionNavigationController));
|
||||
sectionControllers.add(
|
||||
new IconPackSectionController(
|
||||
IconPackManager.getInstance(activity, new OverlayManagerCompat(activity)),
|
||||
sectionNavigationController));
|
||||
|
||||
// Font selection section.
|
||||
sectionControllers.add(new FontSectionController(
|
||||
FontManager.getInstance(activity, new OverlayManagerCompat(activity)), sectionNavigationController));
|
||||
sectionControllers.add(
|
||||
new FontSectionController(
|
||||
FontManager.getInstance(activity, new OverlayManagerCompat(activity)),
|
||||
sectionNavigationController));
|
||||
break;
|
||||
}
|
||||
|
||||
return sectionControllers;
|
||||
}
|
||||
|
@ -264,17 +271,6 @@ public final class AospaCustomizationSections implements CustomizationSections {
|
|||
lifecycleOwner,
|
||||
/* isRevampedUiEnabled= */ false));
|
||||
|
||||
// Lock screen quick affordances section.
|
||||
sectionControllers.add(
|
||||
new KeyguardQuickAffordanceSectionController(
|
||||
sectionNavigationController,
|
||||
mKeyguardQuickAffordancePickerInteractor,
|
||||
new ViewModelProvider(
|
||||
activity,
|
||||
mKeyguardQuickAffordancePickerViewModelFactory)
|
||||
.get(KeyguardQuickAffordancePickerViewModel.class),
|
||||
lifecycleOwner));
|
||||
|
||||
// Icon pack selection section.
|
||||
sectionControllers.add(new IconPackSectionController(
|
||||
IconPackManager.getInstance(activity, new OverlayManagerCompat(activity)), sectionNavigationController));
|
||||
|
|
Loading…
Reference in New Issue