From 2b15f4a722863ac4b01259286e37229ac78e54f5 Mon Sep 17 00:00:00 2001 From: nuclearfog Date: Sat, 2 Oct 2021 14:27:42 +0200 Subject: [PATCH] style fix, changed license text layout Signed-off-by: nuclearfog --- app/build.gradle | 8 +- .../twidda/dialog/LicenseDialog.java | 3 +- app/src/main/res/drawable/info.xml | 9 -- app/src/main/res/values/dimens.xml | 3 +- app/src/main/res/values/styles.xml | 7 + app/src/main/res/xml/licenses.xml | 152 +++++++++++++----- 6 files changed, 125 insertions(+), 57 deletions(-) delete mode 100644 app/src/main/res/drawable/info.xml diff --git a/app/build.gradle b/app/build.gradle index 0c393bcabc..d2b037fec7 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,6 +1,8 @@ -apply plugin: 'com.android.application' -apply plugin: 'io.michaelrocks.paranoid' -apply plugin: 'ru.cleverpumpkin.proguard-dictionaries-generator' +plugins { + id 'com.android.application' + id 'io.michaelrocks.paranoid' + id 'ru.cleverpumpkin.proguard-dictionaries-generator' +} android { buildToolsVersion '30.0.3' diff --git a/app/src/main/java/org/nuclearfog/twidda/dialog/LicenseDialog.java b/app/src/main/java/org/nuclearfog/twidda/dialog/LicenseDialog.java index 09583db9e7..950ad4fafe 100644 --- a/app/src/main/java/org/nuclearfog/twidda/dialog/LicenseDialog.java +++ b/app/src/main/java/org/nuclearfog/twidda/dialog/LicenseDialog.java @@ -18,12 +18,13 @@ public class LicenseDialog extends Dialog { * */ public LicenseDialog(Context context) { - super(context, R.style.AppInfoDialog); + super(context, R.style.LicenseDialog); setContentView(R.layout.dialog_licenses); LicenseView licenseView = findViewById(R.id.license_view); try { licenseView.setLicenses(R.xml.licenses); } catch (Exception err) { + err.printStackTrace(); dismiss(); } } diff --git a/app/src/main/res/drawable/info.xml b/app/src/main/res/drawable/info.xml deleted file mode 100644 index 8206729379..0000000000 --- a/app/src/main/res/drawable/info.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml index f398d49bf4..625bb4af9d 100644 --- a/app/src/main/res/values/dimens.xml +++ b/app/src/main/res/values/dimens.xml @@ -184,7 +184,8 @@ 5dp - + + 8sp 20dp diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 860eb12be1..6c43902019 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -35,6 +35,13 @@ true + +