매매 시그널 알림 화면 수정
This commit is contained in:
@@ -82,6 +82,7 @@ public class AppSettingsService {
|
||||
Boolean.parseBoolean(d.get("defaultLogScale").toString()));
|
||||
if (d.containsKey("defaultLayoutId")) s.setDefaultLayoutId((String) d.get("defaultLayoutId"));
|
||||
if (d.containsKey("displayTimezone")) s.setDisplayTimezone((String) d.get("displayTimezone"));
|
||||
if (d.containsKey("chartTimeFormat")) s.setChartTimeFormat(normalizeChartTimeFormat((String) d.get("chartTimeFormat")));
|
||||
if (d.containsKey("mainChartStyle")) s.setMainChartStyleJson(toJson(d.get("mainChartStyle")));
|
||||
if (d.containsKey("syncOptions")) s.setSyncOptionsJson(toJson(d.get("syncOptions")));
|
||||
if (d.containsKey("btAutoPopup")) s.setBtAutoPopup(
|
||||
@@ -188,6 +189,7 @@ public class AppSettingsService {
|
||||
m.put("defaultLogScale", s.getDefaultLogScale() != null ? s.getDefaultLogScale() : false);
|
||||
m.put("defaultLayoutId", s.getDefaultLayoutId() != null ? s.getDefaultLayoutId() : "1");
|
||||
m.put("displayTimezone", s.getDisplayTimezone() != null ? s.getDisplayTimezone() : "Asia/Seoul");
|
||||
m.put("chartTimeFormat", s.getChartTimeFormat() != null ? s.getChartTimeFormat() : "MM-dd HH:mm");
|
||||
m.put("mainChartStyle", parseJson(s.getMainChartStyleJson()));
|
||||
m.put("syncOptions", parseJson(s.getSyncOptionsJson()));
|
||||
m.put("btAutoPopup", s.getBtAutoPopup() != null ? s.getBtAutoPopup() : true);
|
||||
@@ -282,4 +284,11 @@ public class AppSettingsService {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
private static String normalizeChartTimeFormat(String raw) {
|
||||
if (raw == null) return "MM-dd HH:mm";
|
||||
String t = raw.trim();
|
||||
if (t.isEmpty() || !t.matches(".*[yMdHms].*")) return "MM-dd HH:mm";
|
||||
return t.length() > 64 ? t.substring(0, 64) : t;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user