Skip to content

Commit 53ad9ce

Browse files
authored
Version 2.5.3 (#57)
* Restored support for initializing `LDClient` on non-main threads
1 parent 7949ef9 commit 53ad9ce

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33

44
All notable changes to the LaunchDarkly Android SDK will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org).
55

6+
## [2.5.3] - 2018-09-27
7+
### Fixed
8+
- Restored support for initializing `LDClient` on non-main threads
9+
610
## [2.5.2] - 2018-09-11
711
### Fixed
812
- Handling of `Future` returned by `LDClient.init()`

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Check out the included example app, or follow things here:
88
1. Declare this dependency:
99

1010
```
11-
compile 'com.launchdarkly:launchdarkly-android-client:2.5.2'
11+
compile 'com.launchdarkly:launchdarkly-android-client:2.5.3'
1212
```
1313
1. In your application configure and initialize the client:
1414

launchdarkly-android-client/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ apply plugin: 'io.codearte.nexus-staging'
77

88
allprojects {
99
group = 'com.launchdarkly'
10-
version = '2.5.2'
10+
version = '2.5.3'
1111
sourceCompatibility = 1.7
1212
targetCompatibility = 1.7
1313
}

launchdarkly-android-client/src/main/java/com/launchdarkly/android/Throttler.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66

77
import android.os.Handler;
8+
import android.os.Looper;
89
import android.support.annotation.NonNull;
910

1011
import java.util.Random;
@@ -36,7 +37,7 @@ class Throttler {
3637
jitter = new Random();
3738
attempts = new AtomicInteger(0);
3839
maxAttemptsReached = new AtomicBoolean(false);
39-
handler = new Handler();
40+
handler = new Handler(Looper.getMainLooper());
4041

4142
attemptsResetRunnable = new Runnable() {
4243
@Override

0 commit comments

Comments
 (0)