add vendor and android version to 'about' section

that way a screenshot of the settings is a one stop shop for maintaining our
broken device list
This commit is contained in:
Daniel Gultsch 2024-04-18 10:09:41 +02:00
parent d1552c9397
commit 1d4d2c6664
No known key found for this signature in database
GPG key ID: F43D18AD2A0982C2

View file

@ -26,7 +26,7 @@ public class MainSettingsFragment extends PreferenceFragmentCompat {
private static final String CREATE_BACKUP = "create_backup"; private static final String CREATE_BACKUP = "create_backup";
private ActivityResultLauncher<String> requestStorageForBackupLauncher = private final ActivityResultLauncher<String> requestStorageForBackupLauncher =
registerForActivityResult( registerForActivityResult(
new ActivityResultContracts.RequestPermission(), new ActivityResultContracts.RequestPermission(),
isGranted -> { isGranted -> {
@ -61,11 +61,13 @@ public class MainSettingsFragment extends PreferenceFragmentCompat {
about.setTitle(getString(R.string.title_activity_about_x, BuildConfig.APP_NAME)); about.setTitle(getString(R.string.title_activity_about_x, BuildConfig.APP_NAME));
about.setSummary( about.setSummary(
String.format( String.format(
"%s %s %s (%s)", "%s %s %s @ %s · %s · %s",
BuildConfig.APP_NAME, BuildConfig.APP_NAME,
BuildConfig.VERSION_NAME, BuildConfig.VERSION_NAME,
im.conversations.webrtc.BuildConfig.WEBRTC_VERSION, im.conversations.webrtc.BuildConfig.WEBRTC_VERSION,
Strings.nullToEmpty(Build.DEVICE))); Strings.nullToEmpty(Build.MANUFACTURER),
Strings.nullToEmpty(Build.DEVICE),
Strings.nullToEmpty(Build.VERSION.RELEASE)));
if (ConnectionSettingsFragment.hideChannelDiscovery()) { if (ConnectionSettingsFragment.hideChannelDiscovery()) {
connection.setSummary(R.string.pref_connection_summary); connection.setSummary(R.string.pref_connection_summary);
} }