Commit 02051ea4 authored by fallenstardust's avatar fallenstardust

实时开关通知栏显示

parent 96a65c74
......@@ -189,8 +189,9 @@ public class SettingFragment extends PreferenceFragmentPlus {
//开关决斗助手
if (preference.getKey().equals(PREF_START_SERVICEDUELASSISTANT)) {
getActivity().startService(new Intent(getContext(), ServiceDuelAssistant.class));
}else{
getActivity().stopService(new Intent(getContext(), ServiceDuelAssistant.class));
if (!checkBoxPreference.isChecked()) {
getActivity().stopService(new Intent(getContext(), ServiceDuelAssistant.class));
}
}
//如果是音效开关
if (preference.getKey().equals(PREF_SOUND_EFFECT)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment