Move RecoveryPassword out of onboarding

This commit is contained in:
Andrew 2024-06-17 18:17:26 +09:30
parent c13eb75128
commit aa6b7d4c89
4 changed files with 7 additions and 8 deletions

View File

@ -158,7 +158,7 @@
android:label="@string/activity_edit_closed_group_title"
android:screenOrientation="portrait" />
<activity
android:name="org.thoughtcrime.securesms.onboarding.recoverypassword.RecoveryPasswordActivity"
android:name="org.thoughtcrime.securesms.recoverypassword.RecoveryPasswordActivity"
android:screenOrientation="portrait" />
<activity
android:name="org.thoughtcrime.securesms.contacts.SelectContactsActivity"

View File

@ -1,4 +1,4 @@
package org.thoughtcrime.securesms.onboarding.recoverypassword
package org.thoughtcrime.securesms.recoverypassword
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.foundation.border
@ -44,7 +44,7 @@ import org.thoughtcrime.securesms.ui.h8
@Preview
@Composable
fun PreviewRecoveryPasswordScreen(
private fun PreviewRecoveryPasswordScreen(
@PreviewParameter(SessionColorsParameterProvider::class) colors: Colors
) {
PreviewTheme(colors) {
@ -53,7 +53,7 @@ fun PreviewRecoveryPasswordScreen(
}
@Composable
fun RecoveryPasswordScreen(
internal fun RecoveryPasswordScreen(
seed: String = "",
copySeed:() -> Unit = {},
onHide:() -> Unit = {}
@ -71,7 +71,7 @@ fun RecoveryPasswordScreen(
}
@Composable
fun RecoveryPasswordCell(seed: String, copySeed:() -> Unit = {}) {
private fun RecoveryPasswordCell(seed: String, copySeed:() -> Unit = {}) {
var showQr by remember {
mutableStateOf(false)
}

View File

@ -1,4 +1,4 @@
package org.thoughtcrime.securesms.onboarding.recoverypassword
package org.thoughtcrime.securesms.recoverypassword
import android.os.Bundle
import androidx.activity.viewModels

View File

@ -1,4 +1,4 @@
package org.thoughtcrime.securesms.onboarding.recoverypassword
package org.thoughtcrime.securesms.recoverypassword
import android.app.Application
import android.content.ClipData
@ -18,7 +18,6 @@ import javax.inject.Inject
class RecoveryPasswordViewModel @Inject constructor(
private val application: Application
): AndroidViewModel(application) {
val prefs = AppTextSecurePreferences(application)
fun permanentlyHidePassword() {