diff --git a/app/src/main/kotlin/com/simplemobiletools/dialer/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/dialer/activities/MainActivity.kt index 18dbe665..bd18f0ef 100644 --- a/app/src/main/kotlin/com/simplemobiletools/dialer/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/dialer/activities/MainActivity.kt @@ -262,9 +262,7 @@ class MainActivity : SimpleActivity() { } main_dialpad_button.setOnClickListener { - Intent(applicationContext, DialpadActivity::class.java).apply { - startActivity(this) - } + launchDialpad() } } @@ -294,6 +292,12 @@ class MainActivity : SimpleActivity() { } } + private fun launchDialpad() { + Intent(applicationContext, DialpadActivity::class.java).apply { + startActivity(this) + } + } + private fun refreshFragments() { contacts_fragment?.refreshItems() favorites_fragment?.refreshItems()