ReadYouApp / ReadYouApp/ReadYou

AlertDialog disappears on system-initiated process death

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

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
7.5k
Forks
330
PR merge metrics
No merged PRs in 30d

Description

1. Environment

  • Device: [Xiaomi Redmi Note 8 Pro]
  • OS: [Android 14]
  • APP: [0.9.12]

Note: not fixed in 0.10.1

2. Describe the bug

This article explains why it matters: Save UI State - Android Developers

Problem: when I perform this sequence of events the AlertDialog disappears:

  1. Touch the add icon at the top right
  2. background/foreground app with "Don't Keep Activities" option enabled

Possible solution:

app/src/main/java/me/ash/reader/ui/page/home/feeds/subscribe/SubscribeViewModel.kt:38 move state holder from ViewModel to the Composable using rememberSaveable

Screenshots:

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start with app/src/main/java/me/ash/reader/ui/page/home/feeds/subscribe/SubscribeViewModel.kt at line 38 and review the linked Android guidance on saving UI state. Reproduce the flow with “Don’t Keep Activities” enabled, then investigate the suggested state-holder change. Done means the AlertDialog remains visible after system-initiated process death and the relevant behavior is verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.