From eecfdc40d38e85bd3d528ebfc71b8992d0830d16 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 27 Jan 2019 21:03:55 +0100 Subject: [PATCH] adding some setting items related to settings ex/importing --- app/build.gradle | 2 +- .../pro/activities/SettingsActivity.kt | 17 ++++- app/src/main/res/layout/activity_settings.xml | 62 +++++++++++++++++++ 3 files changed, 79 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 3b30f0b37..a0b0a441e 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -61,7 +61,7 @@ android { } dependencies { - implementation 'com.simplemobiletools:commons:5.6.18' + implementation 'com.simplemobiletools:commons:5.6.19' implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0' implementation 'androidx.multidex:multidex:2.0.1' implementation 'it.sephiroth.android.exif:library:1.0.1' diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/SettingsActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/SettingsActivity.kt index c3c2cf4c6..1b1aabb2f 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/SettingsActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/SettingsActivity.kt @@ -81,12 +81,15 @@ class SettingsActivity : SimpleActivity() { setupEmptyRecycleBin() updateTextColors(settings_holder) setupSectionColors() + setupExportSettings() + setupImportSettings() } private fun setupSectionColors() { val adjustedPrimaryColor = getAdjustedPrimaryColor() arrayListOf(visibility_label, videos_label, thumbnails_label, scrolling_label, fullscreen_media_label, security_label, - file_operations_label, deep_zoomable_images_label, extended_details_label, bottom_actions_label, recycle_bin_label).forEach { + file_operations_label, deep_zoomable_images_label, extended_details_label, bottom_actions_label, recycle_bin_label, + migrating_label).forEach { it.setTextColor(adjustedPrimaryColor) } } @@ -568,4 +571,16 @@ class SettingsActivity : SimpleActivity() { } } } + + private fun setupExportSettings() { + settings_export_holder.setOnClickListener { + + } + } + + private fun setupImportSettings() { + settings_import_holder.setOnClickListener { + + } + } } diff --git a/app/src/main/res/layout/activity_settings.xml b/app/src/main/res/layout/activity_settings.xml index 9dbfc2204..280ea6978 100644 --- a/app/src/main/res/layout/activity_settings.xml +++ b/app/src/main/res/layout/activity_settings.xml @@ -1321,5 +1321,67 @@ android:clickable="false"/> + + + + + + + + + + + + + + + +