From 6dee6065860884c282c3e54728a239610918f59e Mon Sep 17 00:00:00 2001 From: maltaisn Date: Fri, 1 Mar 2019 07:49:47 -0500 Subject: [PATCH] v2.3.1 --- CHANGELOG.md | 3 +++ icondialog/build.gradle | 4 ++-- .../src/main/java/com/maltaisn/icondialog/IconHelper.java | 2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ec00837..4d3558a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +### v2.3.1 +- Prevented ADB bug where category string references weren't changed to an ID. + ## v2.3.0 - Added dismiss listener. - Improved nullity annotations for Kotlin. diff --git a/icondialog/build.gradle b/icondialog/build.gradle index 0db4133..962f312 100644 --- a/icondialog/build.gradle +++ b/icondialog/build.gradle @@ -14,8 +14,8 @@ ext { siteUrl = 'https://github.com/maltaisn/icondialoglib' gitUrl = 'https://github.com/maltaisn/icondialoglib.git' - libraryVersionCode = 11 - libraryVersion = '2.3.0' + libraryVersionCode = 12 + libraryVersion = '2.3.1' developerId = 'maltaisn' diff --git a/icondialog/src/main/java/com/maltaisn/icondialog/IconHelper.java b/icondialog/src/main/java/com/maltaisn/icondialog/IconHelper.java index 03cb2c7..900e303 100644 --- a/icondialog/src/main/java/com/maltaisn/icondialog/IconHelper.java +++ b/icondialog/src/main/java/com/maltaisn/icondialog/IconHelper.java @@ -312,6 +312,8 @@ private synchronized void loadIcons(@XmlRes int xmlFile, boolean append) { int resId = 0; if (nameStr != null) { if (nameStr.startsWith("@string/")) { + // There's an ADB bug where the string reference isn't changed to an ID. + // This detects and prevents it. resId = context.getResources().getIdentifier( nameStr.substring(8), "string", context.getPackageName()); } else {