@@ -29,16 +29,16 @@ public final class UserInteractionIntegration
2929 private @ Nullable IScopes scopes ;
3030 private @ Nullable SentryAndroidOptions options ;
3131
32- private final @ NotNull LazyEvaluator < Boolean > isAndroidXAvailable ;
33- private final @ NotNull LazyEvaluator < Boolean > isAndroidxLifecycleAvailable ;
32+ private final boolean isAndroidXAvailable ;
33+ private final boolean isAndroidxLifecycleAvailable ;
3434
3535 public UserInteractionIntegration (
3636 final @ NotNull Application application , final @ NotNull io .sentry .util .LoadClass classLoader ) {
3737 this .application = Objects .requireNonNull (application , "Application is required" );
3838 isAndroidXAvailable =
39- classLoader .isClassAvailableLazy ("androidx.core.view.GestureDetectorCompat" , options );
39+ classLoader .isClassAvailable ("androidx.core.view.GestureDetectorCompat" , options );
4040 isAndroidxLifecycleAvailable =
41- classLoader .isClassAvailableLazy ("androidx.lifecycle.Lifecycle" , options );
41+ classLoader .isClassAvailable ("androidx.lifecycle.Lifecycle" , options );
4242 }
4343
4444 private void startTracking (final @ NotNull Activity activity ) {
@@ -129,13 +129,13 @@ public void register(@NotNull IScopes scopes, @NotNull SentryOptions options) {
129129 .log (SentryLevel .DEBUG , "UserInteractionIntegration enabled: %s" , integrationEnabled );
130130
131131 if (integrationEnabled ) {
132- if (isAndroidXAvailable . getValue () ) {
132+ if (isAndroidXAvailable ) {
133133 application .registerActivityLifecycleCallbacks (this );
134134 this .options .getLogger ().log (SentryLevel .DEBUG , "UserInteractionIntegration installed." );
135135 addIntegrationToSdkVersion ("UserInteraction" );
136136
137137 // In case of a deferred init, we hook into any resumed activity
138- if (isAndroidxLifecycleAvailable . getValue () ) {
138+ if (isAndroidxLifecycleAvailable ) {
139139 final @ Nullable Activity activity = CurrentActivityHolder .getInstance ().getActivity ();
140140 if (activity instanceof LifecycleOwner ) {
141141 if (((LifecycleOwner ) activity ).getLifecycle ().getCurrentState ()
0 commit comments