Closed Bug 1857082 Opened 2 years ago Closed 8 months ago

Update AndroidX Activity to version 1.9.1

Categories

(Firefox for Android :: General, task, P2)

All
Android
task

Tracking

()

RESOLVED FIXED
131 Branch
Tracking Status
firefox131 --- fixed

People

(Reporter: RyanVM, Assigned: RyanVM)

References

Details

Attachments

(6 files)

Blocks: 1857534

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.
Severity: -- → N/A
Flags: needinfo?(ryanvm)
Priority: -- → P2
Flags: needinfo?(ryanvm)
Summary: Update AndroidX Activity to version 1.8.0 → Update AndroidX Activity to version 1.8.1
Summary: Update AndroidX Activity to version 1.8.1 → Update AndroidX Activity to version 1.8.2
Summary: Update AndroidX Activity to version 1.8.2 → Update AndroidX Activity to version 1.9.0
Blocks: 1894841
Summary: Update AndroidX Activity to version 1.9.0 → Update AndroidX Activity to version 1.9.1

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: nobody → ryanvm
Status: NEW → ASSIGNED
Pushed by rvandermeulen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/dda549ed3150 Update AndroidX Activity to version 1.9.1. r=android-reviewers,mcarare https://hg.mozilla.org/integration/autoland/rev/54c373d56a0b Add suppressions for deprecated override warnings. r=android-reviewers,mcarare https://hg.mozilla.org/integration/autoland/rev/d78b4758bd00 Remove safe call since uriList cannot be null. r=android-reviewers,mcarare https://hg.mozilla.org/integration/autoland/rev/f3d15e1c3576 Update onNewIntent override to account for intent nullability changes. r=android-reviewers,mcarare https://hg.mozilla.org/integration/autoland/rev/cd96e32d5251 Suppress warning for missing onBackPressed() super call. r=android-reviewers,mcarare https://hg.mozilla.org/integration/autoland/rev/bdb714d9a12f Suppress parameter naming warning. r=android-reviewers,mcarare
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: