Bug 1724755 Comment 19 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

[androidx.compose.material.pullrefresh](https://developer.android.com/reference/kotlin/androidx/compose/material/pullrefresh/package-summary) which would use distance data instead of  `MotionEvent`s is an API available for [Compose](https://developer.android.com/jetpack/compose). The app has basic support for this, which I based my RFC on while in production it is using the old xml based layouts and the older [SwipeRefreshLayout](https://developer.android.com/jetpack/androidx/releases/swiperefreshlayout).
With the long term goal for the app being to be migrated to Compose I suggest migrating to compose and [androidx.compose.material.pullrefresh](https://developer.android.com/reference/kotlin/androidx/compose/material/pullrefresh/package-summary) at the same time with migrating to a new distances based API from GeckoView.
If that effort is deemed to take a longer time then we can also implement our own throbber and animate it "manually" based on cached data (distances) from `MotionEvent`s but with not actually sending the `MotionEvent`s to the [SwipeRefreshLayout](https://developer.android.com/jetpack/androidx/releases/swiperefreshlayout) like you suggested. While this doesn't seem to be supprted now in official libraries there may be some 3rd party ones available or we could implement our own.
[androidx.compose.material.pullrefresh](https://developer.android.com/reference/kotlin/androidx/compose/material/pullrefresh/package-summary) which would use distance data instead of  `MotionEvent`s is an API available for [Compose](https://developer.android.com/jetpack/compose). The app has basic support for this, which I based my RFC on while in production it is using the old xml based layouts and the older [SwipeRefreshLayout](https://developer.android.com/jetpack/androidx/releases/swiperefreshlayout).
With the long term goal for the app being to be migrated to Compose I suggest migrating to compose and [androidx.compose.material.pullrefresh](https://developer.android.com/reference/kotlin/androidx/compose/material/pullrefresh/package-summary) at the same time with migrating to a new distances based API from GeckoView.
If that effort is deemed to take a longer time then we can also implement our own throbber and animate it "manually" based on cached data (distances) from `MotionEvent`s but with not actually sending the `MotionEvent`s to the [SwipeRefreshLayout](https://developer.android.com/jetpack/androidx/releases/swiperefreshlayout). While this doesn't seem to be supported now in official libraries there may be some 3rd party ones available or we could implement our own.

Back to Bug 1724755 Comment 19