private void onSharedPreferenceAudioFormatChanged()
{
try
{
Preference preferencesAudioFormat = findPreference("preferences_audio_format");
if (preferencesAudioFormat instanceof ListPreference)
{
ListPreference listPreferencesAudioFormat = (ListPreference) preferencesAudioFormat;
preferencesAudioFormatValue = (String) listPreferencesAudioFormat.getEntry();
preferencesAudioFormat.setSummary(getString(R.string.preferences_audio_format_summary) + " " + listPreferencesAudioFormat.getEntry());
Log.d("Preferences", "onSharedPreferenceAudioFormatChanged : " + getApplicationContext().getString(R.string.log_preferences_audio_format_changed) + " : " + listPreferencesAudioFormat.getEntry());
if(isInit == true)
{
databaseManager.insertLog(getApplicationContext(), "" + getApplicationContext().getString(R.string.log_preferences_audio_format_changed) + " : " + listPreferencesAudioFormat.getEntry(), new Date().getTime(), 3, false);
}
}
}
catch (Exception e)
{
Log.w("Preferences", "onSharedPreferenceAudioFormatChanged : " + getApplicationContext().getString(R.string.log_preferences_error_audio_format_changed) + " : " + e);
if(isInit == true)
{
databaseManager.insertLog(getApplicationContext(), "" + getApplicationContext().getString(R.string.log_preferences_error_audio_format_changed), new Date().getTime(), 2, false);
}
}
}
Preferences.java 文件源码
java
阅读 32
收藏 0
点赞 0
评论 0
项目:AC2RD
作者:
评论列表
文章目录