From 92efd04c0db1b9654ccaa1e8474359f206537cee Mon Sep 17 00:00:00 2001 From: woheller69 Date: Fri, 17 Nov 2023 11:34:25 +0100 Subject: [PATCH] update V2.2 --- app/build.gradle | 4 ++-- .../woheller69/weather/ui/RecycleList/WeekWeatherAdapter.java | 2 +- app/src/main/res/layout/list_item_week_forecast.xml | 2 +- fastlane/metadata/android/en-US/changelogs/22.txt | 3 +++ 4 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 fastlane/metadata/android/en-US/changelogs/22.txt diff --git a/app/build.gradle b/app/build.gradle index bc38367..1386df2 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -8,8 +8,8 @@ android { applicationId "org.woheller69.omweather" minSdkVersion 21 targetSdkVersion 33 - versionCode 21 - versionName "2.1" + versionCode 22 + versionName "2.2" buildConfigField "String", "BASE_URL", "\"https://api.open-meteo.com/v1/\"" buildConfigField "String", "GITHUB_URL","\"https://github.com/woheller69/omweather/\"" diff --git a/app/src/main/java/org/woheller69/weather/ui/RecycleList/WeekWeatherAdapter.java b/app/src/main/java/org/woheller69/weather/ui/RecycleList/WeekWeatherAdapter.java index d7c97cc..a80d02a 100644 --- a/app/src/main/java/org/woheller69/weather/ui/RecycleList/WeekWeatherAdapter.java +++ b/app/src/main/java/org/woheller69/weather/ui/RecycleList/WeekWeatherAdapter.java @@ -104,7 +104,7 @@ public void onBindViewHolder(WeekForecastViewHolder holder, int position) { holder.wind_speed.setText(StringFormatUtils.formatWindSpeed(context, weekForecast.getWind_speed())); holder.wind_speed.setBackground(StringFormatUtils.colorWindSpeed(context, weekForecast.getWind_speed())); - holder.sunshine_hours.setText("\ud83d\udd06\u200a"+Math.round(weekForecast.getSunshineHours())+"\u200a"+context.getString(R.string.units_hours)); + holder.sunshine_hours.setText("\u2600\ufe0e\u200a"+Math.round(weekForecast.getSunshineHours())+"\u200a"+context.getString(R.string.units_hours)); Calendar c = Calendar.getInstance(); c.setTimeZone(TimeZone.getTimeZone("GMT")); diff --git a/app/src/main/res/layout/list_item_week_forecast.xml b/app/src/main/res/layout/list_item_week_forecast.xml index ae56c93..5b86e47 100644 --- a/app/src/main/res/layout/list_item_week_forecast.xml +++ b/app/src/main/res/layout/list_item_week_forecast.xml @@ -92,7 +92,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="3dp" - android:text="\ud83d\udd06\u200a2\u200ah" + android:text="\u2600\ufe0e\u200a2\u200ah" android:textColor="@color/colorPrimaryDark" android:textAppearance="?android:attr/textAppearanceMedium" /> diff --git a/fastlane/metadata/android/en-US/changelogs/22.txt b/fastlane/metadata/android/en-US/changelogs/22.txt new file mode 100644 index 0000000..da1d10d --- /dev/null +++ b/fastlane/metadata/android/en-US/changelogs/22.txt @@ -0,0 +1,3 @@ +Add hours of sunshine +Layout improvements +Bugfixes \ No newline at end of file