commit | 4264f983ede77a75c6f368391487c49586af9792 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Tue Aug 15 00:22:05 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Aug 15 00:22:05 2023 +0000 |
tree | b2bfaccbd8cb597a32d4752ca23c17f3597b5e87 | |
parent | 8fc3abd3552c014f006b52070357d9db691c6205 [diff] | |
parent | 48b4225329f470ed89e69c7f41f9d3bc31397ccf [diff] |
Fix kotlin nullable errors in ThemePicker am: 48b4225329 Original change: https://android-review.googlesource.com/c/platform/packages/apps/ThemePicker/+/2702153 Change-Id: I5049541131a95563c2d586214ca8bb5b32164613 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/src/com/android/customization/picker/color/ui/binder/ColorSectionViewBinder.kt b/src/com/android/customization/picker/color/ui/binder/ColorSectionViewBinder.kt index 05b0916..9e232d7 100644 --- a/src/com/android/customization/picker/color/ui/binder/ColorSectionViewBinder.kt +++ b/src/com/android/customization/picker/color/ui/binder/ColorSectionViewBinder.kt
@@ -95,7 +95,7 @@ LayoutInflater.from(view.context) .inflate(R.layout.color_option_no_background, view, false) item.payload?.let { ColorOptionIconBinder.bind(itemView as ViewGroup, item.payload) } - val optionSelectedView = itemView.findViewById<ImageView>(R.id.option_selected) + val optionSelectedView = itemView.requireViewById<ImageView>(R.id.option_selected) lifecycleOwner.lifecycleScope.launch { lifecycleOwner.repeatOnLifecycle(Lifecycle.State.STARTED) {