summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatherine Liang <cathliang@google.com>2023-12-06 15:44:58 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2023-12-06 15:44:58 +0000
commit3149f90aa1786426e741de14683b23a885e19084 (patch)
tree3c01b4ddd3eb09279e0bee1abaf9d5a0cf268bf8
parentb93b5f7ce01a40b2f82fe352db3d5a019600810b (diff)
parentf4f9e415e8589cecd7c355e71937682befb2fe68 (diff)
downloadThemePicker-3149f90aa1786426e741de14683b23a885e19084.tar.gz
Merge "Set initial state of themed icon repository" into main
-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;
}