summaryrefslogtreecommitdiff
path: root/src/com/android/customization/model/themedicon/ThemedIconSectionController.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/customization/model/themedicon/ThemedIconSectionController.java')
-rw-r--r--src/com/android/customization/model/themedicon/ThemedIconSectionController.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/com/android/customization/model/themedicon/ThemedIconSectionController.java b/src/com/android/customization/model/themedicon/ThemedIconSectionController.java
index be7da042..1cc6d0a5 100644
--- a/src/com/android/customization/model/themedicon/ThemedIconSectionController.java
+++ b/src/com/android/customization/model/themedicon/ThemedIconSectionController.java
@@ -80,7 +80,10 @@ public class ThemedIconSectionController implements
mThemedIconSectionView.setViewListener(this::onViewActivated);
mThemedIconSectionView.getSwitch().setChecked(mSavedThemedIconEnabled);
mThemedIconOptionsProvider.fetchThemedIconEnabled(
- enabled -> mThemedIconSectionView.getSwitch().setChecked(enabled));
+ enabled -> {
+ mInteractor.setActivated(enabled);
+ mThemedIconSectionView.getSwitch().setChecked(enabled);
+ });
mInteractor.isActivatedAsLiveData().observeForever(mIsActivatedChangeObserver);
return mThemedIconSectionView;
}