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:
parent
5dd6982314
commit
8766f785a0
@ -387,6 +387,7 @@ public class ConversationActivity extends Activity implements ServiceConnection,
|
|||||||
} else {
|
} else {
|
||||||
input.setEnabled(false);
|
input.setEnabled(false);
|
||||||
|
|
||||||
|
if (!binder.getService().getSettings().isReconnectEnabled()) {
|
||||||
AlertDialog.Builder builder = new AlertDialog.Builder(this);
|
AlertDialog.Builder builder = new AlertDialog.Builder(this);
|
||||||
builder.setMessage("You disconnected from " + server.getTitle() + ". Do you want to reconnect?")
|
builder.setMessage("You disconnected from " + server.getTitle() + ". Do you want to reconnect?")
|
||||||
.setCancelable(false)
|
.setCancelable(false)
|
||||||
@ -410,6 +411,7 @@ public class ConversationActivity extends Activity implements ServiceConnection,
|
|||||||
alert.show();
|
alert.show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* On conversation item clicked
|
* On conversation item clicked
|
||||||
|
Loading…
Reference in New Issue
Block a user