Merge branch 'on' into on-2

This commit is contained in:
Andrew 2024-05-15 11:34:17 +09:30
commit 272f223ca0
5 changed files with 9 additions and 6 deletions

View File

@ -113,7 +113,7 @@ class LandingActivity : BaseActionBarActivity() {
modifier = Modifier
.width(262.dp)
.align(Alignment.CenterHorizontally)
.contentDescription(R.string.AccessibilityId_privacy_policy_link),
.contentDescription(R.string.AccessibilityId_open_url),
fontSize = 11.sp,
lineHeight = 13.sp,
onClick = ::openDialog

View File

@ -28,7 +28,8 @@ import org.session.libsession.utilities.TextSecurePreferences
import org.thoughtcrime.securesms.ApplicationContext
import org.thoughtcrime.securesms.BaseActionBarActivity
import org.thoughtcrime.securesms.dependencies.ConfigFactory
import org.thoughtcrime.securesms.onboarding.messagenotifications.startPNModeActivity
import org.thoughtcrime.securesms.onboarding.messagenotifications.MessageNotificationsActivity
import org.thoughtcrime.securesms.onboarding.messagenotifications.startMessageNotificationsActivity
import org.thoughtcrime.securesms.onboarding.pickname.startPickDisplayNameActivity
import org.thoughtcrime.securesms.ui.AppTheme
import org.thoughtcrime.securesms.ui.ProgressArc
@ -61,7 +62,7 @@ class LoadingActivity: BaseActionBarActivity() {
when {
skipped -> startPickDisplayNameActivity(true, flags)
else -> startPNModeActivity(flags)
else -> startMessageNotificationsActivity(flags)
}
}

View File

@ -165,7 +165,7 @@ fun NotificationRadioButton(
}
}
fun Context.startPNModeActivity(flags: Int = 0) {
fun Context.startMessageNotificationsActivity(flags: Int = 0) {
Intent(this, MessageNotificationsActivity::class.java)
.also { it.flags = flags }
.also(::startActivity)

View File

@ -34,7 +34,8 @@ import network.loki.messenger.R
import org.session.libsession.utilities.AppTextSecurePreferences
import org.thoughtcrime.securesms.ApplicationContext
import org.thoughtcrime.securesms.BaseActionBarActivity
import org.thoughtcrime.securesms.onboarding.messagenotifications.startPNModeActivity
import org.thoughtcrime.securesms.onboarding.messagenotifications.MessageNotificationsActivity
import org.thoughtcrime.securesms.onboarding.messagenotifications.startMessageNotificationsActivity
import org.thoughtcrime.securesms.ui.AppTheme
import org.thoughtcrime.securesms.ui.PreviewTheme
import org.thoughtcrime.securesms.ui.base
@ -68,7 +69,7 @@ class PickDisplayNameActivity : BaseActionBarActivity() {
lifecycleScope.launch {
viewModel.eventFlow.collect {
startPNModeActivity()
startMessageNotificationsActivity()
}
}
}

View File

@ -1117,6 +1117,7 @@
<string name="AccessibilityId_error_message">Error message</string>
<string name="AccessibilityId_hide_recovery_password_button">Hide recovery password button</string>
<string name="AccessibilityId_confirm_button">Confirm button</string>
<string name="AccessibilityId_open_url">Open URL</string>
<string name="accountIdErrorInvalid">This Account ID is invalid. Please check and try again.</string>
<string name="enter_account_id">Enter Account ID</string>
<string name="accountIdOrOnsEnter">Enter account ID or ONS</string>