From 67787971e3e294008a7ec9878ba93145a98caa73 Mon Sep 17 00:00:00 2001 From: iammm0 Date: Thu, 12 Feb 2026 13:33:29 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=E8=AF=AD?= =?UTF-8?q?=E9=9F=B3=E5=BD=95=E5=88=B6=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 优化 VoiceRecordButton.kt Co-authored-by: Cursor --- .../life_echo/ui/components/chat/VoiceRecordButton.kt | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/app-android/app/src/main/java/com/huaga/life_echo/ui/components/chat/VoiceRecordButton.kt b/app-android/app/src/main/java/com/huaga/life_echo/ui/components/chat/VoiceRecordButton.kt index 3bc8973..f11380f 100644 --- a/app-android/app/src/main/java/com/huaga/life_echo/ui/components/chat/VoiceRecordButton.kt +++ b/app-android/app/src/main/java/com/huaga/life_echo/ui/components/chat/VoiceRecordButton.kt @@ -1,5 +1,6 @@ package com.huaga.life_echo.ui.components.chat +import android.annotation.SuppressLint import androidx.compose.animation.animateColorAsState import androidx.compose.animation.core.animateFloatAsState import androidx.compose.animation.core.tween @@ -186,7 +187,7 @@ fun VoiceRecordButton( fun RecordingOverlayContent( duration: Int, onRelease: (ReleaseAction) -> Unit = {}, - modifier: Modifier = Modifier + @SuppressLint("ModifierParameter") modifier: Modifier = Modifier ) { var highlightZone by remember { mutableStateOf(null) } @@ -280,12 +281,6 @@ fun RecordingOverlayContent( isHighlight = highlightZone == ReleaseAction.SEND_VOICE, tintHighlight = MediumPurple ) - ZoneChip( - label = "转文字", - icon = AppIcons.Keyboard, - isHighlight = highlightZone == ReleaseAction.SEND_AS_TEXT, - tintHighlight = Lavender - ) } } }