Repository navigation
fix(tv): focus update button in update dialog - #3370
sanketpatel32 wants to merge 1 commit into
Conversation
|
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. |
|
Open source is not a place where you can test your new AI workflows with no effort contributions. |
|
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. |
|
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? |
Summary
Fixes #3296.
The in-app update dialog now requests focus for its positive Update button through the existing TV/emulator-only
setDefaultFocushelper. 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.UpdateDialogFocusTeston an Android TV emulator (Android 16/API 36) — 1 test passed.runAutoUpdate.AI assistance
This PR was implemented with AI assistance (Devin), including the code and test changes. Verification results are listed above.