From 74294a3172426dd909947b4d63c412b043f15c67 Mon Sep 17 00:00:00 2001 From: Marc Auberer Date: Thu, 2 Jul 2020 16:05:33 +0200 Subject: [PATCH 01/19] Hide options menu in color picker mode --- .../chillibits/colorconverter/ui/activity/MainActivity.kt | 5 ++++- app/src/main/res/values-de/strings.xml | 2 +- app/src/main/res/values-de/strings_colors.xml | 2 +- app/src/main/res/values-es/strings.xml | 2 +- app/src/main/res/values-es/strings_colors.xml | 2 +- app/src/main/res/values-fr/strings.xml | 2 +- app/src/main/res/values-fr/strings_colors.xml | 2 +- app/src/main/res/values-ru/strings.xml | 2 +- app/src/main/res/values/strings.xml | 2 +- app/src/main/res/values/strings_colors.xml | 2 +- 10 files changed, 13 insertions(+), 10 deletions(-) diff --git a/app/src/main/java/com/chillibits/colorconverter/ui/activity/MainActivity.kt b/app/src/main/java/com/chillibits/colorconverter/ui/activity/MainActivity.kt index 4d646851..29945e22 100644 --- a/app/src/main/java/com/chillibits/colorconverter/ui/activity/MainActivity.kt +++ b/app/src/main/java/com/chillibits/colorconverter/ui/activity/MainActivity.kt @@ -119,7 +119,10 @@ class MainActivity : AppCompatActivity() { override fun onCreateOptionsMenu(menu: Menu?): Boolean { menuInflater.inflate(R.menu.menu_activity_main, menu) if (InstantApps.isInstantApp(this)) menu?.findItem(R.id.action_install)?.isVisible = true - if (intent.hasExtra(Constants.EXTRA_CHOOSE_COLOR)) menu?.findItem(R.id.action_done)?.isVisible = true + if (intent.hasExtra(Constants.EXTRA_CHOOSE_COLOR)) { + menu?.findItem(R.id.action_done)?.isVisible = true + menu?.findItem(R.id.action_disable_alpha)?.isVisible = false + } menu?.findItem(R.id.action_transparency)?.isVisible = showTransparencyWarning disableAlpha = menu?.findItem(R.id.action_disable_alpha) disableAlpha?.isChecked = isAlphaDisabled diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index 48615e4a..97f99922 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: de, German Exported by: ChilliBits - Exported at: Tue, 30 Jun 2020 20:30:36 +0100 + Exported at: Thu, 02 Jul 2020 15:04:02 +0100 --> schließen diff --git a/app/src/main/res/values-de/strings_colors.xml b/app/src/main/res/values-de/strings_colors.xml index 38fe9ad5..3a0b8f06 100644 --- a/app/src/main/res/values-de/strings_colors.xml +++ b/app/src/main/res/values-de/strings_colors.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: de, German Exported by: ChilliBits - Exported at: Tue, 30 Jun 2020 20:30:36 +0100 + Exported at: Thu, 02 Jul 2020 15:04:02 +0100 --> Aliceblau diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index 55a8f83a..37365ec7 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: es, Spanish Exported by: ChilliBits - Exported at: Tue, 30 Jun 2020 20:30:36 +0100 + Exported at: Thu, 02 Jul 2020 15:04:02 +0100 --> cerrar diff --git a/app/src/main/res/values-es/strings_colors.xml b/app/src/main/res/values-es/strings_colors.xml index a9b58ad3..bf82fa34 100644 --- a/app/src/main/res/values-es/strings_colors.xml +++ b/app/src/main/res/values-es/strings_colors.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: es, Spanish Exported by: ChilliBits - Exported at: Tue, 30 Jun 2020 20:30:36 +0100 + Exported at: Thu, 02 Jul 2020 15:04:02 +0100 --> Azul Alicia diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index 3e8b04f5..70d9953e 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: fr, French Exported by: ChilliBits - Exported at: Tue, 30 Jun 2020 20:30:36 +0100 + Exported at: Thu, 02 Jul 2020 15:04:02 +0100 --> fermer diff --git a/app/src/main/res/values-fr/strings_colors.xml b/app/src/main/res/values-fr/strings_colors.xml index 0d165f73..a58ad97b 100644 --- a/app/src/main/res/values-fr/strings_colors.xml +++ b/app/src/main/res/values-fr/strings_colors.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: fr, French Exported by: ChilliBits - Exported at: Tue, 30 Jun 2020 20:30:36 +0100 + Exported at: Thu, 02 Jul 2020 15:04:02 +0100 --> Bleu alice diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index 2812aa57..3a23c24b 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: ru, Russian Exported by: ChilliBits - Exported at: Tue, 30 Jun 2020 20:30:36 +0100 + Exported at: Thu, 02 Jul 2020 15:04:02 +0100 --> закрыть diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 14eac4e4..61a28f70 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: en, English Exported by: ChilliBits - Exported at: Tue, 30 Jun 2020 20:30:35 +0100 + Exported at: Thu, 02 Jul 2020 15:04:02 +0100 --> close diff --git a/app/src/main/res/values/strings_colors.xml b/app/src/main/res/values/strings_colors.xml index 8520a364..1d8c0ee3 100644 --- a/app/src/main/res/values/strings_colors.xml +++ b/app/src/main/res/values/strings_colors.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: en, English Exported by: ChilliBits - Exported at: Tue, 30 Jun 2020 20:31:19 +0100 + Exported at: Thu, 02 Jul 2020 15:04:02 +0100 --> Alice Blue From 303da7cdba472f0b1a9c85f54f140b623bc9b0a1 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Sun, 5 Jul 2020 22:10:49 +0000 Subject: [PATCH 02/19] Bump fastadapter from 5.1.0 to 5.2.0 Bumps [fastadapter](https://github.com/mikepenz/FastAdapter) from 5.1.0 to 5.2.0. - [Release notes](https://github.com/mikepenz/FastAdapter/releases) - [Changelog](https://github.com/mikepenz/FastAdapter/blob/develop/CHANGELOG.md) - [Commits](https://github.com/mikepenz/FastAdapter/compare/v5.1.0...v5.2.0) Signed-off-by: dependabot-preview[bot] --- app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index 1e34644b..700696be 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -51,7 +51,7 @@ dependencies { implementation 'com.github.skydoves:colorpickerview:2.1.6' implementation 'com.mikepenz:iconics-core:5.0.3' implementation 'com.mikepenz:material-design-iconic-typeface:2.2.0.6-kotlin@aar' - implementation 'com.mikepenz:fastadapter:5.1.0' + implementation 'com.mikepenz:fastadapter:5.2.0' implementation 'com.github.javiersantos:MaterialStyledDialogs:3.0.1' // dependencies for testing From 1b96fc605378150bbfaef193d9bea5dba6cb6249 Mon Sep 17 00:00:00 2001 From: Marc Auberer Date: Mon, 6 Jul 2020 13:08:32 +0200 Subject: [PATCH 03/19] Add Russian color string file --- .idea/misc.xml | 2 +- app/build.gradle | 6 +- app/src/main/res/values-de/strings.xml | 2 +- app/src/main/res/values-de/strings_colors.xml | 2 +- app/src/main/res/values-es/strings.xml | 2 +- app/src/main/res/values-es/strings_colors.xml | 2 +- app/src/main/res/values-fr/strings.xml | 2 +- app/src/main/res/values-fr/strings_colors.xml | 2 +- app/src/main/res/values-ru/strings.xml | 6 +- app/src/main/res/values-ru/strings_colors.xml | 155 ++++++++++++++++++ app/src/main/res/values/strings.xml | 2 +- app/src/main/res/values/strings_colors.xml | 2 +- local.properties | 4 +- 13 files changed, 172 insertions(+), 17 deletions(-) create mode 100644 app/src/main/res/values-ru/strings_colors.xml diff --git a/.idea/misc.xml b/.idea/misc.xml index 707ee6e6..2dc54c48 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle index 700696be..d7efc3f7 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -109,9 +109,9 @@ task downloadTranslations { // Main string file def f = new File("${project.projectDir}/src/main/res/values-ru/strings.xml") new URL("https://localise.biz/api/export/locale/ru.xml?format=android&key=${apiKey}").withInputStream{ i -> f.withOutputStream{ it << i }} - // Color file (not translated to Russian yet) - //f = new File("${project.projectDir}/src/main/res/values-ru/strings_colors.xml") - //new URL("https://localise.biz/api/export/locale/ru.xml?format=android&key=${apiKeyColors}").withInputStream{ i -> f.withOutputStream{ it << i }} + // Color file + f = new File("${project.projectDir}/src/main/res/values-ru/strings_colors.xml") + new URL("https://localise.biz/api/export/locale/ru.xml?format=android&key=${apiKeyColors}").withInputStream{ i -> f.withOutputStream{ it << i }} } } diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index 97f99922..1d466859 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: de, German Exported by: ChilliBits - Exported at: Thu, 02 Jul 2020 15:04:02 +0100 + Exported at: Mon, 06 Jul 2020 12:07:02 +0100 --> schließen diff --git a/app/src/main/res/values-de/strings_colors.xml b/app/src/main/res/values-de/strings_colors.xml index 3a0b8f06..0679de9f 100644 --- a/app/src/main/res/values-de/strings_colors.xml +++ b/app/src/main/res/values-de/strings_colors.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: de, German Exported by: ChilliBits - Exported at: Thu, 02 Jul 2020 15:04:02 +0100 + Exported at: Sun, 05 Jul 2020 23:13:46 +0100 --> Aliceblau diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index 37365ec7..2e68a108 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: es, Spanish Exported by: ChilliBits - Exported at: Thu, 02 Jul 2020 15:04:02 +0100 + Exported at: Mon, 06 Jul 2020 12:07:02 +0100 --> cerrar diff --git a/app/src/main/res/values-es/strings_colors.xml b/app/src/main/res/values-es/strings_colors.xml index bf82fa34..f9cf07a9 100644 --- a/app/src/main/res/values-es/strings_colors.xml +++ b/app/src/main/res/values-es/strings_colors.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: es, Spanish Exported by: ChilliBits - Exported at: Thu, 02 Jul 2020 15:04:02 +0100 + Exported at: Sun, 05 Jul 2020 23:13:46 +0100 --> Azul Alicia diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index 70d9953e..d3aec68b 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: fr, French Exported by: ChilliBits - Exported at: Thu, 02 Jul 2020 15:04:02 +0100 + Exported at: Mon, 06 Jul 2020 12:07:02 +0100 --> fermer diff --git a/app/src/main/res/values-fr/strings_colors.xml b/app/src/main/res/values-fr/strings_colors.xml index a58ad97b..50dca49a 100644 --- a/app/src/main/res/values-fr/strings_colors.xml +++ b/app/src/main/res/values-fr/strings_colors.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: fr, French Exported by: ChilliBits - Exported at: Thu, 02 Jul 2020 15:04:02 +0100 + Exported at: Sun, 05 Jul 2020 23:13:45 +0100 --> Bleu alice diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index 3a23c24b..0d5d4141 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: ru, Russian Exported by: ChilliBits - Exported at: Thu, 02 Jul 2020 15:04:02 +0100 + Exported at: Mon, 06 Jul 2020 12:07:02 +0100 --> закрыть @@ -30,7 +30,7 @@ Если Вам нравится наше приложение, пожалуйста, потратьте минуту и ​​оцените Color Converter на 5 звезд в Google Play! Рекомендовать приложение Рекомендовать - Порекомендовать Color Converter друзьям! + Порекомендуйте Color Converter друзьям! Color Converter: Преобразование цветов, выбор цвета с изображения и многое другое! Легкий инструмент для программистов и дизайнеров.\u0020\u0020Скачать в Google Play: \nhttps://play.google.com/store/apps/details?id=com.mrgames13.jimdo.colorconverter Коснитесь цвета, чтобы применить Оценить @@ -52,7 +52,7 @@ Действие отключено Выбрать цвет с фото - Установите приложение + Установить приложение Эта функция не поддерживается в мгновенной версии приложения.\u0020\u0020Пожалуйста, установите приложение, чтобы использовать эту функцию. Установите это приложение, чтобы использовать все функции, а также функции, которые мы не можем поддерживать в мгновенной версии приложения. Для работы функции требуются разрешения. diff --git a/app/src/main/res/values-ru/strings_colors.xml b/app/src/main/res/values-ru/strings_colors.xml new file mode 100644 index 00000000..8b7bfd1c --- /dev/null +++ b/app/src/main/res/values-ru/strings_colors.xml @@ -0,0 +1,155 @@ + + + + + + + Античный Белый + + Аквамарин + Лазурный + Бежевый + + Черный + Миндальный + Синий + Сине-фиолетовый + Коричневый + + Кадетский синий + Шартрез + Шоколадный + Коралловый + Васильковый + Кукурузный шелк + Малиновый + Зеленовато-синий + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 61a28f70..b93335cc 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: en, English Exported by: ChilliBits - Exported at: Thu, 02 Jul 2020 15:04:02 +0100 + Exported at: Mon, 06 Jul 2020 12:07:01 +0100 --> close diff --git a/app/src/main/res/values/strings_colors.xml b/app/src/main/res/values/strings_colors.xml index 1d8c0ee3..8d0db925 100644 --- a/app/src/main/res/values/strings_colors.xml +++ b/app/src/main/res/values/strings_colors.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: en, English Exported by: ChilliBits - Exported at: Thu, 02 Jul 2020 15:04:02 +0100 + Exported at: Sun, 05 Jul 2020 23:13:45 +0100 --> Alice Blue diff --git a/local.properties b/local.properties index b8520d04..0ff9baf6 100644 --- a/local.properties +++ b/local.properties @@ -8,5 +8,5 @@ # Location of the SDK. This is only used by Gradle. # For customization when using a Version Control System, please read the # header note. -#Fri Jun 26 16:37:25 CEST 2020 -sdk.dir=C\:\\Users\\i516467\\AppData\\Local\\Android\\Sdk +#Mon Jul 06 13:06:40 CEST 2020 +sdk.dir=C\:\\Users\\Marc\\AppData\\Local\\AndroidSDK From b2691e739b8603283214ecac6d8344597c7ba4a2 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Wed, 8 Jul 2020 02:37:38 +0000 Subject: [PATCH 04/19] Bump constraintlayout from 2.0.0-beta7 to 2.0.0-beta8 Bumps constraintlayout from 2.0.0-beta7 to 2.0.0-beta8. Signed-off-by: dependabot-preview[bot] --- app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index d7efc3f7..2d55e9c0 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -38,7 +38,7 @@ dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation 'androidx.appcompat:appcompat:1.3.0-alpha01' implementation 'androidx.core:core-ktx:1.5.0-alpha01' - implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta7' + implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta8' implementation 'com.google.android.instantapps:instantapps:1.1.0' implementation 'com.google.android.play:core:1.7.3' implementation 'androidx.palette:palette-ktx:1.0.0' From 1cb51ed74e6b133be3320c70a9f9c6a9f3a2cb0c Mon Sep 17 00:00:00 2001 From: Marc Auberer Date: Wed, 8 Jul 2020 23:47:38 +0200 Subject: [PATCH 05/19] Upgrade to targetApiVersion 30 --- app/build.gradle | 4 ++-- .../chillibits/colorconverter/ui/activity/ImageActivity.kt | 2 +- app/src/main/res/values-de/strings.xml | 2 +- app/src/main/res/values-de/strings_colors.xml | 2 +- app/src/main/res/values-es/strings.xml | 2 +- app/src/main/res/values-es/strings_colors.xml | 2 +- app/src/main/res/values-fr/strings.xml | 2 +- app/src/main/res/values-fr/strings_colors.xml | 2 +- app/src/main/res/values-ru/strings.xml | 2 +- app/src/main/res/values-ru/strings_colors.xml | 2 +- app/src/main/res/values/strings.xml | 2 +- app/src/main/res/values/strings_colors.xml | 2 +- 12 files changed, 13 insertions(+), 13 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index d7efc3f7..1675025d 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -7,12 +7,12 @@ apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' android { - compileSdkVersion 29 + compileSdkVersion 30 buildToolsVersion "29.0.3" defaultConfig { applicationId "com.mrgames13.jimdo.colorconverter" minSdkVersion 21 - targetSdkVersion 29 + targetSdkVersion 30 versionCode 2300 versionName "2.3.0" vectorDrawables.useSupportLibrary = true diff --git a/app/src/main/java/com/chillibits/colorconverter/ui/activity/ImageActivity.kt b/app/src/main/java/com/chillibits/colorconverter/ui/activity/ImageActivity.kt index edf331b9..74f49911 100644 --- a/app/src/main/java/com/chillibits/colorconverter/ui/activity/ImageActivity.kt +++ b/app/src/main/java/com/chillibits/colorconverter/ui/activity/ImageActivity.kt @@ -116,7 +116,7 @@ class ImageActivity : AppCompatActivity() { if(intent.hasExtra(Constants.EXTRA_IMAGE_URI)) { // Load default image - val defaultImageUri = intent.getParcelableExtra(Constants.EXTRA_IMAGE_URI) as Uri + val defaultImageUri = intent.getParcelableExtra(Constants.EXTRA_IMAGE_URI) val bitmap = MediaStore.Images.Media.getBitmap(contentResolver, defaultImageUri) applyImage(bitmap) } else if(savedInstanceState == null) { diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index 1d466859..b28cd293 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: de, German Exported by: ChilliBits - Exported at: Mon, 06 Jul 2020 12:07:02 +0100 + Exported at: Wed, 08 Jul 2020 03:41:17 +0100 --> schließen diff --git a/app/src/main/res/values-de/strings_colors.xml b/app/src/main/res/values-de/strings_colors.xml index 0679de9f..c70997ac 100644 --- a/app/src/main/res/values-de/strings_colors.xml +++ b/app/src/main/res/values-de/strings_colors.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: de, German Exported by: ChilliBits - Exported at: Sun, 05 Jul 2020 23:13:46 +0100 + Exported at: Wed, 08 Jul 2020 10:29:07 +0100 --> Aliceblau diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index 2e68a108..a0636d6b 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: es, Spanish Exported by: ChilliBits - Exported at: Mon, 06 Jul 2020 12:07:02 +0100 + Exported at: Wed, 08 Jul 2020 03:41:17 +0100 --> cerrar diff --git a/app/src/main/res/values-es/strings_colors.xml b/app/src/main/res/values-es/strings_colors.xml index f9cf07a9..e8a50f32 100644 --- a/app/src/main/res/values-es/strings_colors.xml +++ b/app/src/main/res/values-es/strings_colors.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: es, Spanish Exported by: ChilliBits - Exported at: Sun, 05 Jul 2020 23:13:46 +0100 + Exported at: Wed, 08 Jul 2020 10:29:07 +0100 --> Azul Alicia diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index d3aec68b..fd7479c2 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: fr, French Exported by: ChilliBits - Exported at: Mon, 06 Jul 2020 12:07:02 +0100 + Exported at: Wed, 08 Jul 2020 03:41:16 +0100 --> fermer diff --git a/app/src/main/res/values-fr/strings_colors.xml b/app/src/main/res/values-fr/strings_colors.xml index 50dca49a..c502aec0 100644 --- a/app/src/main/res/values-fr/strings_colors.xml +++ b/app/src/main/res/values-fr/strings_colors.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: fr, French Exported by: ChilliBits - Exported at: Sun, 05 Jul 2020 23:13:45 +0100 + Exported at: Wed, 08 Jul 2020 10:29:07 +0100 --> Bleu alice diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index 0d5d4141..d6753a94 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: ru, Russian Exported by: ChilliBits - Exported at: Mon, 06 Jul 2020 12:07:02 +0100 + Exported at: Wed, 08 Jul 2020 03:41:17 +0100 --> закрыть diff --git a/app/src/main/res/values-ru/strings_colors.xml b/app/src/main/res/values-ru/strings_colors.xml index 8b7bfd1c..b2b3d354 100644 --- a/app/src/main/res/values-ru/strings_colors.xml +++ b/app/src/main/res/values-ru/strings_colors.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: ru, Russian Exported by: ChilliBits - Exported at: Mon, 06 Jul 2020 12:07:02 +0100 + Exported at: Wed, 08 Jul 2020 10:29:07 +0100 --> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index b93335cc..51a608df 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: en, English Exported by: ChilliBits - Exported at: Mon, 06 Jul 2020 12:07:01 +0100 + Exported at: Wed, 08 Jul 2020 03:41:16 +0100 --> close diff --git a/app/src/main/res/values/strings_colors.xml b/app/src/main/res/values/strings_colors.xml index 8d0db925..bb8de675 100644 --- a/app/src/main/res/values/strings_colors.xml +++ b/app/src/main/res/values/strings_colors.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: en, English Exported by: ChilliBits - Exported at: Sun, 05 Jul 2020 23:13:45 +0100 + Exported at: Wed, 08 Jul 2020 10:29:06 +0100 --> Alice Blue From bc8af1c7e7bc56f0d0dc27cdfc0cbe5a02d435a6 Mon Sep 17 00:00:00 2001 From: Marc Auberer Date: Mon, 13 Jul 2020 11:18:18 +0200 Subject: [PATCH 06/19] Apply compatibility changes due to the upgrade to targetApiVersion 30 --- .../ui/activity/ColorSelectionActivity.kt | 45 +++++++------- .../ui/activity/ImageActivity.kt | 41 +++++++------ .../ui/activity/MainActivity.kt | 58 ++++++++++--------- app/src/main/res/values-de/strings.xml | 2 +- app/src/main/res/values-de/strings_colors.xml | 2 +- app/src/main/res/values-es/strings.xml | 2 +- app/src/main/res/values-es/strings_colors.xml | 2 +- app/src/main/res/values-fr/strings.xml | 2 +- app/src/main/res/values-fr/strings_colors.xml | 2 +- app/src/main/res/values-ru/strings.xml | 2 +- app/src/main/res/values-ru/strings_colors.xml | 2 +- app/src/main/res/values/strings.xml | 2 +- app/src/main/res/values/strings_colors.xml | 2 +- 13 files changed, 87 insertions(+), 77 deletions(-) diff --git a/app/src/main/java/com/chillibits/colorconverter/ui/activity/ColorSelectionActivity.kt b/app/src/main/java/com/chillibits/colorconverter/ui/activity/ColorSelectionActivity.kt index 01929030..4d9eca21 100644 --- a/app/src/main/java/com/chillibits/colorconverter/ui/activity/ColorSelectionActivity.kt +++ b/app/src/main/java/com/chillibits/colorconverter/ui/activity/ColorSelectionActivity.kt @@ -39,16 +39,20 @@ class ColorSelectionActivity : AppCompatActivity() { setContentView(R.layout.activity_color_selection) window.run { - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { - decorView.systemUiVisibility = View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION or View.SYSTEM_UI_FLAG_LAYOUT_STABLE or View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR - decorView.setOnApplyWindowInsetsListener { _, insets -> - toolbar?.setPadding(0, insets.systemWindowInsetTop, 0, 0) - savedColors.setPadding(0, 0, 0, insets.systemWindowInsetBottom) - insets + when { + Build.VERSION.SDK_INT >= Build.VERSION_CODES.R -> setDecorFitsSystemWindows(false) + Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q -> { + decorView.systemUiVisibility = View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION or View.SYSTEM_UI_FLAG_LAYOUT_STABLE or View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR + decorView.setOnApplyWindowInsetsListener { _, insets -> + toolbar?.setPadding(0, insets.systemWindowInsetTop, 0, 0) + savedColors.setPadding(0, 0, 0, insets.systemWindowInsetBottom) + insets + } + } + else -> { + addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS) + statusBarColor = ContextCompat.getColor(context, R.color.colorPrimaryDark) } - } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { - addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS) - statusBarColor = ContextCompat.getColor(context, R.color.colorPrimaryDark) } } @@ -137,19 +141,14 @@ class ColorSelectionActivity : AppCompatActivity() { } private fun animateAppAndStatusBar(toColor: Int) { - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { - val animator = ViewAnimationUtils.createCircularReveal(reveal, toolbar.width / 2, toolbar.height / 2, 0f, toolbar.width / 2.0f + 50) - animator.addListener(object : AnimatorListenerAdapter() { - override fun onAnimationStart(animation: Animator) { reveal.setBackgroundColor(toColor) } - override fun onAnimationEnd(animation: Animator) { revealBackground.setBackgroundColor(toColor) } - }) - - animator.duration = 480 - animator.start() - reveal.visibility = View.VISIBLE - } else { - reveal.setBackgroundColor(toColor) - revealBackground.setBackgroundColor(toColor) - } + val animator = ViewAnimationUtils.createCircularReveal(reveal, toolbar.width / 2, toolbar.height / 2, 0f, toolbar.width / 2.0f + 50) + animator.addListener(object : AnimatorListenerAdapter() { + override fun onAnimationStart(animation: Animator) { reveal.setBackgroundColor(toColor) } + override fun onAnimationEnd(animation: Animator) { revealBackground.setBackgroundColor(toColor) } + }) + + animator.duration = 480 + animator.start() + reveal.visibility = View.VISIBLE } } \ No newline at end of file diff --git a/app/src/main/java/com/chillibits/colorconverter/ui/activity/ImageActivity.kt b/app/src/main/java/com/chillibits/colorconverter/ui/activity/ImageActivity.kt index 74f49911..1100bf07 100644 --- a/app/src/main/java/com/chillibits/colorconverter/ui/activity/ImageActivity.kt +++ b/app/src/main/java/com/chillibits/colorconverter/ui/activity/ImageActivity.kt @@ -68,19 +68,7 @@ class ImageActivity : AppCompatActivity() { setContentView(R.layout.activity_image) // Apply window insets - window.run { - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { - decorView.systemUiVisibility = View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION or View.SYSTEM_UI_FLAG_LAYOUT_STABLE or View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR - decorView.setOnApplyWindowInsetsListener { _, insets -> - toolbar?.setPadding(0, insets.systemWindowInsetTop, 0, 0) - colorButtonContainer.setPadding(dpToPx(3), dpToPx(3), dpToPx(3), insets.systemWindowInsetBottom + dpToPx(3)) - insets - } - } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { - addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS) - statusBarColor = ContextCompat.getColor(context, R.color.colorPrimaryDark) - } - } + applyWindowInsets() // Initialize toolbar setSupportActionBar(toolbar) @@ -170,6 +158,27 @@ class ImageActivity : AppCompatActivity() { } } + private fun applyWindowInsets() { + window.run { + when { + Build.VERSION.SDK_INT >= Build.VERSION_CODES.R -> setDecorFitsSystemWindows(false) + Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q -> { + decorView.systemUiVisibility = + View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION or View.SYSTEM_UI_FLAG_LAYOUT_STABLE or View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR + decorView.setOnApplyWindowInsetsListener { _, insets -> + toolbar?.setPadding(0, insets.systemWindowInsetTop, 0, 0) + colorButtonContainer.setPadding(dpToPx(3), dpToPx(3), dpToPx(3), insets.systemWindowInsetBottom + dpToPx(3)) + insets + } + } + else -> { + addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS) + statusBarColor = ContextCompat.getColor(context, R.color.colorPrimaryDark) + } + } + } + } + private fun applyRotation(source: Bitmap, path: String) = when (ExifInterface(path).getAttributeInt(ExifInterface.TAG_ORIENTATION, ExifInterface.ORIENTATION_UNDEFINED)) { ExifInterface.ORIENTATION_ROTATE_90 -> rotateImage(source, 90F) ExifInterface.ORIENTATION_ROTATE_180 -> rotateImage(source, 180F) @@ -218,11 +227,7 @@ class ImageActivity : AppCompatActivity() { } else { if(initialized) { val colorName = cnt.getColorNameFromColor(com.chillibits.colorconverter.model.Color(0, "", valueSelectedColor, 0)) - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { - tts.speak(colorName, TextToSpeech.QUEUE_FLUSH, null, null) - } else { - tts.speak(colorName, TextToSpeech.QUEUE_FLUSH, null) - } + tts.speak(colorName, TextToSpeech.QUEUE_FLUSH, null, null) } else { Toast.makeText(this, R.string.initialization_failed, Toast.LENGTH_SHORT).show() } diff --git a/app/src/main/java/com/chillibits/colorconverter/ui/activity/MainActivity.kt b/app/src/main/java/com/chillibits/colorconverter/ui/activity/MainActivity.kt index 29945e22..a7b05dcb 100644 --- a/app/src/main/java/com/chillibits/colorconverter/ui/activity/MainActivity.kt +++ b/app/src/main/java/com/chillibits/colorconverter/ui/activity/MainActivity.kt @@ -61,20 +61,7 @@ class MainActivity : AppCompatActivity() { setContentView(R.layout.activity_main) // Apply window insets - window.run { - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { - decorView.systemUiVisibility = View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION or View.SYSTEM_UI_FLAG_LAYOUT_STABLE or View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR - decorView.setOnApplyWindowInsetsListener { _, insets -> - toolbar?.setPadding(0, insets.systemWindowInsetTop, 0, 0) - scrollContainer.setPadding(0, 0, 0, insets.systemWindowInsetBottom) - finishWithColorWrapper.setPadding(0, 0, 0, insets.systemWindowInsetBottom) - insets - } - } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { - addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS) - statusBarColor = ContextCompat.getColor(context, R.color.colorPrimaryDark) - } - } + applyWindowInsets() // Initialize toolbar setSupportActionBar(toolbar) @@ -180,6 +167,28 @@ class MainActivity : AppCompatActivity() { } } + private fun applyWindowInsets() { + window.run { + when { + Build.VERSION.SDK_INT >= Build.VERSION_CODES.R -> setDecorFitsSystemWindows(false) + Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q -> { + decorView.systemUiVisibility = + View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION or View.SYSTEM_UI_FLAG_LAYOUT_STABLE or View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR + decorView.setOnApplyWindowInsetsListener { _, insets -> + toolbar?.setPadding(0, insets.systemWindowInsetTop, 0, 0) + scrollContainer.setPadding(0, 0, 0, insets.systemWindowInsetBottom) + finishWithColorWrapper.setPadding(0, 0, 0, insets.systemWindowInsetBottom) + insets + } + } + else -> { + addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS) + statusBarColor = ContextCompat.getColor(context, R.color.colorPrimaryDark) + } + } + } + } + private fun pickColorFromImage(defaultImageUri: Uri? = null) { if (InstantApps.isInstantApp(this@MainActivity)) { showInstantAppInstallDialog(R.string.instant_install_m) @@ -364,13 +373,14 @@ class MainActivity : AppCompatActivity() { displayHex.setTextColor(textColor) displayHsv.setTextColor(textColor) displayCmyk.setTextColor(textColor) - copyName.colorFilter = BlendModeColorFilterCompat.createBlendModeColorFilterCompat(textColor, BlendModeCompat.SRC_ATOP) - copyArgb.colorFilter = BlendModeColorFilterCompat.createBlendModeColorFilterCompat(textColor, BlendModeCompat.SRC_ATOP) - copyHex.colorFilter = BlendModeColorFilterCompat.createBlendModeColorFilterCompat(textColor, BlendModeCompat.SRC_ATOP) - copyHsv.colorFilter = BlendModeColorFilterCompat.createBlendModeColorFilterCompat(textColor, BlendModeCompat.SRC_ATOP) - copyCmyk.colorFilter = BlendModeColorFilterCompat.createBlendModeColorFilterCompat(textColor, BlendModeCompat.SRC_ATOP) - saveColor.colorFilter = BlendModeColorFilterCompat.createBlendModeColorFilterCompat(textColor, BlendModeCompat.SRC_ATOP) - loadColor.colorFilter = BlendModeColorFilterCompat.createBlendModeColorFilterCompat(textColor, BlendModeCompat.SRC_ATOP) + val colorFilter = BlendModeColorFilterCompat.createBlendModeColorFilterCompat(textColor, BlendModeCompat.SRC_ATOP) + copyName.colorFilter = colorFilter + copyArgb.colorFilter = colorFilter + copyHex.colorFilter = colorFilter + copyHsv.colorFilter = colorFilter + copyCmyk.colorFilter = colorFilter + saveColor.colorFilter = colorFilter + loadColor.colorFilter = colorFilter // Update animated views ValueAnimator.ofInt(colorAlpha.progress, color.alpha).apply { @@ -405,11 +415,7 @@ class MainActivity : AppCompatActivity() { } else { if(initialized) { val colorName = cnt.getColorNameFromColor(selectedColor) - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { - tts.speak(colorName, TextToSpeech.QUEUE_FLUSH, null, null) - } else { - tts.speak(colorName, TextToSpeech.QUEUE_FLUSH, null) - } + tts.speak(colorName, TextToSpeech.QUEUE_FLUSH, null, null) } else { Toast.makeText(this, R.string.initialization_failed, Toast.LENGTH_SHORT).show() } diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index b28cd293..81682eac 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: de, German Exported by: ChilliBits - Exported at: Wed, 08 Jul 2020 03:41:17 +0100 + Exported at: Mon, 13 Jul 2020 08:36:53 +0100 --> schließen diff --git a/app/src/main/res/values-de/strings_colors.xml b/app/src/main/res/values-de/strings_colors.xml index c70997ac..e4d438fe 100644 --- a/app/src/main/res/values-de/strings_colors.xml +++ b/app/src/main/res/values-de/strings_colors.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: de, German Exported by: ChilliBits - Exported at: Wed, 08 Jul 2020 10:29:07 +0100 + Exported at: Mon, 13 Jul 2020 08:36:53 +0100 --> Aliceblau diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index a0636d6b..d019e4ee 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: es, Spanish Exported by: ChilliBits - Exported at: Wed, 08 Jul 2020 03:41:17 +0100 + Exported at: Mon, 13 Jul 2020 08:36:53 +0100 --> cerrar diff --git a/app/src/main/res/values-es/strings_colors.xml b/app/src/main/res/values-es/strings_colors.xml index e8a50f32..81048642 100644 --- a/app/src/main/res/values-es/strings_colors.xml +++ b/app/src/main/res/values-es/strings_colors.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: es, Spanish Exported by: ChilliBits - Exported at: Wed, 08 Jul 2020 10:29:07 +0100 + Exported at: Mon, 13 Jul 2020 08:36:53 +0100 --> Azul Alicia diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index fd7479c2..9a5ce0e4 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: fr, French Exported by: ChilliBits - Exported at: Wed, 08 Jul 2020 03:41:16 +0100 + Exported at: Mon, 13 Jul 2020 08:36:53 +0100 --> fermer diff --git a/app/src/main/res/values-fr/strings_colors.xml b/app/src/main/res/values-fr/strings_colors.xml index c502aec0..6a6cb085 100644 --- a/app/src/main/res/values-fr/strings_colors.xml +++ b/app/src/main/res/values-fr/strings_colors.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: fr, French Exported by: ChilliBits - Exported at: Wed, 08 Jul 2020 10:29:07 +0100 + Exported at: Mon, 13 Jul 2020 08:36:53 +0100 --> Bleu alice diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index d6753a94..678f3fe4 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: ru, Russian Exported by: ChilliBits - Exported at: Wed, 08 Jul 2020 03:41:17 +0100 + Exported at: Mon, 13 Jul 2020 08:36:53 +0100 --> закрыть diff --git a/app/src/main/res/values-ru/strings_colors.xml b/app/src/main/res/values-ru/strings_colors.xml index b2b3d354..7bc3008e 100644 --- a/app/src/main/res/values-ru/strings_colors.xml +++ b/app/src/main/res/values-ru/strings_colors.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: ru, Russian Exported by: ChilliBits - Exported at: Wed, 08 Jul 2020 10:29:07 +0100 + Exported at: Mon, 13 Jul 2020 08:36:53 +0100 --> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 51a608df..9f6d9b97 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: en, English Exported by: ChilliBits - Exported at: Wed, 08 Jul 2020 03:41:16 +0100 + Exported at: Mon, 13 Jul 2020 08:36:52 +0100 --> close diff --git a/app/src/main/res/values/strings_colors.xml b/app/src/main/res/values/strings_colors.xml index bb8de675..3a50c79d 100644 --- a/app/src/main/res/values/strings_colors.xml +++ b/app/src/main/res/values/strings_colors.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: en, English Exported by: ChilliBits - Exported at: Wed, 08 Jul 2020 10:29:06 +0100 + Exported at: Mon, 13 Jul 2020 08:36:53 +0100 --> Alice Blue From 14b0590be38dbb3ead136b699fc58f3a887d4a72 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Tue, 14 Jul 2020 07:09:36 +0000 Subject: [PATCH 07/19] Bump fastadapter from 5.2.0 to 5.2.1 Bumps [fastadapter](https://github.com/mikepenz/FastAdapter) from 5.2.0 to 5.2.1. - [Release notes](https://github.com/mikepenz/FastAdapter/releases) - [Changelog](https://github.com/mikepenz/FastAdapter/blob/develop/CHANGELOG.md) - [Commits](https://github.com/mikepenz/FastAdapter/compare/v5.2.0...v5.2.1) Signed-off-by: dependabot-preview[bot] --- app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index d349744f..43b76606 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -51,7 +51,7 @@ dependencies { implementation 'com.github.skydoves:colorpickerview:2.1.6' implementation 'com.mikepenz:iconics-core:5.0.3' implementation 'com.mikepenz:material-design-iconic-typeface:2.2.0.6-kotlin@aar' - implementation 'com.mikepenz:fastadapter:5.2.0' + implementation 'com.mikepenz:fastadapter:5.2.1' implementation 'com.github.javiersantos:MaterialStyledDialogs:3.0.1' // dependencies for testing From 646dde6913b0ab54e7c8f70e0a43452728a3ea97 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Tue, 14 Jul 2020 19:29:16 +0000 Subject: [PATCH 08/19] Bump gradle from 4.0.0 to 4.0.1 Bumps gradle from 4.0.0 to 4.0.1. Signed-off-by: dependabot-preview[bot] --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 41e20875..d17304cb 100644 --- a/build.gradle +++ b/build.gradle @@ -9,7 +9,7 @@ buildscript { jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:4.0.0' + classpath 'com.android.tools.build:gradle:4.0.1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } From 9c3a0ff057a568b9448cea7c5d6d94dfb4de30bc Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Sat, 18 Jul 2020 19:30:38 +0000 Subject: [PATCH 09/19] Bump fastadapter from 5.2.1 to 5.2.2 Bumps [fastadapter](https://github.com/mikepenz/FastAdapter) from 5.2.1 to 5.2.2. - [Release notes](https://github.com/mikepenz/FastAdapter/releases) - [Changelog](https://github.com/mikepenz/FastAdapter/blob/develop/CHANGELOG.md) - [Commits](https://github.com/mikepenz/FastAdapter/compare/v5.2.1...v5.2.2) Signed-off-by: dependabot-preview[bot] --- app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index 43b76606..78f12fae 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -51,7 +51,7 @@ dependencies { implementation 'com.github.skydoves:colorpickerview:2.1.6' implementation 'com.mikepenz:iconics-core:5.0.3' implementation 'com.mikepenz:material-design-iconic-typeface:2.2.0.6-kotlin@aar' - implementation 'com.mikepenz:fastadapter:5.2.1' + implementation 'com.mikepenz:fastadapter:5.2.2' implementation 'com.github.javiersantos:MaterialStyledDialogs:3.0.1' // dependencies for testing From f4230e33d8b24324beef1fb3977ea62b06fc6893 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Thu, 23 Jul 2020 23:07:26 +0000 Subject: [PATCH 10/19] Bump material from 1.3.0-alpha01 to 1.3.0-alpha02 Bumps [material](https://github.com/material-components/material-components-android) from 1.3.0-alpha01 to 1.3.0-alpha02. - [Release notes](https://github.com/material-components/material-components-android/releases) - [Commits](https://github.com/material-components/material-components-android/compare/1.3.0-alpha01...1.3.0-alpha02) Signed-off-by: dependabot-preview[bot] --- app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index 78f12fae..439169aa 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -42,7 +42,7 @@ dependencies { implementation 'com.google.android.instantapps:instantapps:1.1.0' implementation 'com.google.android.play:core:1.7.3' implementation 'androidx.palette:palette-ktx:1.0.0' - implementation 'com.google.android.material:material:1.3.0-alpha01' + implementation 'com.google.android.material:material:1.3.0-alpha02' // External dependencies implementation 'net.margaritov.preference.colorpicker.ColorPickerPreference:ColorPickerPreference:1.0.0' From d044845e879b767dd8f8e72455dc329e30506d66 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Tue, 28 Jul 2020 18:07:09 +0000 Subject: [PATCH 11/19] Bump core from 1.7.3 to 1.8.0 Bumps core from 1.7.3 to 1.8.0. Signed-off-by: dependabot-preview[bot] --- app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index 439169aa..d48961af 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -40,7 +40,7 @@ dependencies { implementation 'androidx.core:core-ktx:1.5.0-alpha01' implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta8' implementation 'com.google.android.instantapps:instantapps:1.1.0' - implementation 'com.google.android.play:core:1.7.3' + implementation 'com.google.android.play:core:1.8.0' implementation 'androidx.palette:palette-ktx:1.0.0' implementation 'com.google.android.material:material:1.3.0-alpha02' From 23a2658e2b64d5d2bb1c43f8fdd37d00597cd71a Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Tue, 28 Jul 2020 23:12:22 +0000 Subject: [PATCH 12/19] Bump junit from 1.1.2-rc01 to 1.1.2-rc02 Bumps junit from 1.1.2-rc01 to 1.1.2-rc02. Signed-off-by: dependabot-preview[bot] --- app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index d48961af..6fef1dea 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -56,7 +56,7 @@ dependencies { // dependencies for testing testImplementation 'junit:junit:4.13' - androidTestImplementation 'androidx.test.ext:junit:1.1.2-rc01' + androidTestImplementation 'androidx.test.ext:junit:1.1.2-rc02' androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0-rc01' } From 3ab61cadf5c832905f5da2e2c5bb9e6cfec1b185 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Tue, 28 Jul 2020 23:20:21 +0000 Subject: [PATCH 13/19] Bump espresso-core from 3.3.0-rc01 to 3.3.0-rc02 Bumps espresso-core from 3.3.0-rc01 to 3.3.0-rc02. Signed-off-by: dependabot-preview[bot] --- app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index 6fef1dea..deb47872 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -57,7 +57,7 @@ dependencies { // dependencies for testing testImplementation 'junit:junit:4.13' androidTestImplementation 'androidx.test.ext:junit:1.1.2-rc02' - androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0-rc01' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0-rc02' } // Task for downloading all translation files From c15f4292742268862e8607f5742df6ff0308b543 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Thu, 30 Jul 2020 10:14:11 +0000 Subject: [PATCH 14/19] Bump constraintlayout from 2.0.0-beta8 to 2.0.0-rc1 Bumps constraintlayout from 2.0.0-beta8 to 2.0.0-rc1. Signed-off-by: dependabot-preview[bot] --- app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index deb47872..7ad28676 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -38,7 +38,7 @@ dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation 'androidx.appcompat:appcompat:1.3.0-alpha01' implementation 'androidx.core:core-ktx:1.5.0-alpha01' - implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta8' + implementation 'androidx.constraintlayout:constraintlayout:2.0.0-rc1' implementation 'com.google.android.instantapps:instantapps:1.1.0' implementation 'com.google.android.play:core:1.8.0' implementation 'androidx.palette:palette-ktx:1.0.0' From 708abb03489e8d9ed2d94f104b352198e25b4714 Mon Sep 17 00:00:00 2001 From: Marc Auberer Date: Thu, 30 Jul 2020 16:04:14 +0200 Subject: [PATCH 15/19] Fix #45 --- .../colorconverter/ui/activity/MainActivity.kt | 16 ++++++++++++---- app/src/main/res/values-de/strings.xml | 2 +- app/src/main/res/values-de/strings_colors.xml | 2 +- app/src/main/res/values-es/strings.xml | 2 +- app/src/main/res/values-es/strings_colors.xml | 2 +- app/src/main/res/values-fr/strings.xml | 2 +- app/src/main/res/values-fr/strings_colors.xml | 2 +- app/src/main/res/values-ru/strings.xml | 2 +- app/src/main/res/values-ru/strings_colors.xml | 2 +- app/src/main/res/values/strings.xml | 2 +- app/src/main/res/values/strings_colors.xml | 2 +- 11 files changed, 22 insertions(+), 14 deletions(-) diff --git a/app/src/main/java/com/chillibits/colorconverter/ui/activity/MainActivity.kt b/app/src/main/java/com/chillibits/colorconverter/ui/activity/MainActivity.kt index a7b05dcb..140d08be 100644 --- a/app/src/main/java/com/chillibits/colorconverter/ui/activity/MainActivity.kt +++ b/app/src/main/java/com/chillibits/colorconverter/ui/activity/MainActivity.kt @@ -238,7 +238,10 @@ class MainActivity : AppCompatActivity() { // Initialize views val dialogView = LayoutInflater.from(this).inflate(R.layout.dialog_edit_hex, container, false) val hexValue = dialogView.dialogHex - hexValue.setText(String.format(getString(R.string.hex_format), "%08X".format(selectedColor.color).toUpperCase())) + if(isAlphaDisabled) + hexValue.setText(String.format(getString(R.string.hex_format, "%06X".format((0xFFFFFF and selectedColor.color)).toUpperCase()))) + else + hexValue.setText(String.format(getString(R.string.hex_format), "%08X".format(selectedColor.color).toUpperCase())) Selection.setSelection(hexValue.text, hexValue.text.length) // Create dialog @@ -248,7 +251,8 @@ class MainActivity : AppCompatActivity() { .setNegativeButton(R.string.cancel, null) .setPositiveButton(R.string.choose_color) { _, _ -> var hex = hexValue.text.toString() - if(hex.length == 5) hex = hex.replace(Regex("#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])"), "#$1$1$2$2$3$3$4$4") + if(isAlphaDisabled && hex.length == 4) hex = hex.replace(Regex("#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])"), "#$1$1$2$2$3$3") + if(!isAlphaDisabled && hex.length == 5) hex = hex.replace(Regex("#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])"), "#$1$1$2$2$3$3$4$4") val tmp = selectedColor tmp.color = android.graphics.Color.parseColor(hex) tmp.alpha = tmp.color.alpha @@ -267,10 +271,14 @@ class MainActivity : AppCompatActivity() { Selection.setSelection(hexValue.text, hexValue.text.length) } else { if(value.length > 1 && !value.matches("#[a-fA-F0-9]+".toRegex())) s?.delete(value.length -1, value.length) - dialog.getButton(AlertDialog.BUTTON_POSITIVE).isEnabled = s.toString().length == 9 || s.toString().length == 5 + dialog.getButton(AlertDialog.BUTTON_POSITIVE).isEnabled = if(isAlphaDisabled) { + s.toString().length == 7 || s.toString().length == 4 + } else { + s.toString().length == 9 || s.toString().length == 5 + } } } - hexValue.setSelection(1, 9) + hexValue.setSelection(1, if(isAlphaDisabled) 7 else 9) hexValue.requestFocus() dialog.window?.clearFlags(WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE or WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM) dialog.window?.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE) diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index 81682eac..a094b6e9 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: de, German Exported by: ChilliBits - Exported at: Mon, 13 Jul 2020 08:36:53 +0100 + Exported at: Thu, 30 Jul 2020 14:47:30 +0100 --> schließen diff --git a/app/src/main/res/values-de/strings_colors.xml b/app/src/main/res/values-de/strings_colors.xml index e4d438fe..92b2ec5f 100644 --- a/app/src/main/res/values-de/strings_colors.xml +++ b/app/src/main/res/values-de/strings_colors.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: de, German Exported by: ChilliBits - Exported at: Mon, 13 Jul 2020 08:36:53 +0100 + Exported at: Thu, 30 Jul 2020 14:47:30 +0100 --> Aliceblau diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index d019e4ee..36f44f84 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: es, Spanish Exported by: ChilliBits - Exported at: Mon, 13 Jul 2020 08:36:53 +0100 + Exported at: Thu, 30 Jul 2020 14:47:30 +0100 --> cerrar diff --git a/app/src/main/res/values-es/strings_colors.xml b/app/src/main/res/values-es/strings_colors.xml index 81048642..0311e983 100644 --- a/app/src/main/res/values-es/strings_colors.xml +++ b/app/src/main/res/values-es/strings_colors.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: es, Spanish Exported by: ChilliBits - Exported at: Mon, 13 Jul 2020 08:36:53 +0100 + Exported at: Thu, 30 Jul 2020 14:47:30 +0100 --> Azul Alicia diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index 9a5ce0e4..3db6d2ca 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: fr, French Exported by: ChilliBits - Exported at: Mon, 13 Jul 2020 08:36:53 +0100 + Exported at: Thu, 30 Jul 2020 14:47:30 +0100 --> fermer diff --git a/app/src/main/res/values-fr/strings_colors.xml b/app/src/main/res/values-fr/strings_colors.xml index 6a6cb085..548e9c87 100644 --- a/app/src/main/res/values-fr/strings_colors.xml +++ b/app/src/main/res/values-fr/strings_colors.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: fr, French Exported by: ChilliBits - Exported at: Mon, 13 Jul 2020 08:36:53 +0100 + Exported at: Thu, 30 Jul 2020 14:47:30 +0100 --> Bleu alice diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index 678f3fe4..adf25cc0 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: ru, Russian Exported by: ChilliBits - Exported at: Mon, 13 Jul 2020 08:36:53 +0100 + Exported at: Thu, 30 Jul 2020 14:47:30 +0100 --> закрыть diff --git a/app/src/main/res/values-ru/strings_colors.xml b/app/src/main/res/values-ru/strings_colors.xml index 7bc3008e..883c185b 100644 --- a/app/src/main/res/values-ru/strings_colors.xml +++ b/app/src/main/res/values-ru/strings_colors.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: ru, Russian Exported by: ChilliBits - Exported at: Mon, 13 Jul 2020 08:36:53 +0100 + Exported at: Thu, 30 Jul 2020 14:47:30 +0100 --> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 9f6d9b97..8da396b2 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: en, English Exported by: ChilliBits - Exported at: Mon, 13 Jul 2020 08:36:52 +0100 + Exported at: Thu, 30 Jul 2020 14:47:29 +0100 --> close diff --git a/app/src/main/res/values/strings_colors.xml b/app/src/main/res/values/strings_colors.xml index 3a50c79d..85b49c2b 100644 --- a/app/src/main/res/values/strings_colors.xml +++ b/app/src/main/res/values/strings_colors.xml @@ -9,7 +9,7 @@ Release: Working copy Locale: en, English Exported by: ChilliBits - Exported at: Mon, 13 Jul 2020 08:36:53 +0100 + Exported at: Thu, 30 Jul 2020 14:47:30 +0100 --> Alice Blue From 291543c253be471f227f150d48a357604e1150dd Mon Sep 17 00:00:00 2001 From: Marc Auberer Date: Thu, 30 Jul 2020 16:08:11 +0200 Subject: [PATCH 16/19] Fix fix options menu color in dark mode --- app/src/main/res/values/styles.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 85b3409a..4a7cc68b 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -19,7 +19,7 @@