diff --git a/astrid/plugin-src/com/todoroo/astrid/actfm/TagSettingsActivity.java b/astrid/plugin-src/com/todoroo/astrid/actfm/TagSettingsActivity.java index d994d2bd6..e1e67b5bb 100644 --- a/astrid/plugin-src/com/todoroo/astrid/actfm/TagSettingsActivity.java +++ b/astrid/plugin-src/com/todoroo/astrid/actfm/TagSettingsActivity.java @@ -104,7 +104,6 @@ public class TagSettingsActivity extends SherlockFragmentActivity { @Autowired TagMetadataDao tagMetadataDao; - private PeopleContainer tagMembers; private AsyncImageView picture; private EditText tagName; private EditText tagDescription; @@ -213,7 +212,6 @@ public class TagSettingsActivity extends SherlockFragmentActivity { }); } - tagMembers = (PeopleContainer) findViewById(R.id.members_container); tagName = (EditText) findViewById(R.id.tag_name); tagDescription = (EditText) findViewById(R.id.tag_description); picture = (AsyncImageView) findViewById(R.id.picture); @@ -314,33 +312,14 @@ public class TagSettingsActivity extends SherlockFragmentActivity { } } - JSONArray members; - try { - members = tagMembers.parseSharedWithAndTags(this, true).optJSONArray("p"); - } catch (JSONException e) { - exceptionService.displayAndReportError(this, "save-people", e); - return; - } catch (ParseSharedException e) { - if(e.view != null) { - e.view.setTextColor(Color.RED); - e.view.requestFocus(); - } - DialogUtilities.okDialog(this, e.message, null); - return; - } - if (members == null) { - members = new JSONArray(); - } + JSONArray members = new JSONArray(); if(members.length() > 0 && !actFmPreferenceService.isLoggedIn()) { if(newName.length() > 0 && oldName.length() == 0) { tagDataService.save(tagData); } - tagMembers.removeAllViews(); - tagMembers.addPerson("", "", false); //$NON-NLS-1$ return; - } int oldMemberCount = tagData.getValue(TagData.MEMBER_COUNT); @@ -436,7 +415,6 @@ public class TagSettingsActivity extends SherlockFragmentActivity { @SuppressWarnings("nls") private void updateMembers(String peopleJson, String tagUuid) { - tagMembers.removeAllViews(); JSONArray people = null; try { people = new JSONArray(peopleJson); @@ -499,25 +477,6 @@ public class TagSettingsActivity extends SherlockFragmentActivity { } } - - if (people != null) { - try { - tagMembers.fromJSONArray(people); - } catch (JSONException e) { - Log.e("tag-settings", "Error parsing tag members: " + people, e); - } - } - - tagMembers.addPerson("", "", false); //$NON-NLS-1$ - } - - @Override - protected void onSaveInstanceState(Bundle outState) { - super.onSaveInstanceState(outState); - if(tagMembers.getChildCount() > 1) { - JSONArray members = tagMembers.toJSONArray(); - outState.putString(MEMBERS_IN_PROGRESS, members.toString()); - } } @Override diff --git a/astrid/res/layout/tag_settings_activity.xml b/astrid/res/layout/tag_settings_activity.xml index 45687377e..8d4c9f715 100644 --- a/astrid/res/layout/tag_settings_activity.xml +++ b/astrid/res/layout/tag_settings_activity.xml @@ -102,31 +102,6 @@ - - - - - -