Recently Written · git

subrep-android

Subrep on Android: live captions of the sound of the phone, made on the phone by Whisper, shared by link.

git clone https://github.com/equwal/subrep-android

Log | Files | Refs


commit 49bd17f48e1fdf27b65749f05543af75aea2143d
equwal <13551856+equwal@users.noreply.github.com>
2026-10-04 02:20:02 -0700

Contact subread.space only when cloud captions are chosen

 app/src/main/kotlin/com/honjimaku/subrep/MainActivity.kt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/app/src/main/kotlin/com/honjimaku/subrep/MainActivity.kt b/app/src/main/kotlin/com/honjimaku/subrep/MainActivity.kt
index 0a966d2..e179d4c 100644
--- a/app/src/main/kotlin/com/honjimaku/subrep/MainActivity.kt
+++ b/app/src/main/kotlin/com/honjimaku/subrep/MainActivity.kt
@@ -76,7 +76,8 @@ class MainActivity : Activity(), Feed.Listener {
         Feed.add(this)
         onChange()
         // After a payment in the browser, the user comes back here: show the new hours.
-        refreshCloud()
+        // Ask subread.space only when the user chose cloud captions.
+        if (whereGroup.checkedRadioButtonId == CLOUD_ID) refreshCloud()
     }
 
     override fun onPause() {
@@ -103,6 +104,7 @@ class MainActivity : Activity(), Feed.Listener {
             })
             check(if (store.cloud) CLOUD_ID else PHONE_ID)
         }
+        whereGroup.setOnCheckedChangeListener { _, id -> if (id == CLOUD_ID) refreshCloud() }
         content.addView(whereGroup, wide())
         cloudStatus = TextView(this).apply {
             setTextColor(Color.BLACK)