Fixed call recording on Android 10 + version bumped + updated gradle plugin + other crash fix
This commit is contained in:
parent
b0407645e7
commit
bb89582033
5 changed files with 22 additions and 12 deletions
|
@ -88,7 +88,7 @@ android {
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 29
|
targetSdkVersion 29
|
||||||
versionCode 4212
|
versionCode 4213
|
||||||
versionName "${project.version}"
|
versionName "${project.version}"
|
||||||
applicationId getPackageName()
|
applicationId getPackageName()
|
||||||
multiDexEnabled true
|
multiDexEnabled true
|
||||||
|
|
|
@ -64,7 +64,8 @@
|
||||||
android:largeHeap="true"
|
android:largeHeap="true"
|
||||||
android:roundIcon="@mipmap/ic_launcher_round"
|
android:roundIcon="@mipmap/ic_launcher_round"
|
||||||
android:resizeableActivity="true"
|
android:resizeableActivity="true"
|
||||||
android:theme="@style/LinphoneStyle">
|
android:theme="@style/LinphoneStyle"
|
||||||
|
android:requestLegacyExternalStorage="true">
|
||||||
|
|
||||||
<!-- Starting activities -->
|
<!-- Starting activities -->
|
||||||
|
|
||||||
|
|
|
@ -58,6 +58,7 @@ public class PhoneAccountLinkingAssistantActivity extends AssistantActivity {
|
||||||
if (core == null) {
|
if (core == null) {
|
||||||
Log.e("[Account Linking Assistant] Core not available");
|
Log.e("[Account Linking Assistant] Core not available");
|
||||||
unexpectedError();
|
unexpectedError();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ProxyConfig[] proxyConfigs = core.getProxyConfigList();
|
ProxyConfig[] proxyConfigs = core.getProxyConfigList();
|
||||||
|
@ -69,12 +70,14 @@ public class PhoneAccountLinkingAssistantActivity extends AssistantActivity {
|
||||||
if (identity == null) {
|
if (identity == null) {
|
||||||
Log.e("[Account Linking Assistant] Proxy doesn't have an identity address");
|
Log.e("[Account Linking Assistant] Proxy doesn't have an identity address");
|
||||||
unexpectedError();
|
unexpectedError();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
if (!mProxyConfig.getDomain().equals(getString(R.string.default_domain))) {
|
if (!mProxyConfig.getDomain().equals(getString(R.string.default_domain))) {
|
||||||
Log.e(
|
Log.e(
|
||||||
"[Account Linking Assistant] Can't link account on domain "
|
"[Account Linking Assistant] Can't link account on domain "
|
||||||
+ mProxyConfig.getDomain());
|
+ mProxyConfig.getDomain());
|
||||||
unexpectedError();
|
unexpectedError();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
accountCreator.setUsername(identity.getUsername());
|
accountCreator.setUsername(identity.getUsername());
|
||||||
|
|
||||||
|
@ -82,6 +85,7 @@ public class PhoneAccountLinkingAssistantActivity extends AssistantActivity {
|
||||||
if (authInfo == null) {
|
if (authInfo == null) {
|
||||||
Log.e("[Account Linking Assistant] Auth info not found");
|
Log.e("[Account Linking Assistant] Auth info not found");
|
||||||
unexpectedError();
|
unexpectedError();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
accountCreator.setHa1(authInfo.getHa1());
|
accountCreator.setHa1(authInfo.getHa1());
|
||||||
accountCreator.setAlgorithm((authInfo.getAlgorithm()));
|
accountCreator.setAlgorithm((authInfo.getAlgorithm()));
|
||||||
|
@ -90,10 +94,12 @@ public class PhoneAccountLinkingAssistantActivity extends AssistantActivity {
|
||||||
"[Account Linking Assistant] Proxy config index out of bounds: "
|
"[Account Linking Assistant] Proxy config index out of bounds: "
|
||||||
+ proxyConfigIndex);
|
+ proxyConfigIndex);
|
||||||
unexpectedError();
|
unexpectedError();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Log.e("[Account Linking Assistant] Proxy config index not found");
|
Log.e("[Account Linking Assistant] Proxy config index not found");
|
||||||
unexpectedError();
|
unexpectedError();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
mCountryPicker = findViewById(R.id.select_country);
|
mCountryPicker = findViewById(R.id.select_country);
|
||||||
|
|
|
@ -197,6 +197,7 @@ public class HistoryFragment extends Fragment
|
||||||
if (mHistoryAdapter.isEditionEnabled()) {
|
if (mHistoryAdapter.isEditionEnabled()) {
|
||||||
mHistoryAdapter.toggleSelection(position);
|
mHistoryAdapter.toggleSelection(position);
|
||||||
} else {
|
} else {
|
||||||
|
if (position >= 0 && position < mLogs.size()) {
|
||||||
CallLog log = mLogs.get(position);
|
CallLog log = mLogs.get(position);
|
||||||
Address address;
|
Address address;
|
||||||
if (log.getDir() == Call.Dir.Incoming) {
|
if (log.getDir() == Call.Dir.Incoming) {
|
||||||
|
@ -205,7 +206,9 @@ public class HistoryFragment extends Fragment
|
||||||
address = log.getToAddress();
|
address = log.getToAddress();
|
||||||
}
|
}
|
||||||
if (address != null) {
|
if (address != null) {
|
||||||
LinphoneManager.getCallManager().newOutgoingCall(address.asStringUriOnly(), null);
|
LinphoneManager.getCallManager()
|
||||||
|
.newOutgoingCall(address.asStringUriOnly(), null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@ buildscript {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:3.5.2'
|
classpath 'com.android.tools.build:gradle:3.5.3'
|
||||||
classpath 'com.google.gms:google-services:4.3.2'
|
classpath 'com.google.gms:google-services:4.3.2'
|
||||||
classpath "com.diffplug.spotless:spotless-plugin-gradle:3.24.2"
|
classpath "com.diffplug.spotless:spotless-plugin-gradle:3.24.2"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue