Code example for ListFragment

Methods: onPause

0
	} 
	 
	@Override 
	public void onPause() { 
		helper.close();
		super.onPause(); 
	} 
 
	@Override 
	public void onListItemClick(ListView list, View view, int position, long id) {
		if (listener != null) listener.onRestaurantSelected(id);
	} 
 
	@Override 
	public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
		inflater.inflate(R.menu.option, menu);
	} 
 
	@Override 
	public boolean onOptionsItemSelected(MenuItem item) {
		if (item.getItemId() == R.id.add) {