Skip to content

Commit

Permalink
ver 0.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Tianzhu Qiao committed Nov 29, 2020
1 parent 0992d6c commit 0018900
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion form/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ext {
siteUrl = 'https://github.com/tianzhuqiao/form'
gitUrl = 'https://github.com/tianzhuqiao/form.git'

libraryVersion = '0.3.3'
libraryVersion = '0.3.4'

developerId = 'tianzhuqiao'
developerName = 'Tianzhu Qiao'
Expand Down
3 changes: 2 additions & 1 deletion form/src/main/java/com/feiyilin/form/FormRecyclerAdapter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ open class FormRecyclerAdapter(
* @param section section to be added
* @return true if succeed
*/
private fun add(secIndex: Int, section: FormItemSection): Boolean {
fun add(secIndex: Int, section: FormItemSection): Boolean {
if (sections.indexOf(section) != -1 || secIndex < 0 || secIndex > sections.size || section in sections) {
return false
}
Expand Down Expand Up @@ -729,6 +729,7 @@ open class FormRecyclerAdapter(
return add(index+1, section)
}


/**
* If section is visible, it return the index of its first item; otherwise, return the index of
* its first child if the section is visible.
Expand Down

0 comments on commit 0018900

Please sign in to comment.