mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-22 01:34:22 +00:00
add a first "real" reorder dialog
This commit is contained in:
parent
ce37888985
commit
724b292edb
4 changed files with 58 additions and 9 deletions
|
@ -3,9 +3,11 @@ package helium314.keyboard.settings
|
|||
|
||||
import android.content.Context
|
||||
import android.content.ContextWrapper
|
||||
import android.content.SharedPreferences
|
||||
import androidx.activity.ComponentActivity
|
||||
import androidx.annotation.StringRes
|
||||
import androidx.compose.runtime.Composable
|
||||
import helium314.keyboard.latin.utils.DeviceProtectedUtils
|
||||
import helium314.keyboard.settings.screens.createAboutPrefs
|
||||
import helium314.keyboard.settings.screens.createCorrectionPrefs
|
||||
import helium314.keyboard.settings.screens.createPreferencesPrefs
|
||||
|
@ -64,6 +66,8 @@ fun Context.getActivity(): ComponentActivity? {
|
|||
return componentActivity
|
||||
}
|
||||
|
||||
fun Context.prefs(): SharedPreferences = DeviceProtectedUtils.getSharedPreferences(this)
|
||||
|
||||
object NonSettingsPrefs {
|
||||
const val EDIT_PERSONAL_DICTIONARY = "edit_personal_dictionary"
|
||||
const val APP = "app"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue