lepinay/foursquared

Propose venue edit - form labels change to Add venue - mode when turning device sideways

Opened this issue · 0 comments

What steps will reproduce the problem?
1. Start making a venue edit proposition on any venue
2. Turn device sideways

What is the expected output? What do you see instead?

Expected: Form labels do not change.
Instead: Form title and submit button text change to Add venue mode.

When new StateHolder is created, labels are set correctly. However, when 
Stateholder is retained, this is not done. Simple fix:

if (retained != null && retained instanceof StateHolder) {
  mStateHolder = (StateHolder) retained;
...
  if (mStateHolder.getVenueBeingEdited() != null)
    setLabelsToEditMode();

Original issue reported on code.google.com by gc.j...@gmail.com on 6 Aug 2010 at 11:46