From 0864f4ac811b90f3f838fb156390b41ff463f2ab Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 18 Dec 2016 19:43:22 +0100 Subject: [PATCH] remove a redundant function --- .../gallery/activities/SettingsActivity.kt | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) 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() - } }