remove a redundant function

This commit is contained in:
tibbi 2016-12-18 19:43:22 +01:00
parent a34685176f
commit 0864f4ac81

View file

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