App reloads when device is connected to phone
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 2.4k
- Forks
- 110
- PR merge metrics
- No merged PRs in 30d
Description
The Issue
When connecting/disconnecting a wireless USB keyboard receiver on android's micro-USB port, while the screen is on, the app reloads. (Green screen with text LBRY).
User reported about same behaviour happening when connecting/disconnecting to Bluetooth headset or to a car. I wasn't able to reproduce issue with my Bluetooth headsets.
Steps to reproduce
- Have an android device that supports USB-OTG and USB keyboard (some Bluetooth devices may work too)
- Start the app
- Connect/disconnect the choice of device to the phone, while the screen is on and app is active.
- App reloads
Expected behaviour
When connecting a device to the phone, the app should just keep doing what it was doing, without reloading,
Actual behaviour
When connecting a device to the phone, the app reloads.
System Configuration
- Device:
Samsung Galaxy j5 2016
User reporting similar issue with Bluetooth had: LG wing - Android version:
Android 10
User reporting similar issue with Bluetooth had: Android 10 - App version:
0.17.0
Anything Else
Sounds similar to this issue https://stackoverflow.com/questions/23311748/my-webview-reloads-when-bluetooth-disconnects-or-reconnects
If the above is the fix, probably adding also "uiMode" will fix issues when connecting to car.
(I wasn't able to build app, so couldn't test)
Screenshots
Internal Use
Acceptance Criteria
Definition of Done
- Tested against acceptance criteria
- Tested against the assumptions of the user story
- The project builds without errors
- Unit tests are written and passing
- Tests on devices/browsers listed in the issue have passed
- QA performed & issues resolved
- Refactoring completed
- Any configuration or build changes documented
- Documentation updated
- Peer Code Review performed
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source files or tests are named. Start by reproducing the reload on Android 10 with the USB-OTG keyboard receiver, then compare the reported Bluetooth and car-connection cases with the linked WebView configuration issue. Done means the app remains on its current screen when devices are connected or disconnected and the project builds successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100