Fixed a bug with saving filterMode between rotations

pull/14/head
Sam Bosley 12 years ago
parent 9fc1efe45a
commit 8adb80cee3

@ -77,6 +77,7 @@ public class TaskListActivity extends AstridActivity implements MainMenuListener
public static final String OPEN_TASK = "openTask"; //$NON-NLS-1$ public static final String OPEN_TASK = "openTask"; //$NON-NLS-1$
private static final String FILTER_MODE = "filterMode"; //$NON-NLS-1$ private static final String FILTER_MODE = "filterMode"; //$NON-NLS-1$
private static final int FILTER_MODE_NORMAL = 0; private static final int FILTER_MODE_NORMAL = 0;
private static final int FILTER_MODE_PEOPLE = 1; private static final int FILTER_MODE_PEOPLE = 1;
private static final int FILTER_MODE_FEATURED = 2; private static final int FILTER_MODE_FEATURED = 2;
@ -261,6 +262,14 @@ public class TaskListActivity extends AstridActivity implements MainMenuListener
} }
} }
@Override
protected Bundle configureIntentAndExtrasWithFilter(Intent intent,
Filter filter) {
Bundle extras = super.configureIntentAndExtrasWithFilter(intent, filter);
getIntent().putExtra(FILTER_MODE, filterMode);
return extras;
}
/** /**
* *
* @param actionBar * @param actionBar

Loading…
Cancel
Save