From 1d4d2c6664a5d28dd5259e8cb487b6953b99493e Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Thu, 18 Apr 2024 10:09:41 +0200 Subject: [PATCH] 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 --- .../ui/fragment/settings/MainSettingsFragment.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/eu/siacs/conversations/ui/fragment/settings/MainSettingsFragment.java b/src/main/java/eu/siacs/conversations/ui/fragment/settings/MainSettingsFragment.java index e9761b1a7..049523aa5 100644 --- a/src/main/java/eu/siacs/conversations/ui/fragment/settings/MainSettingsFragment.java +++ b/src/main/java/eu/siacs/conversations/ui/fragment/settings/MainSettingsFragment.java @@ -26,7 +26,7 @@ public class MainSettingsFragment extends PreferenceFragmentCompat { private static final String CREATE_BACKUP = "create_backup"; - private ActivityResultLauncher requestStorageForBackupLauncher = + private final ActivityResultLauncher requestStorageForBackupLauncher = registerForActivityResult( new ActivityResultContracts.RequestPermission(), isGranted -> { @@ -61,11 +61,13 @@ public class MainSettingsFragment extends PreferenceFragmentCompat { about.setTitle(getString(R.string.title_activity_about_x, BuildConfig.APP_NAME)); about.setSummary( String.format( - "%s %s %s (%s)", + "%s %s %s @ %s · %s · %s", BuildConfig.APP_NAME, BuildConfig.VERSION_NAME, 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()) { connection.setSummary(R.string.pref_connection_summary); }