mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-30 13:47:41 +00:00
Better titles for the settings
This commit is contained in:
parent
6771024a00
commit
aee692ffb3
@ -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>
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user