Code example for ListFragment

Methods: getListView, onListItemClick

0
		savedSearchView.setAdapter(savedSearchAdapter);
	} 
 
	@Override 
	public void onListItemClick(ListView l, View v, int position, long id) {
		super.onListItemClick(l, v, position, id);
		 
		Object adapter = getListView().getAdapter();
		Cursor c = null;
		 
		if(adapter instanceof SavedResultCursorAdapter) {
			c = (Cursor) ((SavedResultCursorAdapter) adapter).getItem(position);
			String query = c.getString(c.getColumnIndex("query"));
			if(query != null){
				BusProvider.getInstance().post(new SavedSearchItemSelectedEvent(query));				
			} 
		} 
	} 
	 
	@Subscribe 
	public void onSyncAdapters(SyncAdaptersEvent event) {