Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.

Commit

Permalink
FInal adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
Thorsten1 committed Mar 16, 2022
1 parent 08f10d4 commit 4eae448
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,15 +226,11 @@ class ChargeCardFragment : Fragment() {
printLog("Reading $JSONFileName")
var operators:List<Operators>? = null
try {
operators = File(activity?.getFileStreamPath(JSONFileName).toString()).let {
Klaxon().parseArray<Operators>(
it
)
}
val operatorsFile: File? = File(activity?.getFileStreamPath(JSONFileName).toString())
operators = operatorsFile?.let { Klaxon().parseArray<Operators>(it) }!!
}
catch(e: Exception){

}
}
if(operators == null) {
operators = activity?.assets?.open(JSONFileName)?.let {
Klaxon().parseArray<Operators>(
Expand Down

0 comments on commit 4eae448

Please sign in to comment.