Skip to content

fix(tv): focus update button in update dialog - #3370

Closed
sanketpatel32 wants to merge 1 commit into
recloudstream:masterfrom
sanketpatel32:devin/1796255513-tv-update-focus
Closed

sanketpatel32 wants to merge 1 commit into
recloudstream:masterfrom
sanketpatel32:devin/1796255513-tv-update-focus

Conversation

@sanketpatel32

Copy link
Copy Markdown

Summary

Fixes #3296.

The in-app update dialog now requests focus for its positive Update button through the existing TV/emulator-only setDefaultFocus helper. Phone layouts remain unchanged because that helper still returns immediately outside TV/emulator layouts.

Added an instrumented regression test that forces the TV layout, shows the same update-dialog focus path, and verifies that the positive button is focused.

Verification

  • ./gradlew assemblePrereleaseDebug lint check — passed.
  • ./gradlew :app:connectedPrereleaseDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.class=com.lagradost.cloudstream3.utils.UpdateDialogFocusTest on an Android TV emulator (Android 16/API 36) — 1 test passed.
  • Also verified by code inspection that the previous default was the negative button and that phone behavior is unchanged. I did not reproduce the live updater end-to-end because debug builds intentionally skip update checks; the regression test exercises the exact focus helper used by runAutoUpdate.

AI assistance

This PR was implemented with AI assistance (Devin), including the code and test changes. Verification results are listed above.

@LagradOst LagradOst added the AI Assisted This pull request was AI assisted (or generated). label Dec 3, 2026
@LagradOst

Copy link
Copy Markdown
Contributor

Congratulations, your AI managed to write and "test" the code that never get ran on the app. This "fix" does not fix it nor require a big testcase, when a 2min test on an emulator would show that this fix does nothing. This clearly breaks both rule 2 the AI Policy.

@LagradOst LagradOst closed this Dec 3, 2026
@LagradOst

Copy link
Copy Markdown
Contributor

Open source is not a place where you can test your new AI workflows with no effort contributions.

@sanketpatel32

Copy link
Copy Markdown
Author

I don't want to escalate this, but I don't understand why you're so offended by AI usage.

@LagradOst

Copy link
Copy Markdown
Contributor

I don't want to escalate this, but I don't understand why you're so offended by AI usage.

Because you clearly put less effort into this pr than you did writing this comment. We routinely merge AI assisted prs, but they at least try have a human in the loop, and test the code.

@sanketpatel32

Copy link
Copy Markdown
Author

If it doesn't work, tell me what you saw on the emulator and I'll fix or close it. That's more useful than a lecture about effort, and I'd rather the thread stay about the code.

@LagradOst

Copy link
Copy Markdown
Contributor

If it doesn't work, tell me what you saw on the emulator and I'll fix or close it. That's more useful than a lecture about effort, and I'd rather the thread stay about the code.

No, I did not have to launch an emulator to see this, try it yourself if you want to fix it, or did the AI write this comment too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Assisted This pull request was AI assisted (or generated).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update screen should use "update" as default on TV

2 participants