mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-27 20:15:29 +00:00
Prevent dot in the first position again
This commit is contained in:
parent
0a6140c6eb
commit
4950020635
@ -62,8 +62,8 @@ object HideAPK {
|
|||||||
}
|
}
|
||||||
if (!builder.contains('.')) {
|
if (!builder.contains('.')) {
|
||||||
// Pick a random index and set it as dot
|
// Pick a random index and set it as dot
|
||||||
val idx = random.nextInt(len - 1)
|
val idx = random.nextInt(len - 2)
|
||||||
builder[idx] = '.'
|
builder[idx + 1] = '.'
|
||||||
}
|
}
|
||||||
return builder.toString()
|
return builder.toString()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user