Code example for ListAdapter

Methods: getItemId

0
				@Override 
				public void onClick( DialogInterface dialog, int which ) 
				{ 
					ShaderListPreference.saveShader( 
						getSharedPreferences(), 
						adapter.getItemId( which ) ); 
 
					ShaderListPreference.this.onClick( 
						dialog, 
						DialogInterface.BUTTON_POSITIVE ); 
 
					dialog.dismiss(); 
				} 
			} ); 
 
		builder.setPositiveButton( null, null ); 
	} 
 
	@Override 
	protected void onDialogClosed( boolean positiveResult ) 
	{