fix(android): use getApplicationContext() instead of context

Co-authored-by: Darcy Wong <darcy_wong@sil.org>
This commit is contained in:
Marc Durdin 2023-01-24 18:49:46 +11:00 committed by GitHub
parent 0061c7cd5a
commit c045bf5bf4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
});