GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: index out of bounds #96 · vilebbit/ShizuruNotes@daea88c

This repository was archived by the owner on Sep 15, 2024. It is now read-only.

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • app/src/main/java/com/github/malitsplus/shizurunotes/ui/comparison
    • RankComparisonFragment.kt
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎app/src/main/java/com/github/malitsplus/shizurunotes/ui/comparison/RankComparisonFragment.kt‎

Copy file name to clipboardExpand all lines: app/src/main/java/com/github/malitsplus/shizurunotes/ui/comparison/RankComparisonFragment.kt
+6-2Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ class RankComparisonFragment : Fragment() {
4141
comparisonViewModel.rankList.toTypedArray()
4242
)
4343
)
44-
setText(comparisonViewModel.rankList[1].toString())
44+
if (comparisonViewModel.rankList.size >= 2) {
45+
setText(comparisonViewModel.rankList[1].toString())
46+
}
4547
}
4648
dropdownRankTo.apply {
4749
setAdapter(
@@ -51,7 +53,9 @@ class RankComparisonFragment : Fragment() {
5153
comparisonViewModel.rankList.toTypedArray()
5254
)
5355
)
54-
setText(comparisonViewModel.rankList[0].toString())
56+
if (comparisonViewModel.rankList.size >= 1) {
57+
setText(comparisonViewModel.rankList[0].toString())
58+
}
5559
}
5660
calculateButton.setOnClickListener {
5761
sharedChara.rankComparisonFrom = dropdownRankFrom.text.toString().toInt()

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.