Skip to content

Commit

Permalink
fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
AvianJay authored Dec 12, 2024
1 parent e3348b3 commit 1f44f85
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ class SectionsPagerAdapter(private val context: Context, fm: FragmentManager) :
override fun getPageTitle(position: Int): CharSequence? {
val py = Python.getInstance()
val twbus = py.getModule("main")
val paths: List<String> = twbus.callAttr("paths_name").asList().map { it.toString() }
val paths: List<String> = twbus.get("paths_name")
return paths[position]
}

override fun getCount(): Int {
val py = Python.getInstance()
val twbus = py.getModule("main")
val paths: List<String> = twbus.callAttr("paths_name").asList().map { it.toString() }
val paths: List<String> = twbus.get("paths_name")
return paths.size
}
}
}

0 comments on commit 1f44f85

Please sign in to comment.