diff options
author | Andrew Comminos <andrew@comminos.com> | 2016-03-12 08:50:08 +0300 |
---|---|---|
committer | Andrew Comminos <andrew@comminos.com> | 2016-03-12 08:50:08 +0300 |
commit | 9bba0dc78b55376874f5c41fc813eec9165cb261 (patch) | |
tree | 82ee282d5457f8c00b4b9b08a250981f7df15f5a | |
parent | c3f8558bcb78e0c1696357c998c091bd0c18bbc3 (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.java | 5 |
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() { |