diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SettingsActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SettingsActivity.kt index 36ab1209d..0cb256bcf 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SettingsActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/SettingsActivity.kt @@ -1,14 +1,12 @@ package com.simplemobiletools.gallery.activities -import android.content.Intent import android.os.Bundle -import android.support.v4.app.TaskStackBuilder import android.view.View import android.widget.AdapterView -import com.simplemobiletools.commons.activities.CustomizationActivity import com.simplemobiletools.gallery.R import kotlinx.android.synthetic.main.activity_settings.* + class SettingsActivity : SimpleActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) @@ -27,7 +25,9 @@ class SettingsActivity : SimpleActivity() { } private fun setupCustomizeColors() { - settings_customize_colors_holder.setOnClickListener { startActivity(Intent(this, CustomizationActivity::class.java)) } + settings_customize_colors_holder.setOnClickListener { + startCustomizationActivity() + } } private fun setupSameSorting() { @@ -64,8 +64,4 @@ class SettingsActivity : SimpleActivity() { } } } - - private fun restartActivity() { - TaskStackBuilder.create(applicationContext).addNextIntentWithParentStack(intent).startActivities() - } }