Skip to content

Commit 00cefb2

Browse files
author
alex-hermes-agent
committed
feat(v1.18): remove HOME-park from gate raise (option B) — launch PinActivity directly to cut gate delay
1 parent cc6491b commit 00cefb2

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

.release_verify/SHA256SUMS.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
eba9af9adc997f5749d9f43a576a00780345ca94b7774f06ac7c69d5331bd921 tvapplock-release.apk

app/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ android {
1515
applicationId = "com.alexk.tvlock"
1616
minSdk = 21
1717
targetSdk = 34
18-
versionCode = 18
19-
versionName = "1.17"
18+
versionCode = 19
19+
versionName = "1.18"
2020
}
2121

2222
if (!releaseKeystore.isNullOrBlank()) {

app/src/main/java/com/alexk/tvlock/LockPollService.kt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,11 @@ class LockPollService : Service() {
132132
targetPkg = t
133133
android.util.Log.i("TVLOCK", "gate raising for $t")
134134
try {
135-
// park the blocked app first: video must never render under the gate
136-
startActivity(Intent(Intent.ACTION_MAIN).addCategory(Intent.CATEGORY_HOME)
137-
.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK))
135+
// raise the gate directly — the old HOME-park launched the launcher
136+
// (a full extra app launch) before PinActivity, adding ~2-6 s to the
137+
// gate delay; on a fast YouTube-button press the app beat the gate.
138+
// A vanished gate is still covered: the watchdog re-raise in tick()
139+
// re-arms it within ~2.5 s if PinActivity was silently denied.
138140
startActivity(Intent(this, PinActivity::class.java).apply {
139141
addFlags(Intent.FLAG_ACTIVITY_NEW_TASK or
140142
Intent.FLAG_ACTIVITY_CLEAR_TOP or

0 commit comments

Comments
 (0)