Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix editor tools bugs #796

Merged
merged 2 commits into from
Jun 9, 2014
Merged

Conversation

m4gr3d
Copy link
Member

@m4gr3d m4gr3d commented Jun 9, 2014

This fixes a couple of bugs, including crashing bugs, in the editor activity.

Changes log:

  • Bug fixes for the editor tools:
    • saved last selected editor tool so it can be retrieved after the fragment is recreated (i.e: after orientation switch). Before the selected tool would reset to the marker tool on orientation switch.
    • exported commonly used code into functions.
    • updated the editor tools view to reflect the selected tool after orientation switch.
    • updated the editor activity to update the state of the tools on resume.
  • Bug fixes for the editor tools item detail window:
    • updated editor activity so that reference to a displayed item detail window is retained across activity lifecycle events. Before that update, dismissing an item detail window after a lifecycle event (i.e: orientation switch) would leave the mission item in a selected state (instead of deselecting it), among other possible issues.
    • updated the mission detail fragment to notify its listener/parent when it's being dismissed, when shown as a dialog.

m4gr3d added 2 commits June 8, 2014 22:05
- saved last selected editor tool so it can be retrieved after the fragment is recreated (i.e: after orientation switch). Before the selected tool would reset to the marker tool on orientation switch.
- exported commonly used code into functions.
- updated the editor tools view to reflect the selected tool after orientation switch.
- updated the editor activity to update the state of the tools on resume.
- updated editor activity so that reference to a displayed item detail window is retained across activity lifecycle events. Before that update, dismissing an item detail window after a lifecycle event (i.e: orientation switch) would leave the mission item in a selected state (instead of deselecting it), among other possible issues.

- updated the mission detail fragment to notify its listener/parent when it's being dismissed, when shown as a dialog.
arthurbenemann added a commit that referenced this pull request Jun 9, 2014
@arthurbenemann arthurbenemann merged commit ad42fad into DroidPlanner:master Jun 9, 2014
@m4gr3d m4gr3d deleted the fix_editor_tools branch June 10, 2014 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants