2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-23 18:37:23 +00:00

Avoid hardcoded string

This commit is contained in:
Nicolas Fella 2018-10-29 18:22:31 +01:00
parent 5dc02bbb75
commit 2bc059c4b6
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@
android:paddingRight="48dp" android:paddingRight="48dp"
android:paddingStart="16dp" android:paddingStart="16dp"
android:paddingTop="8dp" android:paddingTop="8dp"
android:text="KDE Connect" android:text="@string/kde_connect"
android:textColor="#FFF" android:textColor="#FFF"
android:textStyle="bold" /> android:textStyle="bold" />

View File

@ -326,7 +326,7 @@ public class BackgroundService extends Service {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) { if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) {
//Pre-oreo, the notification will have an empty title line without this //Pre-oreo, the notification will have an empty title line without this
notification.setContentTitle("KDE Connect"); notification.setContentTitle(getString(R.string.kde_connect));
} }
if (connectedDevices.isEmpty()) { if (connectedDevices.isEmpty()) {