将图片中的Default notification sound 改为 Default notification
本界面是AudioProfileSoundSettings extends PreferenceActivity
Notification这个标签的定义
private static final String KEY_NOTIFICATION = "notification_sound";
private AudioProfileRingtonePreference mNotificationPreference;
mNotificationPreference = (AudioProfileRingtonePreference) findPreference(KEY_NOTIFICATION);
mNotificationPreference.setEditId(mEditId);
onCreate()方法中的
addPreferencesFromResource(R.xml.audio_profile_sound_settings);
在xml文件中找到相关文件
<com.sprd.audioprofile.AudioProfileRingtonePreference
android:key="notification_sound"
android:title="@string/notification_sound_title"
android:summary="@string/notification_sound_summary"
android:dialogTitle="@string/notification_sound_dialog_title"
android:persistent="false"
android:ringtoneType="notification" />
title为@string/notification_sound_title,修改后没有变化
在有些版本里AudioProfile 在Settings目录中,一般对AudioProfile的修改需要编译Settings才能看到效果,在Settings的res文件夹下,可以看到相关的字符串资源
<string name="notification_sound_title">Default notification sound</string>
将文件复制到相应的overlay中,修改为Default notification后成功显示。
因此对AudioProfile的修改编译不成功时,可以尝试Settings。
最后经过编译Settings会编译情景模式模块。
Settings的push路径 : system/priv-app/Settings