|
|
@ -61,6 +61,7 @@ public class TagSettingsActivity extends Activity {
|
|
|
|
private PeopleContainer tagMembers;
|
|
|
|
private PeopleContainer tagMembers;
|
|
|
|
private AsyncImageView picture;
|
|
|
|
private AsyncImageView picture;
|
|
|
|
private EditText tagName;
|
|
|
|
private EditText tagName;
|
|
|
|
|
|
|
|
private EditText tagDescription;
|
|
|
|
private CheckBox isSilent;
|
|
|
|
private CheckBox isSilent;
|
|
|
|
|
|
|
|
|
|
|
|
boolean isNewTag = false;
|
|
|
|
boolean isNewTag = false;
|
|
|
@ -111,6 +112,7 @@ public class TagSettingsActivity extends Activity {
|
|
|
|
protected void setUpSettingsPage() {
|
|
|
|
protected void setUpSettingsPage() {
|
|
|
|
tagMembers = (PeopleContainer) findViewById(R.id.members_container);
|
|
|
|
tagMembers = (PeopleContainer) findViewById(R.id.members_container);
|
|
|
|
tagName = (EditText) findViewById(R.id.tag_name);
|
|
|
|
tagName = (EditText) findViewById(R.id.tag_name);
|
|
|
|
|
|
|
|
tagDescription = (EditText) findViewById(R.id.tag_description);
|
|
|
|
picture = (AsyncImageView) findViewById(R.id.picture);
|
|
|
|
picture = (AsyncImageView) findViewById(R.id.picture);
|
|
|
|
isSilent = (CheckBox) findViewById(R.id.tag_silenced);
|
|
|
|
isSilent = (CheckBox) findViewById(R.id.tag_silenced);
|
|
|
|
isSilent.setChecked(tagData.getFlag(TagData.FLAGS, TagData.FLAG_SILENT));
|
|
|
|
isSilent.setChecked(tagData.getFlag(TagData.FLAGS, TagData.FLAG_SILENT));
|
|
|
@ -172,6 +174,10 @@ public class TagSettingsActivity extends Activity {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//handles description part
|
|
|
|
|
|
|
|
String newDesc = tagDescription.getText().toString();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tagData.setValue(TagData.TAG_DESCRIPTION, newDesc);
|
|
|
|
|
|
|
|
|
|
|
|
JSONArray members = tagMembers.toJSONArray();
|
|
|
|
JSONArray members = tagMembers.toJSONArray();
|
|
|
|
|
|
|
|
|
|
|
@ -213,6 +219,8 @@ public class TagSettingsActivity extends Activity {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
refreshSettingsPage();
|
|
|
|
refreshSettingsPage();
|
|
|
|
finish();
|
|
|
|
finish();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -263,6 +271,9 @@ public class TagSettingsActivity extends Activity {
|
|
|
|
|
|
|
|
|
|
|
|
String peopleJson = tagData.getValue(TagData.MEMBERS);
|
|
|
|
String peopleJson = tagData.getValue(TagData.MEMBERS);
|
|
|
|
updateMembers(peopleJson);
|
|
|
|
updateMembers(peopleJson);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tagDescription.setText(tagData.getValue(TagData.TAG_DESCRIPTION));
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@SuppressWarnings("nls")
|
|
|
|
@SuppressWarnings("nls")
|
|
|
|