From 167e792d00f0add7108f325082275cea617928ba Mon Sep 17 00:00:00 2001 From: Christopher Beckmann Date: Sat, 9 Sep 2017 01:01:19 +0200 Subject: [PATCH] Minor fixes and added german translation. --- app/build.gradle | 2 +- .../activities/ExerciseActivity.java | 1 - app/src/main/res/layout/activity_exercise.xml | 4 ++-- app/src/main/res/layout/app_bar_break_reminder.xml | 2 +- app/src/main/res/layout/dialog_exercise.xml | 4 ++-- app/src/main/res/layout/layout_exercise_set.xml | 2 +- app/src/main/res/values/strings.xml | 9 ++++++--- 7 files changed, 13 insertions(+), 11 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 92c4ade..b914eed 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -29,6 +29,6 @@ dependencies { compile 'com.android.support:cardview-v7:25.3.1' compile 'com.android.support.constraint:constraint-layout:1.0.2' compile 'com.nex3z:flow-layout:1.0.0' - compile 'com.readystatesoftware.sqliteasset:sqliteassethelper:+' + compile 'com.readystatesoftware.sqliteasset:sqliteassethelper:2.0.1' testCompile 'junit:junit:4.12' } diff --git a/app/src/main/java/org/secuso/privacyfriendlybreakreminder/activities/ExerciseActivity.java b/app/src/main/java/org/secuso/privacyfriendlybreakreminder/activities/ExerciseActivity.java index 6b99f74..8a3e0f2 100644 --- a/app/src/main/java/org/secuso/privacyfriendlybreakreminder/activities/ExerciseActivity.java +++ b/app/src/main/java/org/secuso/privacyfriendlybreakreminder/activities/ExerciseActivity.java @@ -152,7 +152,6 @@ public class ExerciseActivity extends AppCompatActivity implements android.suppo breakTimerText.setTextColor(Color.WHITE); breakTimerText.setTextSize(20); breakTimerText.setGravity(center_vertical); - breakTimerText.setText("00:00"); breakTimerText.setPadding(16, 0, 16, 0); //breakTimerText.set(10, 0, 10, 0); diff --git a/app/src/main/res/layout/activity_exercise.xml b/app/src/main/res/layout/activity_exercise.xml index 693a871..df1122d 100644 --- a/app/src/main/res/layout/activity_exercise.xml +++ b/app/src/main/res/layout/activity_exercise.xml @@ -180,7 +180,7 @@ android:layout_height="wrap_content" android:layout_marginLeft="8dp" android:layout_marginStart="8dp" - android:text="Execution" + android:text="@string/execution" android:textStyle="bold" app:layout_constraintLeft_toRightOf="@+id/progressBarLayout" app:layout_constraintTop_toBottomOf="@+id/section_card" /> @@ -203,7 +203,7 @@ android:layout_marginLeft="8dp" android:layout_marginStart="8dp" android:layout_marginTop="8dp" - android:text="Description" + android:text="@string/description" android:textStyle="bold" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintTop_toBottomOf="@+id/exercise_image" /> diff --git a/app/src/main/res/layout/app_bar_break_reminder.xml b/app/src/main/res/layout/app_bar_break_reminder.xml index f5a8474..e58e580 100644 --- a/app/src/main/res/layout/app_bar_break_reminder.xml +++ b/app/src/main/res/layout/app_bar_break_reminder.xml @@ -5,7 +5,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="true" - tools:context="org.secuso.privacyfriendlybreakreminder.org.secuso.privacyfriendlybreakreminder.privacyfriendlybreakreminder.BreakReminder"> + tools:context="org.secuso.privacyfriendlybreakreminder.activities.old.BreakReminder"> @@ -49,7 +49,7 @@ android:layout_height="wrap_content" android:layout_marginLeft="8dp" android:layout_marginTop="8dp" - android:text="Description" + android:text="@string/description" android:textStyle="bold" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintTop_toBottomOf="@+id/exercise_image" /> diff --git a/app/src/main/res/layout/layout_exercise_set.xml b/app/src/main/res/layout/layout_exercise_set.xml index fb3f406..56cacd9 100644 --- a/app/src/main/res/layout/layout_exercise_set.xml +++ b/app/src/main/res/layout/layout_exercise_set.xml @@ -75,7 +75,7 @@ android:layout_marginLeft="8dp" android:layout_marginRight="8dp" android:layout_marginTop="8dp" - android:text="This set contains no exercises." + android:text="@string/set_contains_no_exercises" android:textColor="@color/black" android:visibility="gone" app:layout_constraintBottom_toBottomOf="parent" diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index b74f7d0..db5be60 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -28,7 +28,7 @@ - New Profile... + New Profile… Play/Stop Reset 30:00 @@ -148,7 +148,7 @@ Reset the clock By pressing one of them, the clock starts or stops or - By clicking on the current profile (\'Random\'), you will see all the currently available profiles. \nYou can add new profiles by clicking on \'New Profiles...\' and edit the current ones in the settings\nIn the beginning there will be 4 predefined profiles + By clicking on the current profile (\'Random\'), you will see all the currently available profiles. \nYou can add new profiles by clicking on \'New Profiles…\' and edit the current ones in the settings\nIn the beginning there will be 4 predefined profiles Start/Stop the clock Welcome to the Privacy Friendly Break Reminder 0 @@ -180,7 +180,7 @@ New Exercise Set exercise set name Add New Exercise Set - @string/app_name + @string/app_name Exercise Set Name keep editing discard @@ -315,6 +315,9 @@ Please select an item to delete. Do you want to go back to the main menu? Break time is up! + Execution + Description + This set contains no exercises.