mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-07 15:17:42 +00:00
use context.prefs() instead of the long DeviceProtected...
This commit is contained in:
parent
deb9dda7e7
commit
125a483591
29 changed files with 112 additions and 113 deletions
|
@ -30,7 +30,7 @@ import helium314.keyboard.latin.common.ComposedData;
|
|||
import helium314.keyboard.latin.settings.Settings;
|
||||
import helium314.keyboard.latin.settings.SettingsValuesForSuggestion;
|
||||
import helium314.keyboard.latin.utils.AdditionalSubtypeUtils;
|
||||
import helium314.keyboard.latin.utils.DeviceProtectedUtils;
|
||||
import helium314.keyboard.latin.utils.KtxKt;
|
||||
import helium314.keyboard.latin.utils.SubtypeSettingsKt;
|
||||
import helium314.keyboard.latin.utils.SuggestionResults;
|
||||
|
||||
|
@ -79,7 +79,7 @@ public final class AndroidSpellCheckerService extends SpellCheckerService
|
|||
public void onCreate() {
|
||||
super.onCreate();
|
||||
mRecommendedThreshold = Float.parseFloat(getString(R.string.spellchecker_recommended_threshold_value));
|
||||
final SharedPreferences prefs = DeviceProtectedUtils.getSharedPreferences(this);
|
||||
final SharedPreferences prefs = KtxKt.prefs(this);
|
||||
prefs.registerOnSharedPreferenceChangeListener(this);
|
||||
onSharedPreferenceChanged(prefs, Settings.PREF_USE_CONTACTS);
|
||||
final boolean blockOffensive = Settings.readBlockPotentiallyOffensive(prefs, getResources());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue