public void refreshPreferences(Context context){
  if (mEnabledResId != 0) {
    final SharedPreferences prefs=PreferenceManager.getDefaultSharedPreferences(context);
    if (!prefs.getBoolean(context.getString(mEnabledResId),mEnabledDefault)) {
      setTriggerKeys(Collections.<Long>emptySet());
      return;
    }
  }
  setTriggerKeys(KeyComboPreference.getKeyCodesForPreference(context,mAssignedKeysResId));
}

public void refreshPreferences ( Context context ) { if ( mEnabledResId != 0 ) { final SharedPreferences prefs = PreferenceManager . getDefaultSharedPreferences ( context ) ; if ( ! prefs . getBoolean ( context . getString ( mEnabledResId ) , mEnabledDefault ) ) { setTriggerKeys ( Collections . < Long > emptySet ( ) ) ; return ; } } setTriggerKeys ( KeyComboPreference . getKeyCodesForPreference ( context , mAssignedKeysResId ) ) ; }
read key mapping from default preferences for context
