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

Reader blank when leaving and returning to app #302

Closed
Cephian opened this issue Sep 20, 2023 · 7 comments
Closed

Reader blank when leaving and returning to app #302

Cephian opened this issue Sep 20, 2023 · 7 comments

Comments

@Cephian
Copy link

Cephian commented Sep 20, 2023

This is 100% reproducible for me on a Pixel 7 Pro. Default browser is set to Chrome. I am using the latest GitHub release, though this started sometime before that. Let me know if there is anything else I can do to help debug.

Steps to reproduce (on my device):

  1. Enter a reader (tested on ttu/browser).
  2. Leave the app, but don't close it. Leave it running in the background.
  3. Return to the app.

The screen, just the (presumably) webview part is black, although the jidoujisho overlays still work. Exiting to the main app interface and re-entering the reader fixes the issue.

Video demonstration: https://youtube.com/shorts/SxtGAaSgoBs?si=ZNa9p64r_CmXg4ms

@lrorpilla
Copy link
Owner

This is certainly strange as I am on the exact same device. Do you have any Android version information or anything extra that might have been the difference?

@Cephian
Copy link
Author

Cephian commented Sep 21, 2023

I didn't know this until now, but I seem to be running the (currently publicly beta testing) Android 14, in addition to a seemingly non-public future security update. I was likely opted into this due to my employer (who I don't represent) although this is a personal device.

Maybe this is due to a behavior change in Android 14? If I'm the only one with this issue then waiting until Android 14 officially releases may be the best move.

In the meantime I may attempt to get some sort of debug log of this happening, I've never worked on Android anything before but I am a software developer.

@Cephian
Copy link
Author

Cephian commented Oct 5, 2023

Android 14 is now publicly released, I am on the general release/security update and I am still having this issue. There are a few changes which I could see as potentially causing this issue, for example this one. Can anyone else on Android 14 confirm whether this is happening to them or not?

If there is interest I can post logcat logs which seems to be the way to diagnose these things on android? I had a look myself but didn't really know how to read them effectively since I don't do Android dev myself.

@lrorpilla
Copy link
Owner

I've just received the update actually so I'll let you know how I go with it after it's complete.

@lrorpilla
Copy link
Owner

@Cephian I've upgraded to 14 and I can confirm that I can reproduce the issue. I've included a fix for this in the internal 2.9.0 preview that I've been sharing with other users.

This version has structured content support and faster imports, but you may need to reimport your dictionaries. It should fix this issue, though I have to replace the blur with darker opacity behind the Creator as the WebView does not take well to the blur due to an update to the dependency that I use.

Let me know how you go, and thanks for reporting this issue.

Here is a download link. Unfortunately, I'm too busy at the moment to type up some official release notes for this version

@lrorpilla
Copy link
Owner

lrorpilla commented Oct 5, 2023

I've officially released a pre-release containing this fix.

For those technically interested and for historical purposes, upgrading the app from v5 to v6 of flutter_inappwebview was the fix. Using new hybrid composition breaks BackdropFilter, so the blur has to be replaced, but fixes the black screen issue.

This issue did not exist and was not noticable before I upgraded to Android 14.

@Cephian
Copy link
Author

Cephian commented Oct 5, 2023

It works flawlessly! Thanks for being so responsive and for creating this project. I've made a Kohi donation (and everyone else reading this should too).

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