Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
tagavari committed Jun 20, 2021
2 parents 731409a + 7a4247a commit 19fa6ed
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ android {
applicationId "me.tagavari.airmessage"
minSdkVersion 23
targetSdkVersion 30
versionName "3.1.8"
versionCode 114
versionName "3.1.9"
versionCode 115

resConfigs "en", "fr", "ja"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ public void onClose(@ConnectionErrorCode int errorCode) {

result = scheduleImmediateReconnect(true);

emitStateConnecting();
if(result) emitStateConnecting();
} else {
result = scheduleImmediateReconnect(false);
}
Expand Down Expand Up @@ -967,20 +967,23 @@ private void stopCurrentMode() {
* @return Whether the communications manager was started
*/
private boolean connectFromList(Context context, int index) {
//Updating the connection state
connState = ConnectionState.connecting;

//Recording the index
currentCommunicationsIndex = index;

//Getting the parameters
int proxyType = connectionOverride == null ? SharedPreferencesManager.getProxyType(context) : connectionOverride.getProxyType();
Object overrideValue = connectionOverride == null ? null : connectionOverride.getValue();

//Creating and starting the communications manager
//Creating and checking the communications manager
communicationsManager = communicationsPriorityList.get(index).create(communicationsManagerListener, proxyType);
if(!communicationsManager.isProxySupported(proxyType)) return false;

//Updating the connection state
connState = ConnectionState.connecting;

//Recording the index
currentCommunicationsIndex = index;

//Starting the communications manager
communicationsManager.connect(context, overrideValue);

return true;
}

Expand Down

0 comments on commit 19fa6ed

Please sign in to comment.