Skip to content

Commit c3c3ce0

Browse files
committed
Using safeStorageContext in ClipsKeyboardAdapter.kt
1 parent b14ad58 commit c3c3ce0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/src/main/kotlin/com/simplemobiletools/keyboard/adapters/ClipsKeyboardAdapter.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import com.simplemobiletools.keyboard.R
1515
import com.simplemobiletools.keyboard.extensions.config
1616
import com.simplemobiletools.keyboard.extensions.getCurrentClip
1717
import com.simplemobiletools.keyboard.extensions.getStrokeColor
18+
import com.simplemobiletools.keyboard.extensions.safeStorageContext
1819
import com.simplemobiletools.keyboard.helpers.ClipsHelper
1920
import com.simplemobiletools.keyboard.helpers.ITEM_CLIP
2021
import com.simplemobiletools.keyboard.helpers.ITEM_SECTION_LABEL
@@ -31,8 +32,9 @@ class ClipsKeyboardAdapter(
3132
) : RecyclerView.Adapter<ClipsKeyboardAdapter.ViewHolder>() {
3233

3334
private val layoutInflater = LayoutInflater.from(context)
34-
private var textColor = context.getProperTextColor()
35-
private var backgroundColor = context.getProperBackgroundColor()
35+
36+
private var textColor = context.safeStorageContext.getProperTextColor()
37+
private var backgroundColor = context.safeStorageContext.getProperBackgroundColor()
3638

3739
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder {
3840
val layoutId = when (viewType) {

0 commit comments

Comments
 (0)