Skip to content

Commit

Permalink
File system surfing 2 (#40)
Browse files Browse the repository at this point in the history
* primitive surfing

* navigation to Nihil

* created constant class

* minor fixes
  • Loading branch information
SomeAnonimCoder authored Jun 16, 2019
1 parent b71c9b8 commit f323ef9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 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,12 @@ 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 f323ef9

Please sign in to comment.