From c045bf5bf4dc987c58179e6a8512fdcb2fe43877 Mon Sep 17 00:00:00 2001 From: Marc Durdin Date: Tue, 24 Jan 2023 18:49:46 +1100 Subject: [PATCH] fix(android): use `getApplicationContext()` instead of `context` Co-authored-by: Darcy Wong --- .../src/main/java/com/firstvoices/keyboards/SystemKeyboard.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oem/firstvoices/android/app/src/main/java/com/firstvoices/keyboards/SystemKeyboard.java b/oem/firstvoices/android/app/src/main/java/com/firstvoices/keyboards/SystemKeyboard.java index 2c0e1cc598..b125c6e5f5 100644 --- a/oem/firstvoices/android/app/src/main/java/com/firstvoices/keyboards/SystemKeyboard.java +++ b/oem/firstvoices/android/app/src/main/java/com/firstvoices/keyboards/SystemKeyboard.java @@ -48,7 +48,7 @@ public class SystemKeyboard extends InputMethodService implements OnKeyboardEven if (DependencyUtil.libraryExists(LibraryType.SENTRY) && !Sentry.isEnabled()) { Log.d(TAG, "Initializing Sentry"); - SentryAndroid.init(context, options -> { + SentryAndroid.init(getApplicationContext(), options -> { options.setRelease(com.firstvoices.keyboards.BuildConfig.VERSION_GIT_TAG); options.setEnvironment(com.firstvoices.keyboards.BuildConfig.VERSION_ENVIRONMENT); });