Skip to content

Commit

Permalink
feat: missing test logic
Browse files Browse the repository at this point in the history
  • Loading branch information
arifBurakDemiray committed Jan 8, 2024
1 parent a3835e9 commit 887b361
Show file tree
Hide file tree
Showing 4 changed files with 153 additions and 89 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -755,12 +755,13 @@ public ModuleCrashes.Crashes crashes() {
}

public ModuleViews.Views views() {
if (!hasConsentForFeature(CoreFeature.Views)) {
ModuleViews module = module(ModuleViews.class);
if (module == null) {
L.v("[SDKCore] views, Views feature has no consent, returning null");
return null;
}

return module(ModuleViews.class).viewsInterface;
return module.viewsInterface;
}

public ModuleDeviceIdCore.DeviceId deviceId() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void start(boolean firstView) {
}

start = true;
Countly.instance().views().startView(name);
Countly.instance().views().startAutoStoppedView(name);
}

@Override
Expand Down
Loading

0 comments on commit 887b361

Please sign in to comment.