From 4aae1f78d8a84e233040e57e04f71ab7d5045d85 Mon Sep 17 00:00:00 2001 From: Valere Date: Mon, 8 Jul 2019 18:05:37 +0200 Subject: [PATCH] moved new strings + @StringRes annotation --- .../android/api/session/InitialSyncProgressService.kt | 3 ++- matrix-sdk-android/src/main/res/values/strings.xml | 9 --------- .../src/main/res/values/strings_RiotX.xml | 10 ++++++++++ 3 files changed, 12 insertions(+), 10 deletions(-) create mode 100644 matrix-sdk-android/src/main/res/values/strings_RiotX.xml diff --git a/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/session/InitialSyncProgressService.kt b/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/session/InitialSyncProgressService.kt index 619d9356..ce842125 100644 --- a/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/session/InitialSyncProgressService.kt +++ b/matrix-sdk-android/src/main/java/im/vector/matrix/android/api/session/InitialSyncProgressService.kt @@ -1,5 +1,6 @@ package im.vector.matrix.android.api.session +import androidx.annotation.StringRes import androidx.lifecycle.LiveData interface InitialSyncProgressService { @@ -7,7 +8,7 @@ interface InitialSyncProgressService { fun getLiveStatus() : LiveData data class Status( - val statusText: Int?, + @StringRes val statusText: Int?, val percentProgress: Int = 0 ) } \ No newline at end of file diff --git a/matrix-sdk-android/src/main/res/values/strings.xml b/matrix-sdk-android/src/main/res/values/strings.xml index eb39b689..be64a659 100644 --- a/matrix-sdk-android/src/main/res/values/strings.xml +++ b/matrix-sdk-android/src/main/res/values/strings.xml @@ -228,13 +228,4 @@ Pin - - Initial Sync:\nImporting account… - Initial Sync:\nImporting crypto - Initial Sync:\nImporting Rooms - Initial Sync:\nImporting Joined Rooms - Initial Sync:\nImporting Invited Rooms - Initial Sync:\nImporting Left Rooms - Initial Sync:\nImporting Communities - Initial Sync:\nImporting Account Data diff --git a/matrix-sdk-android/src/main/res/values/strings_RiotX.xml b/matrix-sdk-android/src/main/res/values/strings_RiotX.xml new file mode 100644 index 00000000..d03dfa79 --- /dev/null +++ b/matrix-sdk-android/src/main/res/values/strings_RiotX.xml @@ -0,0 +1,10 @@ + + Initial Sync:\nImporting account… + Initial Sync:\nImporting crypto + Initial Sync:\nImporting Rooms + Initial Sync:\nImporting Joined Rooms + Initial Sync:\nImporting Invited Rooms + Initial Sync:\nImporting Left Rooms + Initial Sync:\nImporting Communities + Initial Sync:\nImporting Account Data + \ No newline at end of file