Update AndroidX Activity to version 1.9.1
Categories
(Firefox for Android :: General, task, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox131 | --- | fixed |
People
(Reporter: RyanVM, Assigned: RyanVM)
References
Details
Attachments
(6 files)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
Assignee | ||
Comment 1•2 years ago
|
||
This is currently blocked on build failures:
fenix/app/src/main/java/org/mozilla/fenix/HomeActivity.kt:749: Error: Overriding method should call super.onBackPressed [MissingSuperCall]
final override fun onBackPressed() {
~~~~~~~~~~~~~
Explanation for issues of type "MissingSuperCall":
Some methods, such as View#onDetachedFromWindow, require that you also call
the super implementation as part of your method.
Updated•2 years ago
|
Updated•2 years ago
|
Assignee | ||
Comment 2•1 years ago
|
||
v1.8.1 changelog: https://developer.android.com/jetpack/androidx/releases/activity#1.8.1
Assignee | ||
Comment 3•1 year ago
|
||
v1.8.2 changelog: https://developer.android.com/jetpack/androidx/releases/activity#1.8.2
Assignee | ||
Comment 4•1 year ago
|
||
v1.9.0 changelog: https://developer.android.com/jetpack/androidx/releases/activity#1.9.0
Assignee | ||
Comment 5•9 months ago
|
||
v1.9.1 changelog: https://developer.android.com/jetpack/androidx/releases/activity#1.9.1
Comment 6•9 months ago
•
|
||
Regarding the build failure it seems like onBackPressed is deprecated and we should use either
OnBackPressedDispatcher with OnBackPressedCallback that would get us backwards compatibility with Android API level 13+
OnBackPressedDispatcher with registerOnBackInvokedCallback with Android API level 33+ (in combination with the OnBackPressedCallback for lower versions).
The change does seem a bit (more) bigger 😕
Seeing that this hasn't been updated in >10 months and we're preparing to support Android 15 we should probably also migrate to the new API as part of that Android 15 effort.
Assignee | ||
Comment 7•8 months ago
|
||
Assignee | ||
Comment 8•8 months ago
|
||
Assignee | ||
Comment 9•8 months ago
|
||
Assignee | ||
Comment 10•8 months ago
|
||
Assignee | ||
Comment 11•8 months ago
|
||
Assignee | ||
Comment 12•8 months ago
|
||
Assignee | ||
Comment 13•8 months ago
|
||
Updated•8 months ago
|
Comment 14•8 months ago
|
||
![]() |
||
Comment 15•8 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/dda549ed3150
https://hg.mozilla.org/mozilla-central/rev/54c373d56a0b
https://hg.mozilla.org/mozilla-central/rev/d78b4758bd00
https://hg.mozilla.org/mozilla-central/rev/f3d15e1c3576
https://hg.mozilla.org/mozilla-central/rev/cd96e32d5251
https://hg.mozilla.org/mozilla-central/rev/bdb714d9a12f
Description
•