From 2720cf93a38a3dc734b44a2f2afe41f3e0352bb4 Mon Sep 17 00:00:00 2001 From: Connor Tumbleson Date: Sun, 13 Sep 2020 08:41:55 -0400 Subject: [PATCH] refactor: put same path switch on same line --- .../java/brut/androlib/res/data/value/ResValueFactory.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/data/value/ResValueFactory.java b/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/data/value/ResValueFactory.java index e7a5e438..d3f7a3b1 100644 --- a/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/data/value/ResValueFactory.java +++ b/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/data/value/ResValueFactory.java @@ -44,6 +44,7 @@ public class ResValueFactory { case TypedValue.TYPE_REFERENCE: return newReference(value, null); case TypedValue.TYPE_ATTRIBUTE: + case TypedValue.TYPE_DYNAMIC_ATTRIBUTE: return newReference(value, rawValue, true); case TypedValue.TYPE_STRING: return new ResStringValue(rawValue, value); @@ -57,8 +58,6 @@ public class ResValueFactory { return new ResBoolValue(value != 0, value, rawValue); case TypedValue.TYPE_DYNAMIC_REFERENCE: return newReference(value, rawValue); - case TypedValue.TYPE_DYNAMIC_ATTRIBUTE: - return newReference(value, rawValue, true); } if (type >= TypedValue.TYPE_FIRST_COLOR_INT && type <= TypedValue.TYPE_LAST_COLOR_INT) {