Code example for Method

Methods: Method.invoke, getParameterTypes

0
			if(password.length() == 0)
				val = null;
			else 
				val = makeSRTPKey(password);
			logger.info("Setting SRTP master key/salt: " + val);
		} 
		return super.setBeanValue(m, p, val);
	} 
	 
	/** 
	 * We intercept this method so that we can hide the key from the prefs screen 
	 */ 
	@Override 
	protected void updatePreferenceSummary(Preference p, String value) {
		String _value = value;
		if(p.getKey().equals(KEY_FIELD)) {
			if(_value == null || _value.length() == 0)
				_value = getString(R.string.ptt_channel_key_not_set);
			else 
				_value = getString(R.string.ptt_channel_key_set);
		} 
		p.setSummary(_value);
	}