fixup: simplify loginInfo null check
This commit is contained in:
parent
5ab8912cb4
commit
c2592d1417
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -11,6 +11,7 @@ src/quicksyPlaystore/res/values/push.xml
|
||||||
build/
|
build/
|
||||||
captures/
|
captures/
|
||||||
signing.properties
|
signing.properties
|
||||||
|
signing.managed.properties
|
||||||
# Ignore Gradle GUI config
|
# Ignore Gradle GUI config
|
||||||
gradle-app.setting
|
gradle-app.setting
|
||||||
|
|
||||||
|
|
|
@ -615,12 +615,29 @@ public class XmppConnection implements Runnable {
|
||||||
} else if (nextTag.isStart("challenge")) {
|
} else if (nextTag.isStart("challenge")) {
|
||||||
final Element challenge = tagReader.readElement(nextTag);
|
final Element challenge = tagReader.readElement(nextTag);
|
||||||
processChallenge(challenge);
|
processChallenge(challenge);
|
||||||
|
} else if (this.streamId != null
|
||||||
|
&& nextTag.isStart("resumed", Namespace.STREAM_MANAGEMENT)) {
|
||||||
|
final Element resumed = tagReader.readElement(nextTag);
|
||||||
|
processResumed(resumed);
|
||||||
|
} else if (nextTag.isStart("failed", Namespace.STREAM_MANAGEMENT)) {
|
||||||
|
final Element failed = tagReader.readElement(nextTag);
|
||||||
|
processFailed(failed, true);
|
||||||
|
} else if (nextTag.isStart("iq", Namespace.JABBER_CLIENT)) {
|
||||||
|
processIq(nextTag);
|
||||||
|
} else if (!isBound) {
|
||||||
|
Log.d(
|
||||||
|
Config.LOGTAG,
|
||||||
|
account.getJid().asBareJid()
|
||||||
|
+ ": server sent unexpected"
|
||||||
|
+ nextTag.identifier());
|
||||||
|
throw new StateChangingException(Account.State.INCOMPATIBLE_SERVER);
|
||||||
|
} else if (nextTag.isStart("message", Namespace.JABBER_CLIENT)) {
|
||||||
|
processMessage(nextTag);
|
||||||
|
} else if (nextTag.isStart("presence", Namespace.JABBER_CLIENT)) {
|
||||||
|
processPresence(nextTag);
|
||||||
} else if (nextTag.isStart("enabled", Namespace.STREAM_MANAGEMENT)) {
|
} else if (nextTag.isStart("enabled", Namespace.STREAM_MANAGEMENT)) {
|
||||||
final Element enabled = tagReader.readElement(nextTag);
|
final Element enabled = tagReader.readElement(nextTag);
|
||||||
processEnabled(enabled);
|
processEnabled(enabled);
|
||||||
} else if (nextTag.isStart("resumed", Namespace.STREAM_MANAGEMENT)) {
|
|
||||||
final Element resumed = tagReader.readElement(nextTag);
|
|
||||||
processResumed(resumed);
|
|
||||||
} else if (nextTag.isStart("r", Namespace.STREAM_MANAGEMENT)) {
|
} else if (nextTag.isStart("r", Namespace.STREAM_MANAGEMENT)) {
|
||||||
tagReader.readElement(nextTag);
|
tagReader.readElement(nextTag);
|
||||||
if (Config.EXTENDED_SM_LOGGING) {
|
if (Config.EXTENDED_SM_LOGGING) {
|
||||||
|
@ -675,17 +692,6 @@ public class XmppConnection implements Runnable {
|
||||||
if (acknowledgedMessages) {
|
if (acknowledgedMessages) {
|
||||||
mXmppConnectionService.updateConversationUi();
|
mXmppConnectionService.updateConversationUi();
|
||||||
}
|
}
|
||||||
} else if (nextTag.isStart("failed", Namespace.STREAM_MANAGEMENT)) {
|
|
||||||
final Element failed = tagReader.readElement(nextTag);
|
|
||||||
processFailed(failed, true);
|
|
||||||
} else if (nextTag.isStart("iq", Namespace.JABBER_CLIENT)) {
|
|
||||||
processIq(nextTag);
|
|
||||||
} else if (!isBound) {
|
|
||||||
throw new StateChangingException(Account.State.INCOMPATIBLE_SERVER);
|
|
||||||
} else if (nextTag.isStart("message", Namespace.JABBER_CLIENT)) {
|
|
||||||
processMessage(nextTag);
|
|
||||||
} else if (nextTag.isStart("presence", Namespace.JABBER_CLIENT)) {
|
|
||||||
processPresence(nextTag);
|
|
||||||
} else {
|
} else {
|
||||||
Log.e(
|
Log.e(
|
||||||
Config.LOGTAG,
|
Config.LOGTAG,
|
||||||
|
|
Loading…
Reference in a new issue