Skip to content

Commit df649f5

Browse files
committed
removing a few more calling related redundant things
1 parent 2967621 commit df649f5

File tree

6 files changed

+0
-65
lines changed

6 files changed

+0
-65
lines changed

app/src/main/kotlin/com/simplemobiletools/contacts/pro/extensions/EditText.kt

Lines changed: 0 additions & 26 deletions
This file was deleted.

app/src/main/kotlin/com/simplemobiletools/contacts/pro/helpers/Config.kt

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
package com.simplemobiletools.contacts.pro.helpers
22

33
import android.content.Context
4-
import android.net.Uri
5-
import com.google.gson.Gson
6-
import com.google.gson.reflect.TypeToken
74
import com.simplemobiletools.commons.helpers.BaseConfig
8-
import com.simplemobiletools.contacts.pro.models.SpeedDial
95

106
class Config(context: Context) : BaseConfig(context) {
117
companion object {
@@ -73,26 +69,6 @@ class Config(context: Context) : BaseConfig(context) {
7369
get() = prefs.getBoolean(SHOW_PRIVATE_CONTACTS, true)
7470
set(showPrivateContacts) = prefs.edit().putBoolean(SHOW_PRIVATE_CONTACTS, showPrivateContacts).apply()
7571

76-
fun saveCustomSIM(number: String, SIMlabel: String) {
77-
prefs.edit().putString(REMEMBER_SIM_PREFIX + number, Uri.encode(SIMlabel)).apply()
78-
}
79-
80-
fun getCustomSIM(number: String) = prefs.getString(REMEMBER_SIM_PREFIX + number, "")
81-
82-
fun getSpeedDialValues(): ArrayList<SpeedDial> {
83-
val speedDialType = object : TypeToken<List<SpeedDial>>() {}.type
84-
val speedDialValues = Gson().fromJson<ArrayList<SpeedDial>>(speedDial, speedDialType) ?: ArrayList(1)
85-
86-
for (i in 1..9) {
87-
val speedDial = SpeedDial(i, "", "")
88-
if (speedDialValues.firstOrNull { it.id == i } == null) {
89-
speedDialValues.add(speedDial)
90-
}
91-
}
92-
93-
return speedDialValues
94-
}
95-
9672
var wasDialerMigrationShown: Boolean
9773
get() = prefs.getBoolean(WAS_DIALER_MIGRATION_SHOWN, false)
9874
set(wasDialerMigrationShown) = prefs.edit().putBoolean(WAS_DIALER_MIGRATION_SHOWN, wasDialerMigrationShown).apply()

app/src/main/kotlin/com/simplemobiletools/contacts/pro/helpers/Constants.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ const val SHOW_DIALPAD_BUTTON = "show_dialpad_button"
2222
const val SPEED_DIAL = "speed_dial"
2323
const val LAST_EXPORT_PATH = "last_export_path"
2424
const val WAS_LOCAL_ACCOUNT_INITIALIZED = "was_local_account_initialized"
25-
const val REMEMBER_SIM_PREFIX = "remember_sim_"
2625
const val SHOW_PRIVATE_CONTACTS = "show_private_contacts"
2726
const val WAS_DIALER_MIGRATION_SHOWN = "was_dialer_migration_shown"
2827

app/src/main/kotlin/com/simplemobiletools/contacts/pro/interfaces/RemoveSpeedDialListener.kt

Lines changed: 0 additions & 5 deletions
This file was deleted.

app/src/main/kotlin/com/simplemobiletools/contacts/pro/models/CallContact.kt

Lines changed: 0 additions & 4 deletions
This file was deleted.

app/src/main/kotlin/com/simplemobiletools/contacts/pro/models/SpeedDial.kt

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)