4DvAnCeBoY / foursquared

Automatically exported from code.google.com/p/foursquared
Apache License 2.0
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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