From 566369cccd5fcf71cc3ba2fb70d36bd9f582da15 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Wed, 19 May 2021 12:03:47 +0200 Subject: [PATCH] Split long lines --- ...eysBackupSettingsRecyclerViewController.kt | 23 ++++++++++++------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/vector/src/main/java/im/vector/app/features/crypto/keysbackup/settings/KeysBackupSettingsRecyclerViewController.kt b/vector/src/main/java/im/vector/app/features/crypto/keysbackup/settings/KeysBackupSettingsRecyclerViewController.kt index e214437232..1a33d2fdc4 100644 --- a/vector/src/main/java/im/vector/app/features/crypto/keysbackup/settings/KeysBackupSettingsRecyclerViewController.kt +++ b/vector/src/main/java/im/vector/app/features/crypto/keysbackup/settings/KeysBackupSettingsRecyclerViewController.kt @@ -35,9 +35,11 @@ import org.matrix.android.sdk.internal.crypto.keysbackup.model.KeysBackupVersion import java.util.UUID import javax.inject.Inject -class KeysBackupSettingsRecyclerViewController @Inject constructor(private val stringProvider: StringProvider, - private val vectorPreferences: VectorPreferences, - private val session: Session) : TypedEpoxyController() { +class KeysBackupSettingsRecyclerViewController @Inject constructor( + private val stringProvider: StringProvider, + private val vectorPreferences: VectorPreferences, + private val session: Session +) : TypedEpoxyController() { var listener: Listener? = null @@ -130,7 +132,8 @@ class KeysBackupSettingsRecyclerViewController @Inject constructor(private val s if (data.keysBackupVersionTrust()?.usable == false) { description(host.stringProvider.getString(R.string.keys_backup_settings_untrusted_backup)) } else { - description(host.stringProvider.getQuantityString(R.plurals.keys_backup_info_keys_backing_up, remainingKeysToBackup, remainingKeysToBackup)) + description(host.stringProvider + .getQuantityString(R.plurals.keys_backup_info_keys_backing_up, remainingKeysToBackup, remainingKeysToBackup)) } } @@ -204,10 +207,12 @@ class KeysBackupSettingsRecyclerViewController @Inject constructor(private val s endIconResourceId(R.drawable.e2e_verified) } else { if (isDeviceVerified) { - description(host.stringProvider.getString(R.string.keys_backup_settings_valid_signature_from_verified_device, deviceId)) + description(host.stringProvider + .getString(R.string.keys_backup_settings_valid_signature_from_verified_device, deviceId)) endIconResourceId(R.drawable.e2e_verified) } else { - description(host.stringProvider.getString(R.string.keys_backup_settings_valid_signature_from_unverified_device, deviceId)) + description(host.stringProvider + .getString(R.string.keys_backup_settings_valid_signature_from_unverified_device, deviceId)) endIconResourceId(R.drawable.e2e_warning) } } @@ -215,9 +220,11 @@ class KeysBackupSettingsRecyclerViewController @Inject constructor(private val s // Invalid signature endIconResourceId(R.drawable.e2e_warning) if (isDeviceVerified) { - description(host.stringProvider.getString(R.string.keys_backup_settings_invalid_signature_from_verified_device, deviceId)) + description(host.stringProvider + .getString(R.string.keys_backup_settings_invalid_signature_from_verified_device, deviceId)) } else { - description(host.stringProvider.getString(R.string.keys_backup_settings_invalid_signature_from_unverified_device, deviceId)) + description(host.stringProvider + .getString(R.string.keys_backup_settings_invalid_signature_from_unverified_device, deviceId)) } } }