From 78ac30c384ee0de634cbb7e8df52e5a656513d17 Mon Sep 17 00:00:00 2001 From: Diego Serrano Date: Wed, 5 Jul 2023 16:06:27 -0700 Subject: [PATCH] Fix NullPointerException when setting color in tablets --- CHANGELOG.md | 4 ++++ README.md | 4 ++-- androidsdk/gradle.properties | 4 ++-- .../wootric/androidsdk/views/tablet/SurveyLayoutTablet.java | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 71d9f01..34c245b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 2.25.1 (2023-07-12) + +- Fix NullPointerException when setting color in tablets (https://github.com/Wootric/WootricSDK-flutter/issues/8) + ## 2.25.0 (2023-06-01) - Add support for AU tokens diff --git a/README.md b/README.md index e13d64b..6b93b76 100644 --- a/README.md +++ b/README.md @@ -28,14 +28,14 @@ If you use Maven, you can include this library as a dependency: com.wootric wootric-sdk-android - 2.25.0 + 2.25.1 ``` ### Using Gradle ```xml -implementation 'com.wootric:wootric-sdk-android:2.25.0' +implementation 'com.wootric:wootric-sdk-android:2.25.1' ``` ## Initializing Wootric diff --git a/androidsdk/gradle.properties b/androidsdk/gradle.properties index 6479c90..d1bc1df 100644 --- a/androidsdk/gradle.properties +++ b/androidsdk/gradle.properties @@ -1,5 +1,5 @@ -VERSION_NAME=2.25.0 -VERSION_CODE=2250 +VERSION_NAME=2.25.1 +VERSION_CODE=2251 GROUP=com.wootric POM_DESCRIPTION=WootricSDK Android diff --git a/androidsdk/src/main/java/com/wootric/androidsdk/views/tablet/SurveyLayoutTablet.java b/androidsdk/src/main/java/com/wootric/androidsdk/views/tablet/SurveyLayoutTablet.java index 8e38c10..0e7654f 100644 --- a/androidsdk/src/main/java/com/wootric/androidsdk/views/tablet/SurveyLayoutTablet.java +++ b/androidsdk/src/main/java/com/wootric/androidsdk/views/tablet/SurveyLayoutTablet.java @@ -279,7 +279,7 @@ private void initResources() { new DriverPicklist.Configure() .driverPicklist(mDriverPicklist) - .selectedColor(mContext.getResources().getColor(mSettings.getScoreColor())) + .selectedColor(Color.parseColor("#024ea9")) .selectedFontColor(Color.parseColor("#ffffff")) .deselectedColor(Color.parseColor("#ffffff")) .deselectedFontColor(Color.parseColor("#253746"))