Fix gradle format task.

This commit is contained in:
Greyson Parrelli
2026-02-16 14:22:44 -05:00
committed by Alex Hart
parent 9cefe0bc04
commit b48b1f031e
57 changed files with 164 additions and 186 deletions

View File

@@ -6,7 +6,6 @@ import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.result.contract.ActivityResultContract
import androidx.activity.viewModels
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.Surface
import androidx.compose.ui.Modifier

View File

@@ -38,4 +38,3 @@ data class RegistrationFlowState(
/** If true, do not attempt any flows where we generate RRP's. Create a session instead. */
val doNotAttemptRecoveryPassword: Boolean = false
) : Parcelable

View File

@@ -26,10 +26,7 @@ import org.signal.registration.RegistrationFlowState
import org.signal.registration.RegistrationRepository
import org.signal.registration.RegistrationRoute
import org.signal.registration.screens.phonenumber.PhoneNumberEntryState.OneTimeEvent
import org.signal.registration.screens.phonenumber.PhoneNumberEntryState.OneTimeEvent.*
import org.signal.registration.screens.util.navigateTo
import org.signal.registration.screens.verificationcode.VerificationCodeState
import org.signal.registration.screens.verificationcode.VerificationCodeViewModel
class PhoneNumberEntryViewModel(
val repository: RegistrationRepository,
@@ -101,7 +98,7 @@ class PhoneNumberEntryViewModel(
@VisibleForTesting
fun applyParentState(state: PhoneNumberEntryState, parentState: RegistrationFlowState): PhoneNumberEntryState {
return state.copy(
sessionE164 = parentState.sessionE164,
sessionE164 = parentState.sessionE164,
sessionMetadata = parentState.sessionMetadata,
preExistingRegistrationData = parentState.preExistingRegistrationData,
restoredSvrCredentials = state.restoredSvrCredentials.takeUnless { parentState.doNotAttemptRecoveryPassword } ?: emptyList()
@@ -238,7 +235,7 @@ class PhoneNumberEntryViewModel(
if (state.restoredSvrCredentials.isNotEmpty()) {
when (val result = repository.checkSvrCredentials(e164, state.restoredSvrCredentials)) {
is NetworkController.RegistrationNetworkResult.Success -> {
Log.i(TAG, "[CheckSVRCredentials] Successfully validated credentials for ${e164}.")
Log.i(TAG, "[CheckSVRCredentials] Successfully validated credentials for $e164.")
val credential = result.data.validCredential
if (credential != null) {
parentEventEmitter(RegistrationFlowEvent.E164Chosen(e164))

View File

@@ -217,7 +217,7 @@ class PinEntryForSmsBypassViewModel(
override fun <T : ViewModel> create(modelClass: Class<T>): T {
return PinEntryForSmsBypassViewModel(
repository = repository,
parentState = parentState,
parentState = parentState,
parentEventEmitter = parentEventEmitter,
svrCredentials = svrCredentials
) as T

View File

@@ -17,4 +17,4 @@ class ACIParceler : Parceler<ServiceId.ACI> {
override fun create(parcel: Parcel): ServiceId.ACI {
return ServiceId.ACI.parseOrThrow(parcel.createByteArray())
}
}
}

View File

@@ -17,4 +17,4 @@ class KyberPreKeyRecordParceler : Parceler<KyberPreKeyRecord> {
override fun create(parcel: Parcel): KyberPreKeyRecord {
return KyberPreKeyRecord(parcel.createByteArray())
}
}
}

View File

@@ -19,4 +19,3 @@ object MasterKeyParceler : Parceler<MasterKey?> {
parcel.writeByteArray(this?.serialize())
}
}

View File

@@ -17,4 +17,4 @@ class PNIParceler : Parceler<ServiceId.PNI> {
override fun create(parcel: Parcel): ServiceId.PNI {
return ServiceId.PNI.parseOrThrow(parcel.createByteArray())
}
}
}

View File

@@ -42,4 +42,4 @@ object SensitiveLog : Log.Logger() {
override fun flush() {
this.logger.flush()
}
}
}

View File

@@ -17,4 +17,4 @@ class SignedPreKeyRecordParceler : Parceler<SignedPreKeyRecord> {
override fun create(parcel: Parcel): SignedPreKeyRecord {
return SignedPreKeyRecord(parcel.createByteArray())
}
}
}