sdex / ActivityManager

Launch any application activity
Apache License 2.0
604 stars 34 forks source link

Data loss while using the app (dialog disappears on-screen rotation) #5

Closed davirec closed 2 years ago

davirec commented 2 years ago

When I perform these sequences of events, the dialog disappears on-screen rotation:

  1. Go to the Main activity

  2. Tap in Settings (gear button icon)

  3. Tap in Theme

  4. A fragment similar to this will appear: Before rotation:

  5. Force the pause from the activity and then return to the activity (double rotation). Note that the fragment disappears and goes back to the main activity.

Note: the pause from activity can be performed in several ways. We suggest using a double rotation (starts in portrait, goes to landscape, and back to portrait) with this function previously enabled in the smartphone.

The expected behavior is the return to the previous state with the fragments of the previous image.

However, the fragment disappears and goes back to the main activity.

After rotation:

Device:

sdex commented 2 years ago

Fixed in https://github.com/sdex/ActivityManager/pull/12