File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
app/src/main/kotlin/com/simplemobiletools/keyboard/adapters Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import com.simplemobiletools.keyboard.R
1515import com.simplemobiletools.keyboard.extensions.config
1616import com.simplemobiletools.keyboard.extensions.getCurrentClip
1717import com.simplemobiletools.keyboard.extensions.getStrokeColor
18+ import com.simplemobiletools.keyboard.extensions.safeStorageContext
1819import com.simplemobiletools.keyboard.helpers.ClipsHelper
1920import com.simplemobiletools.keyboard.helpers.ITEM_CLIP
2021import 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) {
You can’t perform that action at this time.
0 commit comments