TwidereProject / Twidere-Android

http://twidere.com
2.75k stars 377 forks source link

Text/Pics infinite bleeding when scrolling the timeline #1350

Open ceptonit opened 4 years ago

ceptonit commented 4 years ago

Just started using Twidere and I'm encountering a bug I've never seen in any app, it seems to be a graphical bug. I open an image or video in a tweet and after closing it, scrolling the timeline duplicates text/pics all over the place. It's a bit hard to explain, so here's a short screen record: https://streamable.com/vobyd5

I don't get any errors in the logcat, just 4 consecutive warnings, not sure if it's related:

riotaku.twider
Accessing hidden field Landroid/widget/TextView;->mCursorDrawableRes:I (greylist-max-p, reflection, denied)
riotaku.twider
Accessing hidden field Landroid/widget/TextView;->mTextSelectHandleLeftRes:I (greylist-max-p, reflection, denied)
riotaku.twider
Accessing hidden field Landroid/widget/TextView;->mCursorDrawableRes:I (greylist-max-p, reflection, denied)
riotaku.twider
Accessing hidden field Landroid/widget/TextView;->mTextSelectHandleLeftRes:I (greylist-max-p, reflection, denied)

Expected behavior

Scrolling through the timeline shouldn't smear graphics/text after closing media embedded in a tweet

Actual behavior

Graphic/text bleeds everywhere when scrolling after closing media embedded in a tweet

Steps to reproduce

View a picture/video in a tweet, close it, and scroll through your timeline

Extra info

When the bleeding happens, the left slide menu seems un-affected. Only the timeline itself is having the issue.

Android version: 10

Network type:

App version: 4.1.4

Build variant:

Micro-blogging service:

App settings:

vimenepa commented 4 years ago

I had the same issue. I think I addressed it by changing the default settings for "Background" to pure white/black. The issue hasn't repeated itself for me since then.

ceptonit commented 4 years ago

I had the same issue. I think I addressed it by changing the default settings for "Background" to pure white/black. The issue hasn't repeated itself for me since then.

Thanks a lot, I actually never saw that setting before. After founding it, none of the options were actually selected. Selected "Pure white/black" as you suggested and it's all good now. Thanks again!

Also I found out that this bug also only occurs if I swipe down to close a media. Instead, if I actually swipe left to go back (Android 10 gestures) to the timeline, the bug doesn't happen.

vimenepa commented 4 years ago

You're very welcome! And yep, I saw the same issues - it only showed up after I clicked on some media and then closed it by swiping down.

How would you get it to stop? Would you close the whole app and open it again or would you refresh?

ceptonit commented 4 years ago

I would switch to my phone's "Recent Apps" view and swipe up Twidere to close it and then re-open Twidere. Was a real pain, that's why I'm so glad you came up with a permanent fix :+1: