use of com.androidquery.simplefeed.data.Entity in project simplefacebook by androidquery.
the class PostActivity method init.
@Override
protected void init(Bundle state) {
Intent intent = getIntent();
String message = "";
photo = (File) intent.getSerializableExtra("photo");
message = intent.getStringExtra("message");
if (state != null) {
if (photo == null) {
photo = (File) state.getSerializable("photo");
}
if (message == null) {
message = state.getString("message");
}
location = state.getParcelable("location");
place = (Place) state.getSerializable("place");
tags = (List<Entity>) state.getSerializable("tags");
}
entity = (Entity) intent.getSerializableExtra("entity");
item = (FeedItem) intent.getSerializableExtra("item");
initView(message);
albumCheck(0);
}
use of com.androidquery.simplefeed.data.Entity in project simplefacebook by androidquery.
the class FriendsActivity method doneClicked.
public void doneClicked(View view) {
Intent result = new Intent();
ArrayList<Entity> selects = getSelected();
result.putExtra("selected", selects);
AQUtility.debug("on stop", selects);
setResult(RESULT_OK, result);
finish();
}
use of com.androidquery.simplefeed.data.Entity in project simplefacebook by androidquery.
the class FriendsActivity method itemClicked.
public void itemClicked(AdapterView<?> parent, View view, int pos, long id) {
Entity entity = getItem(view);
if (entity == null)
return;
if (!selectable) {
FeedActivity.start(this, entity);
} else {
//CheckBox box = (CheckBox) view;
PQuery aq = aq2.recycle(view);
aq.id(R.id.checkbox_select);
boolean checked = aq.isChecked();
aq.checked(!checked);
entity.setChecked(!checked);
}
}
use of com.androidquery.simplefeed.data.Entity in project simplefacebook by androidquery.
the class MenuActivity method modeSelected.
public void modeSelected(AdapterView<?> parent, View view, int position, long id) {
FeedMode[] modes = FeedMode.values();
FeedMode item = modes[position];
if (item.equals(currentMode)) {
return;
}
if (FeedMode.NEWS.equals(item) || FeedMode.WALL.equals(item)) {
Entity source = AppUtility.getDefaultSource(item);
FeedActivity.startLaunch(this, source, item);
} else {
startMode(this, item.getHandler());
}
}
use of com.androidquery.simplefeed.data.Entity in project simplefacebook by androidquery.
the class PostActivity method putTags.
private void putTags(Map<String, Object> params, List<Entity> tags) {
if (tags == null || tags.size() == 0)
return;
List<String> ids = new ArrayList<String>();
for (Entity tag : tags) {
ids.add(tag.getId());
}
String value = TextUtils.join(",", ids);
AQUtility.debug("tags", value);
params.put("tags", value);
}
Aggregations