setup the color customization button

This commit is contained in:
tibbi 2017-03-19 18:45:20 +01:00
parent e29717da20
commit cf667f8760
2 changed files with 12 additions and 0 deletions

View File

@ -71,6 +71,11 @@
android:label="@string/third_party_licences"
android:parentActivityName="com.simplemobiletools.commons.activities.AboutActivity"/>
<activity
android:name="com.simplemobiletools.commons.activities.CustomizationActivity"
android:label="@string/customize_colors"
android:parentActivityName=".activities.SettingsActivity"/>
<activity
android:name=".activities.SettingsActivity"
android:label="@string/settings"

View File

@ -23,6 +23,7 @@ class SettingsActivity : SimpleActivity() {
override fun onResume() {
super.onResume()
setupCustomizeColors()
setupSavePhotosFolder()
setupShowPreview()
setupSound()
@ -44,6 +45,12 @@ class SettingsActivity : SimpleActivity() {
return true
}
private fun setupCustomizeColors() {
settings_customize_colors_holder.setOnClickListener {
startCustomizationActivity()
}
}
private fun setupSavePhotosFolder() {
settings_save_photos.text = getLastPart(config.savePhotosFolder)
settings_save_photos_holder.setOnClickListener {