Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/acomminos/Plumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Comminos <andrew@comminos.com>2016-03-12 08:50:08 +0300
committerAndrew Comminos <andrew@comminos.com>2016-03-12 08:50:08 +0300
commit9bba0dc78b55376874f5c41fc813eec9165cb261 (patch)
tree82ee282d5457f8c00b4b9b08a250981f7df15f5a
parentc3f8558bcb78e0c1696357c998c091bd0c18bbc3 (diff)
Hide reconnect notification when the error has been seen and while not reconnecting.
-rw-r--r--app/src/main/java/com/morlunk/mumbleclient/service/PlumbleService.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/src/main/java/com/morlunk/mumbleclient/service/PlumbleService.java b/app/src/main/java/com/morlunk/mumbleclient/service/PlumbleService.java
index 5fbf01e..08721a8 100644
--- a/app/src/main/java/com/morlunk/mumbleclient/service/PlumbleService.java
+++ b/app/src/main/java/com/morlunk/mumbleclient/service/PlumbleService.java
@@ -516,6 +516,11 @@ public class PlumbleService extends JumbleService implements
public void markErrorShown() {
mErrorShown = true;
+ // Dismiss the reconnection prompt if a reconnection isn't in progress.
+ if (mReconnectNotification != null && !isReconnecting()) {
+ mReconnectNotification.hide();
+ mReconnectNotification = null;
+ }
}
public boolean isErrorShown() {