Skip to content

Commit 3e9d8e6

Browse files
committed
SafeStorageContext added to Change Language dialog
1 parent 5e23f27 commit 3e9d8e6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/src/main/kotlin/com/simplemobiletools/keyboard/dialogs/KeyboardRadioGroupDialog.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import com.simplemobiletools.commons.extensions.onGlobalLayout
1212
import com.simplemobiletools.commons.models.RadioItem
1313
import com.simplemobiletools.keyboard.R
1414
import com.simplemobiletools.keyboard.extensions.getKeyboardDialogBuilder
15+
import com.simplemobiletools.keyboard.extensions.safeStorageContext
1516
import com.simplemobiletools.keyboard.extensions.setupKeyboardDialogStuff
1617

1718
class KeyboardRadioGroupDialog(
@@ -23,7 +24,7 @@ class KeyboardRadioGroupDialog(
2324
private val cancelCallback: (() -> Unit)? = null,
2425
private val callback: (newValue: Any) -> Unit
2526
) {
26-
private val context = ContextThemeWrapper(inputView.context, R.style.MyKeyboard_Alert)
27+
private val context = ContextThemeWrapper(inputView.context.safeStorageContext, R.style.MyKeyboard_Alert)
2728
private var dialog: AlertDialog? = null
2829
private var wasInit = false
2930
private var selectedItemId = -1

0 commit comments

Comments
 (0)