2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-30 21:55:10 +00:00

Better titles for the settings

This commit is contained in:
Albert Vaca
2018-10-25 19:20:48 +02:00
parent 6771024a00
commit aee692ffb3
2 changed files with 4 additions and 2 deletions

View File

@@ -294,7 +294,8 @@
<string name="mute">Mute</string>
<string name="devices">Devices</string>
<string name="settings_dark_mode">Dark mode</string>
<string name="settings_rename">Device name</string>
<string name="settings_dark_mode">Dark theme</string>
<string name="settings_more_settings_title">More settings</string>
<string name="settings_more_settings_text">Per-device settings can be found under \'Plugin settings\' from within a device.</string>
<string name="setting_persistent_notification">Show persistent notification</string>

View File

@@ -29,6 +29,7 @@ public class SettingsFragment extends PreferenceFragmentCompat implements MainAc
}
TwoStatePreference createTwoStatePreferenceCompat(Context context) {
//The switch didn't work on Android 6, not sure about 7
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
return new SwitchPreference(context);
} else {
@@ -54,7 +55,7 @@ public class SettingsFragment extends PreferenceFragmentCompat implements MainAc
return true;
});
String deviceName = DeviceHelper.getDeviceName(context);
renameDevice.setTitle(R.string.device_rename_title);
renameDevice.setTitle(R.string.settings_rename);
renameDevice.setSummary(deviceName);
screen.addPreference(renameDevice);