diff options
author | Catherine Liang <cathliang@google.com> | 2023-12-06 15:44:58 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2023-12-06 15:44:58 +0000 |
commit | 3149f90aa1786426e741de14683b23a885e19084 (patch) | |
tree | 3c01b4ddd3eb09279e0bee1abaf9d5a0cf268bf8 | |
parent | b93b5f7ce01a40b2f82fe352db3d5a019600810b (diff) | |
parent | f4f9e415e8589cecd7c355e71937682befb2fe68 (diff) | |
download | ThemePicker-3149f90aa1786426e741de14683b23a885e19084.tar.gz |
Merge "Set initial state of themed icon repository" into main
-rw-r--r-- | src/com/android/customization/model/themedicon/ThemedIconSectionController.java | 5 |
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; } |