|
|
|
@ -37,33 +37,19 @@ public class Notice {
|
|
|
|
|
private static final String PREFS_NAME = "notice";
|
|
|
|
|
private static List<Notice> notices = null;
|
|
|
|
|
|
|
|
|
|
private static final String NOTICE_SHOW_XMRTO_ENABLED_LOGIN = "notice_xmrto_enabled_login";
|
|
|
|
|
private static final String NOTICE_SHOW_XMRTO_ENABLED_SEND = "notice_xmrto_enabled_send";
|
|
|
|
|
private static final String NOTICE_SHOW_LEDGER = "notice_ledger_enabled_login";
|
|
|
|
|
private static final String NOTICE_SHOW_NODES = "notice_nodes";
|
|
|
|
|
|
|
|
|
|
private static void init() {
|
|
|
|
|
synchronized (Notice.class) {
|
|
|
|
|
if (notices != null) return;
|
|
|
|
|
notices = new ArrayList<>();
|
|
|
|
|
notices.add(
|
|
|
|
|
new Notice(NOTICE_SHOW_NODES,
|
|
|
|
|
R.string.info_nodes_enabled,
|
|
|
|
|
R.string.help_node,
|
|
|
|
|
1)
|
|
|
|
|
);
|
|
|
|
|
notices.add(
|
|
|
|
|
new Notice(NOTICE_SHOW_XMRTO_ENABLED_SEND,
|
|
|
|
|
R.string.info_xmrto_enabled,
|
|
|
|
|
R.string.help_xmrto,
|
|
|
|
|
1)
|
|
|
|
|
);
|
|
|
|
|
notices.add(
|
|
|
|
|
new Notice(NOTICE_SHOW_XMRTO_ENABLED_LOGIN,
|
|
|
|
|
R.string.info_xmrto_enabled,
|
|
|
|
|
R.string.help_xmrto,
|
|
|
|
|
1)
|
|
|
|
|
);
|
|
|
|
|
notices.add(
|
|
|
|
|
new Notice(NOTICE_SHOW_LEDGER,
|
|
|
|
|
R.string.info_ledger_enabled,
|
|
|
|
|