Fix on assistant

This commit is contained in:
Erwan Croze 2016-11-03 14:43:15 +01:00
parent 2f27891b68
commit 8d171d509d
4 changed files with 9 additions and 9 deletions

2
AndroidManifest.xml Normal file → Executable file
View file

@ -2,7 +2,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.linphone"
android:versionCode="3201" android:versionName="3.2.0" android:installLocation="auto">
android:versionCode="3202" android:versionName="3.2.0" android:installLocation="auto">
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="23"/>
<!-- Permissions for Push Notification -->

View file

@ -2,7 +2,7 @@ diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 5ef1374..86e13be 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -45,7 +45,7 @@
@@ -52,7 +52,7 @@
<supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" android:anyDensity="true"/>

View file

@ -226,9 +226,9 @@ public class LinphoneActivity extends Activity implements OnClickListener, Conta
refreshAccounts();
if(state.equals(RegistrationState.RegistrationOk) && LinphonePreferences.instance().getLinkPopupTime() != ""){
if(getResources().getBoolean(R.bool.use_phone_number_validation)) {
if (LinphonePreferences.instance().getLinkPopupTime() == null || (LinphonePreferences.instance().getLinkPopupTime() != null)){
if(getResources().getBoolean(R.bool.use_phone_number_validation)) {
if (state.equals(RegistrationState.RegistrationOk)) {
if (LinphonePreferences.instance().getLinkPopupTime() == null || (LinphonePreferences.instance().getLinkPopupTime() != null)) {
LinphoneManager.getInstance().isAccountWithAlias();
}
}

View file

@ -328,9 +328,9 @@ public class LinphoneLoginFragment extends Fragment implements CompoundButton.On
dial = accountCreator.getPrefix(phone);
AssistantActivity.instance().linphoneLogIn(login.getText().toString(), password.getText().toString(), dial, null, getResources().getBoolean(R.bool.assistant_account_validation_mandatory));
} else {
apply.setEnabled(true);
LinphoneUtils.displayErrorAlert(LinphoneUtils.errorForStatus(status), AssistantActivity.instance());
}
apply.setEnabled(true);
}
@Override