diff --git a/app/build.gradle b/app/build.gradle index 3b7511bf..0565464b 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -63,7 +63,7 @@ android { } dependencies { - implementation 'com.github.SimpleMobileTools:Simple-Commons:f38bfd22d5' + implementation 'com.github.SimpleMobileTools:Simple-Commons:d949143b75' implementation 'androidx.documentfile:documentfile:1.0.1' implementation "androidx.exifinterface:exifinterface:1.3.5" implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.5.1" diff --git a/app/src/main/kotlin/com/simplemobiletools/camera/activities/SettingsActivity.kt b/app/src/main/kotlin/com/simplemobiletools/camera/activities/SettingsActivity.kt index 91385459..295df007 100644 --- a/app/src/main/kotlin/com/simplemobiletools/camera/activities/SettingsActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/camera/activities/SettingsActivity.kt @@ -57,18 +57,9 @@ class SettingsActivity : SimpleActivity() { ).forEach { it.setTextColor(properPrimaryColor) } - - arrayOf( - settings_color_customization_holder, - settings_general_settings_holder, - settings_shutter_holder, - settings_saving_holder - ).forEach { - it.background.applyColorFilter(getProperBackgroundColor().getContrastColor()) - } } - fun refreshMenuItems() { + private fun refreshMenuItems() { settings_toolbar.menu.apply { findItem(R.id.more_apps_from_us).isVisible = !resources.getBoolean(R.bool.hide_google_relations) } @@ -87,13 +78,6 @@ class SettingsActivity : SimpleActivity() { private fun setupPurchaseThankYou() { settings_purchase_thank_you_holder.beGoneIf(isOrWasThankYouInstalled()) - - // make sure the corners at ripple fit the stroke rounded corners - if (settings_purchase_thank_you_holder.isGone()) { - settings_use_english_holder.background = resources.getDrawable(R.drawable.ripple_all_corners, theme) - settings_language_holder.background = resources.getDrawable(R.drawable.ripple_all_corners, theme) - } - settings_purchase_thank_you_holder.setOnClickListener { launchPurchaseThankYouIntent() } @@ -101,7 +85,7 @@ class SettingsActivity : SimpleActivity() { private fun setupCustomizeColors() { settings_customize_colors_label.text = getCustomizeColorsString() - settings_customize_colors_holder.setOnClickListener { + settings_color_customization_holder.setOnClickListener { handleCustomizeColorsClick() } } diff --git a/app/src/main/res/layout/activity_settings.xml b/app/src/main/res/layout/activity_settings.xml index f87abd9d..60e0b3aa 100644 --- a/app/src/main/res/layout/activity_settings.xml +++ b/app/src/main/res/layout/activity_settings.xml @@ -36,30 +36,26 @@ android:layout_height="wrap_content" android:text="@string/color_customization" /> - + android:layout_height="wrap_content"> - + android:text="@string/customize_colors" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" /> - + - - + + android:layout_height="wrap_content"> + android:layout_height="wrap_content"> + android:layout_height="wrap_content"> + + + android:layout_height="wrap_content"> + android:layout_height="wrap_content"> + + + android:layout_height="wrap_content"> + android:layout_height="wrap_content"> + android:layout_height="wrap_content"> + android:layout_height="wrap_content"> + android:layout_height="wrap_content">