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:
Omkar Chandorkar 2023-10-30 08:41:14 +05:30
parent d6ed0637f4
commit 207e9bf5ca
1 changed files with 15 additions and 19 deletions

View File

@ -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,17 +203,21 @@ public final class AospaCustomizationSections implements CustomizationSections {
sectionNavigationController,
lifecycleOwner,
/* isRevampedUiEnabled= */ true));
// Icon pack selection section.
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));
break;
}
// Icon pack selection section.
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));
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));