From 164937aaa305ddfdf9f7ea33782c68f10cc4712d Mon Sep 17 00:00:00 2001 From: Harris Date: Fri, 17 Dec 2021 10:19:32 +1100 Subject: [PATCH] Remove the read and typing indication on startup (#812) * fix: remove the read and typing indication * fix: set default value in preferences_app_protection.xml --- .../org/thoughtcrime/securesms/onboarding/LandingActivity.kt | 2 -- app/src/main/res/xml/preferences_app_protection.xml | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/onboarding/LandingActivity.kt b/app/src/main/java/org/thoughtcrime/securesms/onboarding/LandingActivity.kt index 3ca0632482..4fbd0f6885 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/onboarding/LandingActivity.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/onboarding/LandingActivity.kt @@ -23,8 +23,6 @@ class LandingActivity : BaseActionBarActivity() { findViewById(R.id.linkButton).setOnClickListener { link() } IdentityKeyUtil.generateIdentityKeyPair(this) TextSecurePreferences.setPasswordDisabled(this, true) - TextSecurePreferences.setReadReceiptsEnabled(this, true) - TextSecurePreferences.setTypingIndicatorsEnabled(this, true) // AC: This is a temporary workaround to trick the old code that the screen is unlocked. KeyCachingService.setMasterSecret(applicationContext, Object()) } diff --git a/app/src/main/res/xml/preferences_app_protection.xml b/app/src/main/res/xml/preferences_app_protection.xml index 35f9028a5b..691278183b 100644 --- a/app/src/main/res/xml/preferences_app_protection.xml +++ b/app/src/main/res/xml/preferences_app_protection.xml @@ -70,7 +70,7 @@ android:summary="@string/preferences__if_read_receipts_are_disabled_you_wont_be_able_to_see_read_receipts"/>