BluetoothWiFiResetPreferenceController

Fix: 280864229
Test: manually rotate the screen
Test: unit test
Change-Id: I950ebae1c371ce05dd17710788eda3dc8bdfd2ca
This commit is contained in:
Chaohui Wang
2023-10-16 19:02:48 +08:00
parent f17e4138b8
commit 17f4fd5a08
7 changed files with 250 additions and 310 deletions

View File

@@ -40,6 +40,8 @@ class ComposePreference @JvmOverloads constructor(
override fun onBindViewHolder(holder: PreferenceViewHolder) {
super.onBindViewHolder(holder)
holder.isDividerAllowedAbove = false
holder.isDividerAllowedBelow = false
(holder.itemView as ComposeView).apply {
setViewCompositionStrategy(ViewCompositionStrategy.DisposeOnViewTreeLifecycleDestroyed)