0xpr03 / VocableTrainer-Android

Vocabulary Trainer for Android - not lang specific
Apache License 2.0
29 stars 10 forks source link

Validation fails in double screen rotation (EditorActivity). #76

Open davirec opened 2 years ago

davirec commented 2 years ago

This issue has relation with #75

When executing this sequence of actions, there is a loss of data in the activity EditorActivity

Issue 01: IntentEvent(intent='am start vocabletrainer.heinecke.aron.vocabletrainer/vocabletrainer.heinecke.aron.vocabletrainer.activity.MainActivity')
TouchEvent [[14,1460],[706,1544]] KeyEvent(name=BACK) TouchEvent [[14,460],[706,544]] TouchEvent [[0,54],[98,152]] TouchEvent [[14,362],[706,446]] TouchEvent [[580,1418],[678,1516]] TouchEvent [[508,968],[662,1052]] FillUIEvent Cap01: capture screen properties before rotation DoubleRotationEvent Cap02: capture screen properties after rotation

Cap01 != Cap02 (Return to a previous state)

Before rotation:

After rotation:

Issue 02: IntentEvent(intent='am start vocabletrainer.heinecke.aron.vocabletrainer/vocabletrainer.heinecke.aron.vocabletrainer.activity.MainActivity')
TouchEvent [[14,362],[706,446]] TouchEvent [[580,1418],[678,1516]] SetTextEvent [[71,863],[648,961]] ScrollEvent(direction=FULL_RIGHT)
TouchEvent [[508,968],[662,1052]] TouchEvent [[552,61],[636,145]] LongTouchEvent(duration=2000) [[71,667],[648,765]] LongTouchEvent(duration=2000) [[71,765],[648,863]] KeyEvent(name=BACK) ScrollEvent(direction=FULL_LEFT)
TouchEvent [[636,61],[720,145]] FillUIEvent Cap01: capture screen properties before rotation DoubleRotationEvent Cap02: capture screen properties after rotation

Cap01 != Cap02 (message fragment disappears)

Before rotation:

After rotation:

Issue 03: SetTextEvent [[71,542],[648,640]] TouchEvent [[71,444],[606,542]] LongTouchEvent(duration=2000) [[71,444],[606,542]] TouchEvent [[71,542],[648,640]] SetTextEvent [[71,542],[648,640]] LongTouchEvent(duration=2000) [[71,640],[648,738]] SetTextEvent [[71,640],[648,738]] TouchEvent [[606,500],[648,542]] TouchEvent [[508,794],[662,878]] TouchEvent [[71,346],[606,444]] LongTouchEvent(duration=2000) [[71,542],[648,640]] TouchEvent [[606,402],[648,444]] TouchEvent [[354,794],[508,878]] FillUIEvent Cap01: capture screen properties before rotation DoubleRotationEvent Cap02: capture screen properties after rotation

Cap01 != Cap02 (order in table changes)

Before rotation:

After rotation:

davirec commented 2 years ago

We found similar flaws in activities:

ExImportActivity

MainActivity

Note: