use of com.androidquery.simplefeed.data.FeedItem in project simplefacebook by androidquery.
the class FeedFragment method updated.
public void updated(String str) {
if (str != null) {
if (FeedMode.WALL.equals(AppUtility.getDefaultMode())) {
if (items.getCount() > 0) {
FeedItem old = (FeedItem) items.getItem(0);
FeedItem item = new FeedItem();
item.setMessage(str);
item.setTime(System.currentTimeMillis());
item.setFrom(old.getFrom());
items.add(0, item);
} else {
refresh();
}
} else {
refresh();
}
}
}
use of com.androidquery.simplefeed.data.FeedItem in project simplefacebook by androidquery.
the class FeedFragment method itemClicked.
public void itemClicked(AdapterView<?> parent, View view, int pos, long id) {
FeedItem item = getItem(view);
if (item == null)
return;
actionItem = item;
showContentDetail(item, false);
}
Aggregations