Skip to content

Conversation

@benklop
Copy link

@benklop benklop commented Jan 14, 2026

Issue: Video playback stopped abruptly when a Bluetooth remote disconnected from my Android TV device.

Root Cause: The activity was being recreated when input devices connected/disconnected, causing the playback fragment's onStop() to be called and ending playback.

Fix:

Added android:configChanges="keyboard|keyboardHidden|navigation"] to MainActivity to prevent activity recreation on input device changes
Optimized onConfigurationChanged() to skip theme reapplication for input device changes, eliminating visual glitches during playback
Result: Playback now continues seamlessly when Bluetooth remotes or other input devices connect/disconnect.

Testing:
In my testing during an episode of doctor who, I had no more playback issues, whereas previously it was stopping every 5 minutes.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant