mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 20:15:21 +00:00
Enable incognito keyboard by default
This commit is contained in:
parent
3c5ef19ca7
commit
9fc43cb16d
@ -42,7 +42,7 @@
|
||||
android:summary="@string/preferences__disable_screen_security_to_allow_screen_shots" />
|
||||
|
||||
<org.thoughtcrime.securesms.components.SwitchPreferenceCompat
|
||||
android:defaultValue="false"
|
||||
android:defaultValue="true"
|
||||
android:key="pref_incognito_keyboard"
|
||||
android:title="@string/preferences__incognito_keyboard"
|
||||
android:summary="@string/preferences__request_keyboard_to_disable_personalized_learning"/>
|
||||
|
@ -136,7 +136,11 @@ public class ComposeText extends EmojiEditText {
|
||||
}
|
||||
|
||||
setInputType(inputType);
|
||||
setImeOptions(imeOptions);
|
||||
if (isIncognito) {
|
||||
setImeOptions(imeOptions | 16777216);
|
||||
} else {
|
||||
setImeOptions(imeOptions);
|
||||
}
|
||||
/*
|
||||
setHint(transport.getComposeHint(),
|
||||
transport.getSimName().isPresent()
|
||||
|
@ -50,6 +50,7 @@ class SeedActivity : BaseActionBarActivity(), DeviceLinkingDialogDelegate {
|
||||
super.onCreate(savedInstanceState)
|
||||
setContentView(R.layout.activity_seed)
|
||||
setUpLanguageFileDirectory()
|
||||
mnemonicEditText.input.imeOptions = mnemonicEditText.input.imeOptions or 16777216 // Always use incognito keyboard for this
|
||||
updateSeed()
|
||||
copyButton.setOnClickListener { copy() }
|
||||
toggleRegisterModeButton.setOnClickListener { mode = Mode.Register }
|
||||
|
@ -346,7 +346,7 @@ public class TextSecurePreferences {
|
||||
}
|
||||
|
||||
public static boolean isIncognitoKeyboardEnabled(Context context) {
|
||||
return getBooleanPreference(context, INCOGNITO_KEYBORAD_PREF, false);
|
||||
return getBooleanPreference(context, INCOGNITO_KEYBORAD_PREF, true);
|
||||
}
|
||||
|
||||
public static boolean isReadReceiptsEnabled(Context context) {
|
||||
|
Loading…
Reference in New Issue
Block a user