1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-10 12:09:27 +01:00

StepsStreaks: visual perception adjustment. Extract strings

This commit is contained in:
vanous 2022-08-13 10:08:02 +02:00
parent eceb612c9e
commit 790d5ecd45
4 changed files with 9 additions and 8 deletions

View File

@ -377,8 +377,8 @@ public class StepStreaksDashboard extends DialogFragment {
Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);
sharingIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
sharingIntent.setType("image/*");
String shareBody = "My daily step streaks!";
sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Steps Streak");
String shareBody = getString(R.string.step_streaks_achievements_sharing_message);
sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, getString(R.string.step_streaks_achievements_sharing_title));
sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, shareBody);
sharingIntent.putExtra(Intent.EXTRA_STREAM, contentUri);

View File

@ -41,10 +41,10 @@
android:gravity="bottom|center"
android:orientation="horizontal">
<include layout="@layout/steps_streak_days" />
<include layout="@layout/steps_streak_average" />
<include layout="@layout/steps_streak_days" />
<include layout="@layout/steps_streak_total" />
</LinearLayout>

View File

@ -41,10 +41,10 @@
android:gravity="bottom|center"
android:orientation="horizontal">
<include layout="@layout/steps_streak_days" />
<include layout="@layout/steps_streak_average" />
<include layout="@layout/steps_streak_days" />
<include layout="@layout/steps_streak_total" />
</LinearLayout>

View File

@ -1072,6 +1072,7 @@
<string name="devicetype_sony_wh_1000xm4">Sony WH-1000XM4</string>
<string name="devicetype_sony_wf_sp800n">Sony WF-SP800N</string>
<string name="devicetype_sony_wf_1000xm3">Sony WF-1000XM3</string>
<string name="devicetype_binary_sensor">Binary sensor</string>
<string name="choose_auto_export_location">Choose export location</string>
<string name="notification_channel_name">General</string>
<string name="notification_channel_high_priority_name">High-priority</string>
@ -1753,8 +1754,8 @@
<string name="step_streak_days_hint">Number of consecutive days with steps goal being reached</string>
<string name="steps_streaks_total_steps_hint">Total number of steps in the whole streak</string>
<string name="steps_streaks_total_steps_average_hint">Total average %d steps per day</string>
<string name="step_streaks_achievements_sharing_message">My daily step achievements!</string>
<string name="step_streaks_achievements_sharing_title">Steps Achievements</string>
<string name="prefs_hourly_chime">Hourly chime</string>
<string name="prefs_hourly_chime_summary">The watch will beep once an hour</string>
<string name="devicetype_binary_sensor">Binary sensor</string>
</resources>