Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Commit

Permalink
feat(connection): add notification message when the agent is disconne…
Browse files Browse the repository at this point in the history
…cted

Signed-off-by: Rafa Hernandez <[email protected]>
  • Loading branch information
rafaelje authored and Hector Rondon committed Apr 25, 2018
1 parent 398e579 commit 164cccb
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
import org.flyve.mdm.agent.R;
import org.flyve.mdm.agent.data.AppData;
import org.flyve.mdm.agent.data.MqttData;
import org.flyve.mdm.agent.ui.MainActivity;
import org.flyve.mdm.agent.utils.FlyveLog;
import org.flyve.mdm.agent.utils.Helpers;
import org.json.JSONArray;
Expand Down Expand Up @@ -1190,6 +1191,7 @@ private void broadcastServiceStatus(boolean status) {

// reconnect
if(!status) {
Helpers.sendToNotificationBar(getApplicationContext(), 101, "Connection", "The agent is disconnected", false, MainActivity.class, "service_disconnect");
reconnect();
}

Expand Down

0 comments on commit 164cccb

Please sign in to comment.