raatmarien/chibe

Data loss while using the app (the fragment disappears after on-screen rotation)

Opened this issue · 1 comments

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

  1. Go to the Main activity
  2. Tap in Base vibration pattern
  3. Tap in Custom
  4. A fragment similar to this will appear:

Before rotation:

  1. Force the pause from the activity and then return to the activity (double rotation). Note that the fragment disappears. 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.

After rotation:

Device:

  • Device: Moto G30 with OS: Android 11
  • Version: 1.2.1
  • Device language: English

In this activity, we found other bugs: change to the previous fragment, change from pm to am by changing the message box and change from pm to am.

Before and after double screen rotation
Before and after double screen rotation
Before and after double screen rotation

Note:

  • Double screen rotation: It is executed twice to reach a state that should be exactly the same as the screen before if no data loss occurred.
  • A data loss problem occurs when data is accidentally deleted or state variables are accidentally assigned with default or initial values.