Ashinch / ReadYou

An Android RSS reader presented in Material You style.
GNU General Public License v3.0
5.11k stars 202 forks source link

AlertDialog disappears on orientation change #842

Open nicolarevelant opened 1 month ago

nicolarevelant commented 1 month ago

1. Environment

Note: not fixed in 0.10.1

2. Describe the bug

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

  1. Touch the settings icon at the top left
  2. Touch Accounts
  3. Open an account
  4. Touch one of the following:
    1. Display, then Name
    2. Syncing, then Sync
    3. Syncing, then Keep achieved articles
    4. Syncing, then Export as OPML
  5. Rotate the device twice

or:

  1. Touch the settings icon at the top left
  2. Touch Color & style
  3. Touch Basic fonts
  4. Rotate the device twice

or:

  1. Touch the settings icon at the top left
  2. Touch Color & style
  3. Touch Feeds Page
  4. Touch one of the following:
    1. TopBar, then Tonal elevation
    2. Group List, then Tonal elevation
    3. Filter Bar, then Style
    4. Filter Bar, then Horizontal padding
    5. Filter Bar, then Tonal elevation
  5. Rotate the device twice

or:

  1. Touch the settings icon at the top left
  2. Touch Color & style
  3. Touch Flow Page
  4. Touch one of the following:
    1. TopBar, then Tonal elevation
    2. Article List, then Grey out articles
    3. Article List, then Tonal elevation
    4. Filter Bar, then Style
    5. Filter Bar, then Horizontal padding
    6. Filter Bar, then Tonal elevation
  5. Rotate the device twice

or:

  1. Touch the settings icon at the top left
  2. Touch Color & style
  3. Touch Reading Page
  4. Touch one of the following:
    1. Reading fonts
    2. Tonal elevation
    3. Title, then Alignment
    4. Text, then Font Size
    5. Text, then Letter spacing
    6. Text, then Horizontal padding
    7. Text, then Alignment
    8. Images, then Rounded corners
    9. Images, then Horizontal padding
  5. Rotate the device twice

Possible solution:

use rememberSaveable instead of remember in the following occurrencies:

Screenshots: