Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthsky committed Feb 3, 2024
1 parent 9732ab2 commit 8446592
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ android {
applicationId = "com.skylake.siddharthsky.sparkletv2"
minSdk = 21
targetSdk = 33
versionCode = 4
versionName = "2.2"
versionCode = 5
versionName = "2.3"

}

Expand Down
4 changes: 2 additions & 2 deletions app/release/output-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"type": "SINGLE",
"filters": [],
"attributes": [],
"versionCode": 4,
"versionName": "2.2",
"versionCode": 5,
"versionName": "2.3",
"outputFile": "app-release.apk"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ class MainActivity : FragmentActivity() {

private inner class CheckSiteStatusTask : AsyncTask<Void, Void, Boolean>() {

// Wait for 1 seconds to check server status
override fun doInBackground(vararg params: Void?): Boolean {
return isSiteReachable("localhost", 5001, 100)
}
Expand All @@ -48,7 +47,7 @@ class MainActivity : FragmentActivity() {
showToast("Server is up ⬆️")
showToast("Starting TV2")
openSavedApp()
// Finish the current activity (close the main app)
// Finish the current activity (exiting sparkletv2 after opening only IPTV)
finish()
} else {
showToast("Server is down ⬇️")
Expand All @@ -61,7 +60,8 @@ class MainActivity : FragmentActivity() {
showToast("Starting TV2")

openSavedApp()
// Finish the current activity (close the main app)

// Finish the current activity (exiting sparkletv2 after opening T+IPTV)
finish()
}
}
Expand Down

0 comments on commit 8446592

Please sign in to comment.