Closed Bug 1710708 Opened 3 years ago Closed 2 years ago

Overscroll is not displayed on Android 10 and later

Categories

(GeckoView :: General, defect, P3)

Unspecified
All

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1707959

People

(Reporter: agi, Unassigned)

References

(Depends on 1 open bug)

Details

(Whiteboard: [geckoview:m93?] [geckoview:2023?])

Not sure if this is a bug for earlier Android versions, but on 10 and later overscroll is not displayed. From local debugging it appears that this https://searchfox.org/mozilla-central/rev/6b099d836c882bc155d2ef285e0ad0ab9f5038f6/mobile/android/geckoview/src/main/java/org/mozilla/geckoview/OverscrollEdgeEffect.java#62 is throwing and being silently ignored which might be the cause of this.

Reflection is likely failing because of the restriction added in Android 9: https://developer.android.com/guide/app-compatibility/restrictions-non-sdk-interfaces

There is a new API now, EdgeEffect.setBlendMode https://developer.android.com/reference/android/widget/EdgeEffect#setBlendMode(android.graphics.BlendMode) which looks like could be used in place of reflection on newer Android versions.

Whiteboard: [geckoview:m91?]
See Also: → 1707959

Emily to talk to Vesta about priorities for this work

Severity: -- → S3
Priority: -- → P2
Flags: needinfo?(etoop)
Flags: needinfo?(etoop)
Whiteboard: [geckoview:m91?] → [geckoview:m92?]
Whiteboard: [geckoview:m92?] → [geckoview:m93?]

This (or rather the situation described in bug 1738691) happens a lot more often for me on Android 12 :(

Priority: P2 → P3
Whiteboard: [geckoview:m93?] → [geckoview:m93?] [geckoview:2023?]
See Also: → 1781821
Depends on: 1785786

I think that https://github.com/mozilla-mobile/fenix/issues/25592 and https://github.com/mozilla-mobile/fenix/issues/22234 are another issue. No method in AndroidContentController whether pan is end or touch is released.

This is rendering issue of overscroll. Why does not EdgeEffect.draw draws overscroll Semicircle...

My Android 11 device and Android 11 emulator image draw overscoll animation by bug 1707959 when disabling GPU process (bug 1785786).

Also, Android 12+ (Target API 31+) will use stretch animation instead of glow drawing.

Depends on: 1786500

After landing bug 1785786, Android 10 (Emulator image) and Android 11 (Xiaomi Redmi 9T) works glow drawing animation for overscoll. By bug 1707959, this is fixed.

Also, I filed new issue for Android 12+ as bug 1786452.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → DUPLICATE
See Also: → 1786452
You need to log in before you can comment on or make changes to this bug.