Skip to content

Commit 98dc6cf

Browse files
Update ScreenOperatorAccessibilityService.kt
1 parent d46814e commit 98dc6cf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/src/main/kotlin/com/google/ai/sample/ScreenOperatorAccessibilityService.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1538,8 +1538,8 @@ class ScreenOperatorAccessibilityService : AccessibilityService() {
15381538
return
15391539
}
15401540

1541-
// Get the PhotoReasoningViewModel from MainActivity
1542-
val photoReasoningViewModel = mainActivity.getPhotoReasoningViewModel()
1541+
// Get the PhotoReasoningViewModel from MainActivity
1542+
val photoReasoningViewModel = mainActivity.retrievePhotoReasoningViewModel() // <<< KORRIGIERT
15431543
if (photoReasoningViewModel == null) {
15441544
Log.e(TAG, "PhotoReasoningViewModel is null, cannot add screenshot to conversation.")
15451545
showToast("Fehler: Chat-Ansicht nicht aktiv, Screenshot kann nicht verarbeitet werden.", true)

0 commit comments

Comments
 (0)