openreads icon indicating copy to clipboard operation
openreads copied to clipboard

[BUG] screen size cut after barcode scan

Open jrom99 opened this issue 1 year ago • 18 comments

Describe the bug The app available screen size gets smaller after certain actions are done. You can still scroll to access hidden content, though, so it's not completely unusable.

To Reproduce Steps to reproduce the behavior:

  1. Launch the app.
  2. Click on the + button
  3. Use barcode to scan.
  4. Scan an item. 4.1. If there is a book, both choosing an edition as well as add book will result in a smaller screen size. 4.2. If there is no book found, going back will also result in a smaller screen size. 4.3. In both cases, going back will not result in a smaller screen size.

Expected behavior Screen size to remain constant after any action.

Screenshots After selecting an avalable book after a sucessfull barcode scan:

And after going back to my book list:

Additional info(please complete the following information):

  • Manufacturer and model: Xiaomi Redmi Note 9
  • Android version:MIUI Global 12.0.1 (Android 11 RP1A.200720.011)
  • App version: 2.0.3
  • App source (F-Droid, Google Play, Github): Google Play

Additional context This is my first time using the app, I've installed it a few days ago. I don't know if this should be expected behavior or if there is a setting that needs to be changed before first use.

jrom99 avatar Apr 09 '23 00:04 jrom99

Hi, thanks for reporting. Seeing this for the first time - this should not happen. Will be investigating this issue.

If you have any more info or information that could help please add them as well.

mateusz-bak avatar Apr 18 '23 20:04 mateusz-bak

Update! I cannot reproduce it anymore. It has been a few weeks though, so I'm not sure what solved it.

jrom99 avatar Aug 06 '23 23:08 jrom99

@jrom99 Then it was probably an issue with the Flutter framework itself. The version that was used to build the newest app was updated. Glad to hear it is gone now!

mateusz-bak avatar Aug 07 '23 18:08 mateusz-bak

The bug is happening again. When I scan a barcode and choose cancel, or when I choose an edition and then click ok or cancel, the screen is cut. This seems to be related to the keyboard, as I was able to reset the screen size by tapping on a textbox field.

jrom99 avatar Aug 15 '23 03:08 jrom99

Are you using a non default keyboard?

mateusz-bak avatar Aug 15 '23 05:08 mateusz-bak

No, just the default Brazilian Portuguese one.

jrom99 avatar Aug 15 '23 13:08 jrom99

Reopening then and we need to find the root cause.

mateusz-bak avatar Aug 22 '23 07:08 mateusz-bak

Hi @jrom99, do you still have this problem with the last 2.2.0 release? Just checking

apobrt avatar Nov 19 '23 18:11 apobrt

I'm having the same problem, I believe.

 

2024-01-06 18:21:48

2024-01-06 18:22:00

2023-01-06 18:22:14

2024-01-06 18:22:20

(P.S. Sorry for the multiple screenshots; it only just barely gets the point across, I think. I tried uploading a screen recording, but it said the file was too big.)

 


Details

  • App Version: 2.3.0
  • OS: Android 11
  • Hardware: Motorola One 5G Ace

PrivacyFriendlyMuffins avatar Jan 06 '24 23:01 PrivacyFriendlyMuffins

I see the visual behaviour is not consistent with this bug. Any ideas @PrivacyFriendlyMuffins what could be the cause on your device? I was never succesfull to reproduce the issue.

Do you have any Flutter knowledge? Maybe you could install debug version and check the logs for any errors.

mateusz-bak avatar Jan 11 '24 12:01 mateusz-bak

@mateusz-bak, sadly I do not have any Flutter knowledge. I'm still learning how to code, heavy on the "learning" part. All I know is pretty much what I described. Is there a log file or something I can send that would provide more context? Or would it help if I posted screenshots of my settings page or whatever?

Sorry for not being very helpful...

PrivacyFriendlyMuffins avatar Jan 13 '24 02:01 PrivacyFriendlyMuffins

No worries @PrivacyFriendlyMuffins If you feel like learning Flutter I can guide you through the steps you could take to get the logs.

mateusz-bak avatar Jan 24 '24 06:01 mateusz-bak

I would love that. Thank you!

PrivacyFriendlyMuffins avatar Jan 26 '24 10:01 PrivacyFriendlyMuffins

Firstly you can follow Flutter installation docs: https://docs.flutter.dev/get-started/install

After that you need to pull the code for Openreads from Github.

Then you can turb on developer options in your phone, then turn on USB debugging. Do a backup of your books because you will loose them. Connect phone to pc and run the app from your IDE.

mateusz-bak avatar Jan 27 '24 13:01 mateusz-bak

Hi @PrivacyFriendlyMuffins did you get anywhere with the debugging?

mateusz-bak avatar Feb 18 '24 05:02 mateusz-bak

@mateusz-bak Hi, I'm really sorry I pretty much dropped off the face of the earth. I had stuff happen that kind of...took my attention elsewhere. I sincerely apologize!

Regarding the debugging, I'm going to have to decline the instruction after all, for all that my delayed response is worth. I am sorry for wasting your time... :(

PrivacyFriendlyMuffins avatar Apr 03 '24 03:04 PrivacyFriendlyMuffins

No worries @PrivacyFriendlyMuffins take care!

mateusz-bak avatar Apr 03 '24 04:04 mateusz-bak

Thanks for understanding.

PrivacyFriendlyMuffins avatar Apr 03 '24 05:04 PrivacyFriendlyMuffins