From aa22770c65a87325376000b8785578731aa34a09 Mon Sep 17 00:00:00 2001 From: Starfish Date: Sun, 21 Apr 2024 14:41:54 +0200 Subject: [PATCH] decrease font size of osm notice in production builds --- .../tinyweatherforecastgermany/WeatherWarningActivity.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/de/kaffeemitkoffein/tinyweatherforecastgermany/WeatherWarningActivity.java b/app/src/main/java/de/kaffeemitkoffein/tinyweatherforecastgermany/WeatherWarningActivity.java index 66ce47d0..c2b4ea9a 100644 --- a/app/src/main/java/de/kaffeemitkoffein/tinyweatherforecastgermany/WeatherWarningActivity.java +++ b/app/src/main/java/de/kaffeemitkoffein/tinyweatherforecastgermany/WeatherWarningActivity.java @@ -386,6 +386,9 @@ public class WeatherWarningActivity extends Activity { newTextView.setText(spannableString); newTextView.setAutoLinkMask(1); newTextView.setTextSize(12); + if (!WeatherSettings.appReleaseIsUserdebug()){ + newTextView.setTextSize(10); + } newTextView.setVisibility(View.VISIBLE); newTextView.setTextColor(ThemePicker.getColor(context,ThemePicker.ThemeColor.CYAN)); newTextView.setBackgroundColor(ThemePicker.getColor(context,ThemePicker.ThemeColor.PRIMARYLIGHT));