Automattic / Automattic/pocket-casts-android

Use onBackPressedDispatcher instead of deprecated onBackPressed methods

Open
#313 0 comments 0 reactions 0 assignees View on GitHub
[Type] Tech Debt
Dominant language
Kotlin
Stars
2.8k
Forks
308
Avg merge
1d 10h
Merged PRs (30d)
187

Description

Many of the `onBackPressed` methods that we're using have been deprecated ([relevant PR](https://github.com/Automattic/pocket-casts-android/pull/312)). Let's switch over to using the new `onBackPressedDispatcher`.

Contributor guide

Open the contributing guide

Research direction

Start by reading the issue’s relevant PR, #312, and identify the deprecated onBackPressed methods it discusses. Then locate the project’s remaining uses and check the AndroidX guidance for onBackPressedDispatcher; done means the deprecated methods in scope have been replaced.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile-dev
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.