Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App reloads when device is connected to phone #1191

Open
10 tasks
keikari opened this issue May 17, 2021 · 2 comments
Open
10 tasks

App reloads when device is connected to phone #1191

keikari opened this issue May 17, 2021 · 2 comments

Comments

@keikari
Copy link

keikari commented May 17, 2021

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
@tlundgren
Copy link

Have you tried with the F-Droid repository?

I could not build the app, either - the download of a certain dependency failed, and I could not get the file manually either, but in F-Droid the version is different, and downloads normally. Note that in F-Droid the version of the app is nevertheless 0.17.0, which is the one currently available in Google Play Store.

It may be useful to, at least, run some initial tests.

@keikari
Copy link
Author

keikari commented May 20, 2021

Good idea, I was able to build f-droid version. My keyboard also had trackpad so adding just "keyboard" didn't fixed it.

Adding these navigation|touchscreen|keyboard|uiMode to the L29 on https://github.com/lbryio/lbry-fdroid/blob/master/app/src/main/AndroidManifest.xml#L29 fixed it. I can connect/disconnect my keyboard and app doesn't reload. All of those probably weren't necessary for me.

This may not be a proper fix, so I'll just leave this in here for now.

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

No branches or pull requests

2 participants