mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-04-01 04:00:11 +02:00
fix: updated with latest version of commons
This commit is contained in:
parent
35fb623790
commit
abf68e7b39
@ -62,7 +62,7 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.github.SimpleMobileTools:Simple-Commons:447adfd5be'
|
implementation 'com.github.SimpleMobileTools:Simple-Commons:1f50049630'
|
||||||
implementation 'com.github.tibbi:IndicatorFastScroll:4524cd0b61'
|
implementation 'com.github.tibbi:IndicatorFastScroll:4524cd0b61'
|
||||||
implementation 'me.grantland:autofittextview:0.2.1'
|
implementation 'me.grantland:autofittextview:0.2.1'
|
||||||
}
|
}
|
||||||
|
@ -11,11 +11,6 @@ class Config(context: Context) : BaseConfig(context) {
|
|||||||
companion object {
|
companion object {
|
||||||
fun newInstance(context: Context) = Config(context)
|
fun newInstance(context: Context) = Config(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
var speedDial: String
|
|
||||||
get() = prefs.getString(SPEED_DIAL, "")!!
|
|
||||||
set(speedDial) = prefs.edit().putString(SPEED_DIAL, speedDial).apply()
|
|
||||||
|
|
||||||
fun getSpeedDialValues(): ArrayList<SpeedDial> {
|
fun getSpeedDialValues(): ArrayList<SpeedDial> {
|
||||||
val speedDialType = object : TypeToken<List<SpeedDial>>() {}.type
|
val speedDialType = object : TypeToken<List<SpeedDial>>() {}.type
|
||||||
val speedDialValues = Gson().fromJson<ArrayList<SpeedDial>>(speedDial, speedDialType) ?: ArrayList(1)
|
val speedDialValues = Gson().fromJson<ArrayList<SpeedDial>>(speedDial, speedDialType) ?: ArrayList(1)
|
||||||
@ -56,18 +51,6 @@ class Config(context: Context) : BaseConfig(context) {
|
|||||||
get() = prefs.getBoolean(DISABLE_SWIPE_TO_ANSWER, false)
|
get() = prefs.getBoolean(DISABLE_SWIPE_TO_ANSWER, false)
|
||||||
set(disableSwipeToAnswer) = prefs.edit().putBoolean(DISABLE_SWIPE_TO_ANSWER, disableSwipeToAnswer).apply()
|
set(disableSwipeToAnswer) = prefs.edit().putBoolean(DISABLE_SWIPE_TO_ANSWER, disableSwipeToAnswer).apply()
|
||||||
|
|
||||||
var showTabs: Int
|
|
||||||
get() = prefs.getInt(SHOW_TABS, ALL_TABS_MASK)
|
|
||||||
set(showTabs) = prefs.edit().putInt(SHOW_TABS, showTabs).apply()
|
|
||||||
|
|
||||||
var favoritesContactsOrder: String
|
|
||||||
get() = prefs.getString(FAVORITES_CONTACTS_ORDER, "")!!
|
|
||||||
set(order) = prefs.edit().putString(FAVORITES_CONTACTS_ORDER, order).apply()
|
|
||||||
|
|
||||||
var isCustomOrderSelected: Boolean
|
|
||||||
get() = prefs.getBoolean(FAVORITES_CUSTOM_ORDER_SELECTED, false)
|
|
||||||
set(selected) = prefs.edit().putBoolean(FAVORITES_CUSTOM_ORDER_SELECTED, selected).apply()
|
|
||||||
|
|
||||||
var wasOverlaySnackbarConfirmed: Boolean
|
var wasOverlaySnackbarConfirmed: Boolean
|
||||||
get() = prefs.getBoolean(WAS_OVERLAY_SNACKBAR_CONFIRMED, false)
|
get() = prefs.getBoolean(WAS_OVERLAY_SNACKBAR_CONFIRMED, false)
|
||||||
set(wasOverlaySnackbarConfirmed) = prefs.edit().putBoolean(WAS_OVERLAY_SNACKBAR_CONFIRMED, wasOverlaySnackbarConfirmed).apply()
|
set(wasOverlaySnackbarConfirmed) = prefs.edit().putBoolean(WAS_OVERLAY_SNACKBAR_CONFIRMED, wasOverlaySnackbarConfirmed).apply()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user