add some call integration debug aids

This commit is contained in:
Arne 2024-06-10 12:26:29 +02:00
parent b76eb18171
commit a674443bb1
2 changed files with 6 additions and 1 deletions

View file

@ -357,6 +357,7 @@ public class CallIntegrationConnectionService extends ConnectionService {
try {
service.getSystemService(TelecomManager.class).placeCall(address, extras);
} catch (final SecurityException e) {
Log.e(Config.LOGTAG, "call integration not available", e);
Toast.makeText(service, R.string.call_integration_not_available, Toast.LENGTH_LONG)
.show();
}

View file

@ -2,9 +2,13 @@ package eu.siacs.conversations.ui;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.preference.Preference;
import android.util.AttributeSet;
import com.google.common.base.Strings;
import eu.siacs.conversations.BuildConfig;
import eu.siacs.conversations.R;
import eu.siacs.conversations.utils.PhoneHelper;
@ -27,7 +31,7 @@ public class AboutPreference extends Preference {
}
private void setSummary() {
setSummary(getContext().getString(R.string.app_name) + ' ' + PhoneHelper.getVersionName(getContext()));
setSummary(String.format("%s%s %s (%s)", R.string.app_name, BuildConfig.VERSION_NAME, im.conversations.webrtc.BuildConfig.WEBRTC_VERSION, Strings.nullToEmpty(Build.DEVICE)));
}
}