Skip to content

Commit 30c5fbb

Browse files
authored
Merge pull request #413 from Countly/capture_foreground
fix: capture foreground state after app creation
2 parents 1527110 + b837c88 commit 30c5fbb

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 24.7.5-RC1
1+
## 24.7.5-RC2
22
* ! Minor breaking change ! All active views will now automatically stop when consent for "views" is revoked.
33

44
* The Android SDK now supports Android 15 (API level 35)
@@ -17,6 +17,7 @@
1717

1818
* Mitigated an issue where content communication was done twice.
1919
* Mitigated a concurrency issue while restarting stopped views.
20+
* Fixed an issue where SDK was not able to set experimental visibility flag correctly by adding additional foreground state capture.
2021

2122
## 24.7.4
2223
* Disabled caching for webviews.

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ org.gradle.configureondemand=true
2222
android.useAndroidX=true
2323
android.enableJetifier=true
2424
# RELEASE FIELD SECTION
25-
VERSION_NAME=24.7.5-RC1
25+
VERSION_NAME=24.7.5-RC2
2626
GROUP=ly.count.android
2727
POM_URL=https://github.com/Countly/countly-sdk-android
2828
POM_SCM_URL=https://github.com/Countly/countly-sdk-android

sdk/src/androidTest/java/ly/count/android/sdk/TestUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public class TestUtils {
4444
public final static String commonAppKey = "appkey";
4545
public final static String commonDeviceId = "1234";
4646
public final static String SDK_NAME = "java-native-android";
47-
public final static String SDK_VERSION = "24.7.5-RC1";
47+
public final static String SDK_VERSION = "24.7.5-RC2";
4848
public static final int MAX_THREAD_COUNT_PER_STACK_TRACE = 50;
4949

5050
public static class Activity2 extends Activity {

sdk/src/main/java/ly/count/android/sdk/Countly.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ of this software and associated documentation files (the "Software"), to deal
4747
*/
4848
public class Countly {
4949

50-
private final String DEFAULT_COUNTLY_SDK_VERSION_STRING = "24.7.5-RC1";
50+
private final String DEFAULT_COUNTLY_SDK_VERSION_STRING = "24.7.5-RC2";
5151

5252
/**
5353
* Used as request meta data on every request
@@ -792,8 +792,9 @@ public void onLowMemory() {
792792
}
793793

794794
if (config_.lifecycleObserver.LifeCycleAtleastStarted()) {
795-
L.d("[Countly] SDK detects that the app is in the foreground. Increasing the activity counter.");
795+
L.d("[Countly] SDK detects that the app is in the foreground. Increasing the activity counter and setting the foreground state.");
796796
activityCount_++;
797+
config.deviceInfo.inForeground();
797798
}
798799

799800
L.i("[Init] About to call module 'initFinished'");

0 commit comments

Comments
 (0)