mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-26 02:42:16 -05:00
ConversationActivity: onStatusUpdate(): Check if service is already connected and initialized - Fixes #54
This commit is contained in:
parent
ded6485f6b
commit
9387a02068
@ -468,6 +468,11 @@ public class ConversationActivity extends Activity implements ServiceConnection,
|
||||
return;
|
||||
}
|
||||
|
||||
// Service is not connected or initialized yet - See #54
|
||||
if (binder == null || binder.getService() == null || binder.getService().getSettings() == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!binder.getService().getSettings().isReconnectEnabled()) {
|
||||
AlertDialog.Builder builder = new AlertDialog.Builder(this);
|
||||
builder.setMessage(getResources().getString(R.string.reconnect_after_disconnect, server.getTitle()))
|
||||
|
Loading…
Reference in New Issue
Block a user