mirror of
https://github.com/oxen-io/session-android.git
synced 2025-01-11 18:53:40 +00:00
Move RecoveryPassword out of onboarding
This commit is contained in:
parent
c13eb75128
commit
aa6b7d4c89
@ -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"
|
||||
|
@ -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)
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
package org.thoughtcrime.securesms.onboarding.recoverypassword
|
||||
package org.thoughtcrime.securesms.recoverypassword
|
||||
|
||||
import android.os.Bundle
|
||||
import androidx.activity.viewModels
|
@ -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() {
|
Loading…
x
Reference in New Issue
Block a user