diff --git a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/activities/SettingsActivity.kt b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/activities/SettingsActivity.kt index 560f5987..a7b1e8e0 100644 --- a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/activities/SettingsActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/activities/SettingsActivity.kt @@ -13,7 +13,6 @@ import com.simplemobiletools.commons.helpers.* import com.simplemobiletools.commons.models.RadioItem import com.simplemobiletools.smsmessenger.R import com.simplemobiletools.smsmessenger.extensions.config -import com.simplemobiletools.smsmessenger.extensions.getLockScreenVisibilityText import com.simplemobiletools.smsmessenger.extensions.getMMSFileLimitText import com.simplemobiletools.smsmessenger.helpers.* import kotlinx.android.synthetic.main.activity_settings.* @@ -173,7 +172,6 @@ class SettingsActivity : SimpleActivity() { } private fun setupLockScreenVisibility() { - settings_lock_screen_visibility.text = getLockScreenVisibilityText(config.lockScreenVisibilitySetting) settings_lock_screen_visibility_holder.setOnClickListener { val items = arrayListOf( RadioItem(LOCK_SCREEN_SENDER_MESSAGE, getString(R.string.sender_and_message)), @@ -183,7 +181,6 @@ class SettingsActivity : SimpleActivity() { RadioGroupDialog(this@SettingsActivity, items, config.lockScreenVisibilitySetting) { config.lockScreenVisibilitySetting = it as Int - settings_lock_screen_visibility.text = getLockScreenVisibilityText(config.lockScreenVisibilitySetting) } } } diff --git a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/extensions/Context.kt b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/extensions/Context.kt index 02774d3f..3d35dab6 100644 --- a/app/src/main/kotlin/com/simplemobiletools/smsmessenger/extensions/Context.kt +++ b/app/src/main/kotlin/com/simplemobiletools/smsmessenger/extensions/Context.kt @@ -771,14 +771,6 @@ fun Context.showMessageNotification(address: String, body: String, threadId: Lon notificationManager.notify(threadId.hashCode(), builder.build()) } -fun Context.getLockScreenVisibilityText(type: Int) = getString( - when (type) { - LOCK_SCREEN_SENDER_MESSAGE -> R.string.sender_and_message - LOCK_SCREEN_SENDER -> R.string.sender_only - else -> R.string.nothing - } -) - fun Context.removeDiacriticsIfNeeded(text: String): String { return if (config.useSimpleCharacters) text.normalizeString() else text } diff --git a/app/src/main/res/layout/activity_settings.xml b/app/src/main/res/layout/activity_settings.xml index 1ac90336..3b8b422a 100644 --- a/app/src/main/res/layout/activity_settings.xml +++ b/app/src/main/res/layout/activity_settings.xml @@ -88,14 +88,6 @@ android:layout_height="wrap_content" android:text="@string/lock_screen_visibility" /> - -