From 2dae9c991926f1dff4f6e957a98f05f0dd0e3f0c Mon Sep 17 00:00:00 2001 From: Arif Burak Demiray Date: Thu, 1 Feb 2024 14:36:16 +0300 Subject: [PATCH] fix: remove index way --- sdk-java/src/main/java/ly/count/sdk/java/internal/ViewImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk-java/src/main/java/ly/count/sdk/java/internal/ViewImpl.java b/sdk-java/src/main/java/ly/count/sdk/java/internal/ViewImpl.java index be165d3c..b9c80547 100644 --- a/sdk-java/src/main/java/ly/count/sdk/java/internal/ViewImpl.java +++ b/sdk-java/src/main/java/ly/count/sdk/java/internal/ViewImpl.java @@ -50,7 +50,7 @@ public void stop(boolean lastView) { } stop = true; Countly.instance().views().stopViewWithName(name); - ModuleViews viewsModule = (ModuleViews) SDKCore.instance.module(CoreFeature.Views.getIndex()); + ModuleViews viewsModule = (ModuleViews) SDKCore.instance.module(CoreFeature.Views); if (viewsModule != null) { viewsModule.setFirstViewInternal(lastView); }