lbryio / lbryio/lbry-android

App reloads when device is connected to phone

Open
#1,191 2 comments 0 reactions 0 assignees View on GitHub

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
  1. Have an android device that supports USB-OTG and USB keyboard (some Bluetooth devices may work too)
  2. Start the app
  3. Connect/disconnect the choice of device to the phone, while the screen is on and app is active.
  4. 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.