Loading src/com/android/customization/model/themedicon/ThemedIconSectionController.java +6 −1 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ import androidx.lifecycle.Observer; import com.android.customization.model.themedicon.domain.interactor.ThemedIconInteractor; import com.android.customization.model.themedicon.domain.interactor.ThemedIconSnapshotRestorer; import com.android.customization.module.logging.ThemesUserEventLogger; import com.android.customization.picker.themedicon.ThemedIconSectionView; import com.android.wallpaper.R; import com.android.wallpaper.model.CustomizationSectionController; Loading @@ -38,6 +39,7 @@ public class ThemedIconSectionController implements private final ThemedIconInteractor mInteractor; private final ThemedIconSnapshotRestorer mSnapshotRestorer; private final Observer<Boolean> mIsActivatedChangeObserver; private final ThemesUserEventLogger mThemesUserEventLogger; private ThemedIconSectionView mThemedIconSectionView; private boolean mSavedThemedIconEnabled = false; Loading @@ -46,7 +48,8 @@ public class ThemedIconSectionController implements ThemedIconSwitchProvider themedIconOptionsProvider, ThemedIconInteractor interactor, @Nullable Bundle savedInstanceState, ThemedIconSnapshotRestorer snapshotRestorer) { ThemedIconSnapshotRestorer snapshotRestorer, ThemesUserEventLogger themesUserEventLogger) { mThemedIconOptionsProvider = themedIconOptionsProvider; mInteractor = interactor; mSnapshotRestorer = snapshotRestorer; Loading @@ -55,6 +58,7 @@ public class ThemedIconSectionController implements mThemedIconSectionView.getSwitch().setChecked(isActivated); } }; mThemesUserEventLogger = themesUserEventLogger; if (savedInstanceState != null) { mSavedThemedIconEnabled = savedInstanceState.getBoolean( Loading Loading @@ -91,6 +95,7 @@ public class ThemedIconSectionController implements } mThemedIconOptionsProvider.setThemedIconEnabled(viewActivated); mInteractor.setActivated(viewActivated); mThemesUserEventLogger.logThemedIconApplied(viewActivated); mSnapshotRestorer.store(viewActivated); } Loading src/com/android/customization/module/DefaultCustomizationSections.java +7 −2 Original line number Diff line number Diff line Loading @@ -14,6 +14,7 @@ import com.android.customization.model.themedicon.ThemedIconSectionController; import com.android.customization.model.themedicon.ThemedIconSwitchProvider; import com.android.customization.model.themedicon.domain.interactor.ThemedIconInteractor; import com.android.customization.model.themedicon.domain.interactor.ThemedIconSnapshotRestorer; import com.android.customization.module.logging.ThemesUserEventLogger; import com.android.customization.picker.clock.ui.view.ClockViewFactory; import com.android.customization.picker.clock.ui.viewmodel.ClockCarouselViewModel; import com.android.customization.picker.color.domain.interactor.ColorPickerInteractor; Loading Loading @@ -58,6 +59,7 @@ public final class DefaultCustomizationSections implements CustomizationSections private final ThemedIconSnapshotRestorer mThemedIconSnapshotRestorer; private final ThemedIconInteractor mThemedIconInteractor; private final ColorPickerInteractor mColorPickerInteractor; private final ThemesUserEventLogger mThemesUserEventLogger; public DefaultCustomizationSections( ColorPickerViewModel.Factory colorPickerViewModelFactory, Loading @@ -70,7 +72,8 @@ public final class DefaultCustomizationSections implements CustomizationSections DarkModeSnapshotRestorer darkModeSnapshotRestorer, ThemedIconSnapshotRestorer themedIconSnapshotRestorer, ThemedIconInteractor themedIconInteractor, ColorPickerInteractor colorPickerInteractor) { ColorPickerInteractor colorPickerInteractor, ThemesUserEventLogger themesUserEventLogger) { mColorPickerViewModelFactory = colorPickerViewModelFactory; mKeyguardQuickAffordancePickerViewModelFactory = keyguardQuickAffordancePickerViewModelFactory; Loading @@ -82,6 +85,7 @@ public final class DefaultCustomizationSections implements CustomizationSections mThemedIconSnapshotRestorer = themedIconSnapshotRestorer; mThemedIconInteractor = themedIconInteractor; mColorPickerInteractor = colorPickerInteractor; mThemesUserEventLogger = themesUserEventLogger; } @Override Loading Loading @@ -188,7 +192,8 @@ public final class DefaultCustomizationSections implements CustomizationSections ThemedIconSwitchProvider.getInstance(activity), mThemedIconInteractor, savedInstanceState, mThemedIconSnapshotRestorer)); mThemedIconSnapshotRestorer, mThemesUserEventLogger)); // App grid section. sectionControllers.add( Loading src/com/android/customization/module/ThemePickerInjector.kt +1 −0 Original line number Diff line number Diff line Loading @@ -145,6 +145,7 @@ internal constructor( getThemedIconSnapshotRestorer(activity), getThemedIconInteractor(), getColorPickerInteractor(activity, getWallpaperColorsRepository()), getUserEventLogger(activity.applicationContext), ) .also { customizationSections = it } } Loading Loading
src/com/android/customization/model/themedicon/ThemedIconSectionController.java +6 −1 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ import androidx.lifecycle.Observer; import com.android.customization.model.themedicon.domain.interactor.ThemedIconInteractor; import com.android.customization.model.themedicon.domain.interactor.ThemedIconSnapshotRestorer; import com.android.customization.module.logging.ThemesUserEventLogger; import com.android.customization.picker.themedicon.ThemedIconSectionView; import com.android.wallpaper.R; import com.android.wallpaper.model.CustomizationSectionController; Loading @@ -38,6 +39,7 @@ public class ThemedIconSectionController implements private final ThemedIconInteractor mInteractor; private final ThemedIconSnapshotRestorer mSnapshotRestorer; private final Observer<Boolean> mIsActivatedChangeObserver; private final ThemesUserEventLogger mThemesUserEventLogger; private ThemedIconSectionView mThemedIconSectionView; private boolean mSavedThemedIconEnabled = false; Loading @@ -46,7 +48,8 @@ public class ThemedIconSectionController implements ThemedIconSwitchProvider themedIconOptionsProvider, ThemedIconInteractor interactor, @Nullable Bundle savedInstanceState, ThemedIconSnapshotRestorer snapshotRestorer) { ThemedIconSnapshotRestorer snapshotRestorer, ThemesUserEventLogger themesUserEventLogger) { mThemedIconOptionsProvider = themedIconOptionsProvider; mInteractor = interactor; mSnapshotRestorer = snapshotRestorer; Loading @@ -55,6 +58,7 @@ public class ThemedIconSectionController implements mThemedIconSectionView.getSwitch().setChecked(isActivated); } }; mThemesUserEventLogger = themesUserEventLogger; if (savedInstanceState != null) { mSavedThemedIconEnabled = savedInstanceState.getBoolean( Loading Loading @@ -91,6 +95,7 @@ public class ThemedIconSectionController implements } mThemedIconOptionsProvider.setThemedIconEnabled(viewActivated); mInteractor.setActivated(viewActivated); mThemesUserEventLogger.logThemedIconApplied(viewActivated); mSnapshotRestorer.store(viewActivated); } Loading
src/com/android/customization/module/DefaultCustomizationSections.java +7 −2 Original line number Diff line number Diff line Loading @@ -14,6 +14,7 @@ import com.android.customization.model.themedicon.ThemedIconSectionController; import com.android.customization.model.themedicon.ThemedIconSwitchProvider; import com.android.customization.model.themedicon.domain.interactor.ThemedIconInteractor; import com.android.customization.model.themedicon.domain.interactor.ThemedIconSnapshotRestorer; import com.android.customization.module.logging.ThemesUserEventLogger; import com.android.customization.picker.clock.ui.view.ClockViewFactory; import com.android.customization.picker.clock.ui.viewmodel.ClockCarouselViewModel; import com.android.customization.picker.color.domain.interactor.ColorPickerInteractor; Loading Loading @@ -58,6 +59,7 @@ public final class DefaultCustomizationSections implements CustomizationSections private final ThemedIconSnapshotRestorer mThemedIconSnapshotRestorer; private final ThemedIconInteractor mThemedIconInteractor; private final ColorPickerInteractor mColorPickerInteractor; private final ThemesUserEventLogger mThemesUserEventLogger; public DefaultCustomizationSections( ColorPickerViewModel.Factory colorPickerViewModelFactory, Loading @@ -70,7 +72,8 @@ public final class DefaultCustomizationSections implements CustomizationSections DarkModeSnapshotRestorer darkModeSnapshotRestorer, ThemedIconSnapshotRestorer themedIconSnapshotRestorer, ThemedIconInteractor themedIconInteractor, ColorPickerInteractor colorPickerInteractor) { ColorPickerInteractor colorPickerInteractor, ThemesUserEventLogger themesUserEventLogger) { mColorPickerViewModelFactory = colorPickerViewModelFactory; mKeyguardQuickAffordancePickerViewModelFactory = keyguardQuickAffordancePickerViewModelFactory; Loading @@ -82,6 +85,7 @@ public final class DefaultCustomizationSections implements CustomizationSections mThemedIconSnapshotRestorer = themedIconSnapshotRestorer; mThemedIconInteractor = themedIconInteractor; mColorPickerInteractor = colorPickerInteractor; mThemesUserEventLogger = themesUserEventLogger; } @Override Loading Loading @@ -188,7 +192,8 @@ public final class DefaultCustomizationSections implements CustomizationSections ThemedIconSwitchProvider.getInstance(activity), mThemedIconInteractor, savedInstanceState, mThemedIconSnapshotRestorer)); mThemedIconSnapshotRestorer, mThemesUserEventLogger)); // App grid section. sectionControllers.add( Loading
src/com/android/customization/module/ThemePickerInjector.kt +1 −0 Original line number Diff line number Diff line Loading @@ -145,6 +145,7 @@ internal constructor( getThemedIconSnapshotRestorer(activity), getThemedIconInteractor(), getColorPickerInteractor(activity, getWallpaperColorsRepository()), getUserEventLogger(activity.applicationContext), ) .also { customizationSections = it } } Loading