We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc1401d commit 4e526f1Copy full SHA for 4e526f1
AndroidSDK/src/com/leanplum/internal/Request.java
@@ -26,6 +26,7 @@
26
import android.os.AsyncTask;
27
import android.os.Build;
28
import android.support.annotation.NonNull;
29
+import android.text.TextUtils;
30
31
import com.leanplum.Leanplum;
32
import com.leanplum.utils.SharedPreferencesUtil;
@@ -103,8 +104,12 @@ public class Request {
103
104
}
105
106
public static void setAppId(String appId, String accessKey) {
- Request.appId = appId;
107
- Request.accessKey = accessKey;
+ if (!TextUtils.isEmpty(appId)) {
108
+ Request.appId = appId.trim();
109
+ }
110
+ if (!TextUtils.isEmpty(accessKey)) {
111
+ Request.accessKey = accessKey.trim();
112
113
114
115
public static void setDeviceId(String deviceId) {
0 commit comments