mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-06 10:05:54 +01:00
TypeName.fetchFromInternalName(): fixed a bug occuring when parsing class name without a package.
This commit is contained in:
parent
0aa2015fda
commit
f07aae158a
@ -182,8 +182,13 @@ public class TypeName {
|
||||
internal = internal.substring(1, pos);
|
||||
|
||||
pos = internal.lastIndexOf('/');
|
||||
package_ = internal.substring(0, pos).replace('/', '.');
|
||||
type = internal.substring(pos + 1);
|
||||
if (pos == -1) {
|
||||
package_ = "";
|
||||
type = internal;
|
||||
} else {
|
||||
package_ = internal.substring(0, pos).replace('/', '.');
|
||||
type = internal.substring(pos + 1);
|
||||
}
|
||||
|
||||
pos = type.indexOf('$');
|
||||
if (pos != -1) {
|
||||
|
Loading…
Reference in New Issue
Block a user