Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
RedSnail committed Jun 16, 2019
1 parent 518dd37 commit 45f1683
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion app/src/main/java/msu/ug/ChoiceFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ class ChoiceFragment(private val actContext: Context) : ListFragment() {
}

private fun updateDisplayData(displayData: ArrayList<Map<String, Any>>) {
val file = storage.getPath().joinToString("/") + "/" + storage.currentChoise.toString()
var path = storage.getPath().joinToString("/") + "/"
if (path == "/") {
path = ""
}
val file = path + storage.currentChoise.toString()
val arr = JSONArray(getPlainText(file))
toIndices.clear()
displayData.clear()
Expand Down

0 comments on commit 45f1683

Please sign in to comment.