1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2025-01-10 05:08:18 -05:00

ConversationActivity: Only show reconnect popup if automatic reconnect is disabled

This commit is contained in:
Sebastian Kaspari 2010-04-17 23:08:47 +02:00
parent 5dd6982314
commit 8766f785a0

View File

@ -387,6 +387,7 @@ public class ConversationActivity extends Activity implements ServiceConnection,
} else {
input.setEnabled(false);
if (!binder.getService().getSettings().isReconnectEnabled()) {
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setMessage("You disconnected from " + server.getTitle() + ". Do you want to reconnect?")
.setCancelable(false)
@ -410,6 +411,7 @@ public class ConversationActivity extends Activity implements ServiceConnection,
alert.show();
}
}
}
/**
* On conversation item clicked