Compare commits
3 Commits
39c037a9ab
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
442ef70b8d | ||
|
|
ec3a95fc2d | ||
|
|
b07cd27fce |
@@ -83,7 +83,7 @@ fun AboutContent(activity: ComponentActivity){
|
||||
{
|
||||
AboutTextElement("This Product is published under the\nGNU General Public License\nVersion 3, 29 June 2007", 16.dp)
|
||||
AboutTextElement("Developed by:\n- Paul Posch\n- Matthias Meyer\n- Jakub Szarko\n- Emilian Bührer", 32.dp)
|
||||
AboutTextElement("Fun Facts:\nThis app consists of 4.189 lines of code\nThe repository is 740KB big\nThe development took about 3 months", 64.dp) //TODO: Update before launch
|
||||
AboutTextElement("Fun Facts:\nThis app consists of 4.189 lines of code\nThe repository is 768KB big\nThe development took about 3 months", 64.dp)
|
||||
|
||||
Spacer(modifier = Modifier.height(32.dp))
|
||||
Divider()
|
||||
|
||||
@@ -127,7 +127,19 @@ private fun decompressGZIPAndDecodeBase64(compressedData: String): String {
|
||||
private fun downloadImagesTask(jsonResponse: JSONObject, mainDir : File) : Int {
|
||||
clearFolder(mainDir)
|
||||
|
||||
val jsonDaysObject = jsonResponse.getJSONArray("ResultMenuItems").getJSONObject(0).getJSONArray("Childs").getJSONObject(0).getJSONObject("Root").getJSONArray("Childs")
|
||||
var jsonDaysObject = jsonResponse.getJSONArray("ResultMenuItems")
|
||||
for (i in 0 until jsonDaysObject.length()) {
|
||||
if (jsonDaysObject.getJSONObject(i).get("Index") == 0) {
|
||||
jsonDaysObject = jsonDaysObject.getJSONObject(i).getJSONArray("Childs")
|
||||
break
|
||||
}
|
||||
}
|
||||
for (i in 0 until jsonDaysObject.length()) {
|
||||
if (jsonDaysObject.getJSONObject(i).get("Index") == 0) {
|
||||
jsonDaysObject = jsonDaysObject.getJSONObject(i).getJSONObject("Root").getJSONArray("Childs")
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
for (d in 0 until jsonDaysObject.length()) {
|
||||
val jsonDayObject = jsonDaysObject.getJSONObject(d)
|
||||
|
||||
Reference in New Issue
Block a user