Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix stop button state

  • Loading branch information...
commit d3f6f8bfbfeb2d6c182d59812078fe952b3bb4ee 1 parent c487e95
@capflam capflam authored
View
6 realtime/RealtimeInitialization/src/com/scoreflex/samples/realtime/RealtimeInitialization/MainActivity.java
@@ -240,6 +240,7 @@ public void onFailure(int status_code) {
// Function to deinitialize the realtime session, if needed
private void stopRealtimeSession() {
+ ((Button)findViewById(R.id.stop_button)).setEnabled(false);
if (Session.isInitialized()) {
logInfo("Realtime session deinitializing...");
Session.deinitialize();
@@ -287,6 +288,11 @@ private void onRealtimeSessionInitialized() {
+ Session.getTcpHeartbeatTimeout() + " msecs\n"
+ " - UDP heartbeat timeout: "
+ Session.getUdpHeartbeatTimeout() + " msecs");
+
+ // ################################################################
+ // THIS SAMPLE ENDS HERE. CHECKOUT 'RealtimeConnectionManagement'
+ // SAMPLE FOR THE NEXT STEPS.
+ // ################################################################
}
Please sign in to comment.
Something went wrong with that request. Please try again.