File tree Expand file tree Collapse file tree
src/main/java/com/alexk/tvlock Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ eba9af9adc997f5749d9f43a576a00780345ca94b7774f06ac7c69d5331bd921 tvapplock-release.apk
Original file line number Diff line number Diff 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()) {
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments