diff --git a/library/src/main/java/me/zhanghai/compose/preference/TwoTargetIconButtonPreference.kt b/library/src/main/java/me/zhanghai/compose/preference/TwoTargetIconButtonPreference.kt index cac0d02..e4b428a 100644 --- a/library/src/main/java/me/zhanghai/compose/preference/TwoTargetIconButtonPreference.kt +++ b/library/src/main/java/me/zhanghai/compose/preference/TwoTargetIconButtonPreference.kt @@ -21,7 +21,6 @@ import androidx.compose.foundation.layout.padding import androidx.compose.foundation.lazy.LazyListScope import androidx.compose.material.icons.Icons import androidx.compose.material.icons.outlined.Info -import androidx.compose.material3.ExperimentalMaterial3Api import androidx.compose.material3.Icon import androidx.compose.material3.IconButton import androidx.compose.material3.IconButtonDefaults @@ -59,7 +58,6 @@ fun LazyListScope.twoTargetIconButtonPreference( } @Composable -@OptIn(ExperimentalMaterial3Api::class) fun TwoTargetIconButtonPreference( title: @Composable () -> Unit, iconButtonIcon: @Composable () -> Unit, diff --git a/library/src/main/java/me/zhanghai/compose/preference/TwoTargetSwitchPreference.kt b/library/src/main/java/me/zhanghai/compose/preference/TwoTargetSwitchPreference.kt index 1176a71..96c4c7b 100644 --- a/library/src/main/java/me/zhanghai/compose/preference/TwoTargetSwitchPreference.kt +++ b/library/src/main/java/me/zhanghai/compose/preference/TwoTargetSwitchPreference.kt @@ -21,7 +21,6 @@ import androidx.compose.foundation.layout.padding import androidx.compose.foundation.lazy.LazyListScope import androidx.compose.material.icons.Icons import androidx.compose.material.icons.outlined.Info -import androidx.compose.material3.ExperimentalMaterial3Api import androidx.compose.material3.Icon import androidx.compose.material3.Switch import androidx.compose.material3.Text @@ -91,7 +90,6 @@ fun TwoTargetSwitchPreference( } @Composable -@OptIn(ExperimentalMaterial3Api::class) fun TwoTargetSwitchPreference( value: Boolean, onValueChange: (Boolean) -> Unit,