diff --git a/library/build.gradle.kts b/library/build.gradle.kts index 9a1316494..0b448f578 100644 --- a/library/build.gradle.kts +++ b/library/build.gradle.kts @@ -72,22 +72,22 @@ var ossrhPassword = "" //sonatype密码 val localProperties: File = project.rootProject.file("local.properties") -if (localProperties.exists()) { - println("Found secret props file, loading props") - val properties = Properties() - - InputStreamReader(FileInputStream(localProperties), Charsets.UTF_8).use { reader -> - properties.load(reader) - } - signingKeyId = properties.getProperty("signing.keyId") - signingPassword = properties.getProperty("signing.password") - secretKeyRingFile = properties.getProperty("signing.secretKeyRingFile") - ossrhUsername = properties.getProperty("ossrhUsername") - ossrhPassword = properties.getProperty("ossrhPassword") - -} else { +//if (localProperties.exists()) { +// println("Found secret props file, loading props") +// val properties = Properties() +// +// InputStreamReader(FileInputStream(localProperties), Charsets.UTF_8).use { reader -> +// properties.load(reader) +// } +// signingKeyId = properties.getProperty("signing.keyId") +// signingPassword = properties.getProperty("signing.password") +// secretKeyRingFile = properties.getProperty("signing.secretKeyRingFile") +// ossrhUsername = properties.getProperty("ossrhUsername") +// ossrhPassword = properties.getProperty("ossrhPassword") + +//} else { println("No props file, loading env vars") -} +//} afterEvaluate { diff --git a/library/src/main/java/com/chad/library/adapter/base/BaseNodeAdapter.kt b/library/src/main/java/com/chad/library/adapter/base/BaseNodeAdapter.kt index ecbe23e16..1961b6c1c 100644 --- a/library/src/main/java/com/chad/library/adapter/base/BaseNodeAdapter.kt +++ b/library/src/main/java/com/chad/library/adapter/base/BaseNodeAdapter.kt @@ -605,7 +605,8 @@ abstract class BaseNodeAdapter(nodeList: MutableList? = null) data.size - 1 // 如果没有父节点,则为最外层 } else { val dataSize = data[parentPosition].childNode?.size ?: 0 - parentPosition + dataSize + expandCount // 如果有父节点,则为子节点,父节点 + 子节点数量 + 展开的数量 + parentPosition + dataSize + expandCount -1 + // 如果有父节点,则为子节点,父节点 + 子节点数量 + 展开的数量 } //如果此 position 之后有 node