From 20e4ea649a42f41b4d98165ba9645777e3b67bcc Mon Sep 17 00:00:00 2001 From: tenzinjamyangzhs Date: Sat, 1 Jul 2023 13:40:55 +0800 Subject: [PATCH] =?UTF-8?q?fix=20crash=20on=20android=2011,=20set=20minSdk?= =?UTF-8?q?=20to=2028.=E4=BF=AE=E5=A4=8D=E4=BA=86=E5=AE=89=E5=8D=9311?= =?UTF-8?q?=E4=B8=8A=E9=97=AA=E9=80=80=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=8C?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E6=9C=80=E5=B0=8F=E5=AE=89=E5=8D=93=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E7=89=88=E6=9C=AC=E4=B8=BA=E5=AE=89=E5=8D=939?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 2 +- app/src/main/res/values-night/themes.xml | 2 +- app/src/main/res/values-v31/colors.xml | 27 +++++++++++++ app/src/main/res/values/colors.xml | 48 ++++++++++++------------ app/src/main/res/values/themes.xml | 2 +- 5 files changed, 54 insertions(+), 27 deletions(-) create mode 100644 app/src/main/res/values-v31/colors.xml diff --git a/app/build.gradle b/app/build.gradle index 7ab39f4..0e21509 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -8,7 +8,7 @@ android { defaultConfig { applicationId "com.ttt.calculator" - minSdk 31 + minSdk 28 targetSdk 34 versionCode 1 versionName "1.2" diff --git a/app/src/main/res/values-night/themes.xml b/app/src/main/res/values-night/themes.xml index b08565e..f07775f 100644 --- a/app/src/main/res/values-night/themes.xml +++ b/app/src/main/res/values-night/themes.xml @@ -12,7 +12,7 @@ ?attr/background_edit false - false + false ?attr/background_calculator @color/background_calculator_night diff --git a/app/src/main/res/values-v31/colors.xml b/app/src/main/res/values-v31/colors.xml new file mode 100644 index 0000000..0419830 --- /dev/null +++ b/app/src/main/res/values-v31/colors.xml @@ -0,0 +1,27 @@ + + + @android:color/system_accent3_800 + @android:color/system_accent2_10 + @android:color/system_accent3_50 + @android:color/system_accent2_100 + @android:color/system_accent2_50 + @android:color/system_accent2_200 + @android:color/system_accent3_200 + @android:color/system_accent3_400 + @android:color/system_accent1_200 + @android:color/system_accent1_400 + @android:color/system_accent1_100 + @android:color/system_accent1_300 + @android:color/system_accent1_300 + @android:color/system_accent2_1000 + @android:color/system_accent2_900 + @android:color/system_accent2_900 + @android:color/system_accent2_700 + @android:color/system_accent3_700 + @android:color/system_accent3_500 + @android:color/system_accent1_700 + @android:color/system_accent1_500 + @android:color/system_accent1_800 + @android:color/system_accent1_600 + @android:color/system_accent1_700 + \ No newline at end of file diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index 756a06a..956a749 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -7,31 +7,31 @@ #FF018786 #FF000000 #FFFFFFFF - @android:color/system_accent3_800 - @android:color/system_accent3_50 - @android:color/system_accent2_10 - @android:color/system_accent2_100 - @android:color/system_accent2_50 - @android:color/system_accent2_200 - @android:color/system_accent3_200 - @android:color/system_accent3_400 - @android:color/system_accent1_200 - @android:color/system_accent1_400 - @android:color/system_accent1_100 - @android:color/system_accent1_300 - @android:color/system_accent1_300 + #212121 + #FAFAFA + #E1F5FE + #B2DFDB + #689F38 + #004D40 + #D32F2F + #B71C1C + #C2185B + #880E4F + #0097A7 + #006064 + #455A64 - @android:color/system_accent2_1000 - @android:color/system_accent2_900 - @android:color/system_accent2_900 - @android:color/system_accent2_700 - @android:color/system_accent3_700 - @android:color/system_accent3_500 - @android:color/system_accent1_700 - @android:color/system_accent1_500 - @android:color/system_accent1_800 - @android:color/system_accent1_600 - @android:color/system_accent1_700 + #212121 + #263238 + #1B5E20 + #388E3C + #B71C1C + #D32F2F + #880E4F + #C2185B + #006064 + #689F38 + #00796B #F44336 \ No newline at end of file diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index 6b0975a..9ddaa43 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -12,7 +12,7 @@ ?attr/background_edit true - true + true ?attr/background_calculator @color/background_calculator