Skip to content

Commit

Permalink
fix name
Browse files Browse the repository at this point in the history
  • Loading branch information
iebb committed Nov 13, 2024
1 parent f96e4ab commit 4375ac4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ jobs:
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./outputs/ee.nekoko.revolver.apk
asset_name: ee.nekoko.nlpa.revolver-${{ env.VERSION }}.apk
asset_name: ee.nekoko.revolver-${{ env.VERSION }}.apk
asset_content_type: application/vnd.android.package-archive
9 changes: 7 additions & 2 deletions app/src/main/java/ee/nekoko/revolver/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ class MainActivity : AppCompatActivity() {
// Validate the input
if (inputText.isNotEmpty()) {
intervalInSeconds = inputText.toLong()
if (intervalInSeconds >= 20) {
if (intervalInSeconds >= 10) {
resultText.text = "Switching eSIM every $intervalInSeconds seconds."
val editor = sharedPreferences.edit()
editor.putLong("interval", intervalInSeconds)
editor.apply()
enqueue()
} else {
// Invalid input (not a positive number)
Toast.makeText(this, "Please enter a valid positive number.", Toast.LENGTH_SHORT).show()
Toast.makeText(this, "Please enter a number greater than 10.", Toast.LENGTH_SHORT).show()
}
} else {
// Input is empty
Expand Down Expand Up @@ -149,6 +149,11 @@ class MainActivity : AppCompatActivity() {
for (i in 1..simSlots) {
if (simSlotIds["SIM$i"] != null) {
val simSlotN: CheckBox = findViewById(simSlotIds["SIM$i"]!!)
if (sharedPreferences.getBoolean("SIM$i", true) != simSlotN.isChecked) {
val edit = sharedPreferences.edit()
edit.putBoolean("SIM$i", simSlotN.isChecked)
edit.apply()
}
simSlotN.setText("SIM$i: ${sharedPreferences.getString("next_SIM$i", "Pending Switch")}")
}
}
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2
3

0 comments on commit 4375ac4

Please sign in to comment.