aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/entities/Account.java
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2016-10-05 21:56:32 +0200
committerChristian Schneppe <christian@pix-art.de>2016-10-05 21:56:32 +0200
commit4aa2eb0be27cfc3a35d50b5616a33f60dc414bd7 (patch)
treebb85cfd44120da0b8415040b3affc30507d0bf27 /src/main/java/de/pixart/messenger/entities/Account.java
parent11bddfe2b1fbb3dd02ebe0290e58f842ec28ef16 (diff)
make error notification dismissable
Diffstat (limited to 'src/main/java/de/pixart/messenger/entities/Account.java')
-rw-r--r--src/main/java/de/pixart/messenger/entities/Account.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/entities/Account.java b/src/main/java/de/pixart/messenger/entities/Account.java
index 7a825faab..abce5d151 100644
--- a/src/main/java/de/pixart/messenger/entities/Account.java
+++ b/src/main/java/de/pixart/messenger/entities/Account.java
@@ -90,6 +90,17 @@ public class Account extends AbstractEntity {
return pgpDecryptionService != null && pgpDecryptionService.isConnected();
}
+ public boolean setShowErrorNotification(boolean newValue) {
+ boolean oldValue = showErrorNotification();
+ setKey("show_error",Boolean.toString(newValue));
+ return newValue != oldValue;
+ }
+
+ public boolean showErrorNotification() {
+ String key = getKey("show_error");
+ return key == null || Boolean.parseBoolean(key);
+ }
+
public enum State {
DISABLED,
OFFLINE,