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:
@@ -294,7 +294,8 @@
|
|||||||
<string name="mute">Mute</string>
|
<string name="mute">Mute</string>
|
||||||
<string name="devices">Devices</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_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="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>
|
<string name="setting_persistent_notification">Show persistent notification</string>
|
||||||
|
@@ -29,6 +29,7 @@ public class SettingsFragment extends PreferenceFragmentCompat implements MainAc
|
|||||||
}
|
}
|
||||||
|
|
||||||
TwoStatePreference createTwoStatePreferenceCompat(Context context) {
|
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) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||||
return new SwitchPreference(context);
|
return new SwitchPreference(context);
|
||||||
} else {
|
} else {
|
||||||
@@ -54,7 +55,7 @@ public class SettingsFragment extends PreferenceFragmentCompat implements MainAc
|
|||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
String deviceName = DeviceHelper.getDeviceName(context);
|
String deviceName = DeviceHelper.getDeviceName(context);
|
||||||
renameDevice.setTitle(R.string.device_rename_title);
|
renameDevice.setTitle(R.string.settings_rename);
|
||||||
renameDevice.setSummary(deviceName);
|
renameDevice.setSummary(deviceName);
|
||||||
screen.addPreference(renameDevice);
|
screen.addPreference(renameDevice);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user