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

navigate up while adding tree crashes app #299

Open
RobinIsTheBird opened this issue Jan 5, 2017 · 1 comment
Open

navigate up while adding tree crashes app #299

RobinIsTheBird opened this issue Jan 5, 2017 · 1 comment

Comments

@RobinIsTheBird
Copy link
Contributor

RobinIsTheBird commented Jan 5, 2017

The sequence I followed was this:

  1. login to the app
  2. add a tree
  3. place a marker
  4. tap the map while the add-tree step 3 form is showing to get into the Move Tree activity
  5. tap the navigate-up OTM logo

I'd expect step 5 to just cancel the add operation, but it crashes the app.

This only happens from within the Move Tree activity.

Here's the stacktrace:

                  Process: org.azavea.otm2.dev, PID: 23581
                  java.lang.IllegalArgumentException: Activity TreeMove does not have a parent activity name specified. (Did you forget to add the android.support.PARENT_ACTIVITY <meta-data>  element in your manifest?)
                      at android.support.v4.app.NavUtils.navigateUpFromSameTask(NavUtils.java:179)
                      at org.azavea.otm.ui.UpEnabledActionBarActivity.onOptionsItemSelected(UpEnabledActionBarActivity.java:19)
                      at android.app.Activity.onMenuItemSelected(Activity.java:3204)
                      at com.android.internal.widget.ActionBarView$2.onClick(ActionBarView.java:169)
                      at android.view.View.performClick(View.java:5697)
                      at android.view.View$PerformClick.run(View.java:22526)
                      at android.os.Handler.handleCallback(Handler.java:739)
                      at android.os.Handler.dispatchMessage(Handler.java:95)
                      at android.os.Looper.loop(Looper.java:158)
                      at android.app.ActivityThread.main(ActivityThread.java:7224)
                      at java.lang.reflect.Method.invoke(Native Method)
                      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
                      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
@maurizi
Copy link
Contributor

maurizi commented Jan 5, 2017

Using the up-navigation from other parts of the add tree process will just take the user back to the main map screen - only the "move tree" mode has this issue.

@dboyer dboyer added the low label Aug 24, 2017
@maurizi maurizi added high and removed low labels Aug 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants