[android] Add explicit check for PointChooserMode #6437

Merged
root merged 1 commit from rt-android-editor-position-chooser into master 2023-11-06 06:48:00 +00:00
Owner

It is not clear how to reproduce this bug. Add a workaround and a log entry.

See #3945
See #3593

It is not clear how to reproduce this bug. Add a workaround and a log entry. See #3945 See #3593
biodranik commented 2023-11-01 23:44:34 +00:00 (Migrated from github.com)

Let's explicitly crash here to find and fix the bug reason.

Let's explicitly crash here to find and fix the bug reason.
Author
Owner

It is pretty obvious that in #3945 the app started with Framework.nativeIsInChoosePositionMode() && mPointChooserMode == PointChooserMode.NONE. I don't know why. This state is managed somewhere in the native editor.

It is pretty obvious that in #3945 the app started with `Framework.nativeIsInChoosePositionMode() && mPointChooserMode == PointChooserMode.NONE`. I don't know why. This state is managed somewhere in the native editor.
Author
Owner

changed title from [android] Add {-a workaround for a crash in Editor-} to [android] Add {+explicit check for PointChooserMode+}

changed title from **[android] Add {-a workaround for a crash in Editor-}** to **[android] Add {+explicit check for PointChooserMode+}**
Author
Owner

requested review from @biodranik

requested review from `@biodranik`
biodranik commented 2023-11-05 19:01:41 +00:00 (Migrated from github.com)

Review: Approved

Is it the best way to debug it?

**Review:** Approved Is it the best way to debug it?
biodranik commented 2023-11-05 19:01:41 +00:00 (Migrated from github.com)

approved this merge request

approved this merge request
rtsisyk closed this pull request 2023-11-06 06:48:00 +00:00
rtsisyk merged commit into master 2023-11-06 06:48:00 +00:00
Author
Owner

Is it the best way to debug it?

Let's try to reproduce first.

> Is it the best way to debug it? Let's try to reproduce first.
Member

@rtsisyk
I'm able to reproduce on latest beta and debug version from master :)

  • Open bottom menu
  • Add new place on map
  • Rotate device-> crash

mPointChooserMode is reset when we rotate the device?

`@rtsisyk` I'm able to reproduce on latest beta and debug version from master :) - Open bottom menu - Add new place on map - Rotate device-> crash mPointChooserMode is reset when we rotate the device?
Author
Owner

mentioned in merge request !6586

mentioned in merge request !6586
biodranik (Migrated from github.com) approved these changes 2025-03-22 17:47:16 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: organicmaps/organicmaps#6437
No description provided.