优化:bark推送新增标题模板、时效性、声音、角标、链接设置项(兼容旧的配置)

This commit is contained in:
pppscn 2022-01-28 20:20:24 +08:00
parent 8f1af5afc0
commit d0d1204e2e

View File

@ -30,9 +30,9 @@ public class BarkSettingVo implements Serializable {
}
public int getLevelId() {
if (level.equals("timeSensitive")) {
if (level != null && level.equals("timeSensitive")) {
return R.id.btnBarkLevelTimeSensitive;
} else if (level.equals("passive")) {
} else if (level != null && level.equals("passive")) {
return R.id.btnBarkLevelPassive;
} else {
return R.id.btnBarkLevelActive;