mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-22 17:57:35 +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);
|
internal = internal.substring(1, pos);
|
||||||
|
|
||||||
pos = internal.lastIndexOf('/');
|
pos = internal.lastIndexOf('/');
|
||||||
package_ = internal.substring(0, pos).replace('/', '.');
|
if (pos == -1) {
|
||||||
type = internal.substring(pos + 1);
|
package_ = "";
|
||||||
|
type = internal;
|
||||||
|
} else {
|
||||||
|
package_ = internal.substring(0, pos).replace('/', '.');
|
||||||
|
type = internal.substring(pos + 1);
|
||||||
|
}
|
||||||
|
|
||||||
pos = type.indexOf('$');
|
pos = type.indexOf('$');
|
||||||
if (pos != -1) {
|
if (pos != -1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user