BackHandler in DashboardScreen

Open
#191 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Refactor
Clarity
Needs clarification
Activity status
Stale
Tech stack
android, kotlin
Domain
mobile

Research direction

Start with DashboardScreen and the existing BackPressHandledArea, onPreviewKeyEvent, and Key.back handling. Compare that behavior with the standard BackHandler API and determine whether Compose or Android TV input handling explains the difference. Done means documenting the reason and defining a justified replacement scope.

Written by the indexing model from the issue text.

Description

Why can't we use a standard BackHandler {} in the DashboardScreen instead of the hacky "BackPressHandledArea" where you catch the Key.back in the onPreviewKeyEvent ?

Is it a compose issue ?

Dominant language
Kotlin
Stars
1.3k
Forks
400
Avg merge
9d 10h
Merged PRs (30d)
2

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from android/tv-samples

All issues in android/tv-samples

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.