Fix prevent dot in the first position

This commit is contained in:
vvb2060 2021-01-22 22:23:47 +08:00 committed by topjohnwu
parent 317336f771
commit b54b78c29d

View File

@ -49,7 +49,7 @@ object HideAPK {
var next: Char
var prev = 0.toChar()
for (i in 0 until len) {
next = if (prev == '.' || prev == 0.toChar() || i == len - 1) {
next = if (prev == '.' || i == 0 || i == len - 1) {
ALPHA[random.nextInt(ALPHA.length)]
} else {
ALPHADOTS[random.nextInt(ALPHADOTS.length)]