We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98dc6cf commit 7341305Copy full SHA for 7341305
1 file changed
app/src/main/kotlin/com/google/ai/sample/feature/multimodal/PhotoReasoningScreen.kt
@@ -149,12 +149,12 @@ internal fun PhotoReasoningRoute(
149
onEnableAccessibilityService = {
150
mainActivity?.checkAccessibilityServiceEnabled()
151
},
152
- onClearChatHistory = {
153
- mainActivity?.let {
154
- val viewModel = it.getPhotoReasoningViewModel()
155
- viewModel?.clearChatHistory(context)
156
- }
+ onClearChatHistory = {
+ mainActivity?.let {
+ val viewModel = it.retrievePhotoReasoningViewModel() // <<< KORRIGIERT
+ viewModel?.clearChatHistory(context)
157
}
+ }
158
)
159
160
0 commit comments