Skip to content

Commit

Permalink
set start button checkbox to off if stopping due to error
Browse files Browse the repository at this point in the history
  • Loading branch information
sthalik committed Dec 12, 2014
1 parent 553dbf6 commit 03b2571
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,9 @@ public void error(final String text) {
final Activity activity = this;

new AlertDialog.Builder(activity).setTitle("Error").setMessage(text).setNeutralButton("OK", null).show();
if (udpSenderService != null)
if (udpSenderService != null) {
udpSenderService.stop();
start.setChecked(false);
}
}
}

0 comments on commit 03b2571

Please sign in to comment.