Code example for DataSetObserver

Methods: onChanged

0
    } 
     
    public void fetchTweets() { 
    	mentions = d.getDMs();
		if(observedby != null) {
			observedby.onChanged();
		}		 
		ThumbnailAdapter ta = ((Timeline)owner).getDMsTA();
		if(ta != null) ta.notifyDataSetChanged();
    } 
     
    private DBDirectMessage getStatus(long status_id) {
    	if(statusCache.containsKey(status_id)) {
    		return statusCache.get(status_id);
    	} 
    	DBDirectMessage dbs = d.getDM(status_id);
     	if(dbs != null) {
     		statusCache.put(status_id, dbs);
     	} 
        return dbs;
    }