Open bagipro opened 4 years ago
Last comment fixed the problem. Now it's decompiling to
static androidx.navigation.NavType inferFromValue(java.lang.String str) {
try {
IntType.parseValue(str);
return IntType;
} catch (java.lang.IllegalArgumentException unused) {
try {
LongType.parseValue(str);
return LongType;
} catch (java.lang.IllegalArgumentException unused2) {
try {
FloatType.parseValue(str);
return FloatType;
} catch (java.lang.IllegalArgumentException unused3) {
try {
BoolType.parseValue(str);
return BoolType;
} catch (java.lang.IllegalArgumentException unused4) {
return StringType;
}
}
}
}
}
It would be great if jadx moves all parseValue
statements outside catch
block
Class
androidx.navigation.NavType
Actual source: https://android.googlesource.com/platform/frameworks/support/+/refs/heads/androidx-master-dev/navigation/navigation-common/src/main/java/androidx/navigation/NavType.java#188
APK: https://drive.google.com/file/d/1Hmwjs-Qc8kKc7mx90oC_n1YagOd01jar/view?usp=sharing