Run a treewide reformat (#908)
Co-authored-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
parent
83ba0a3ed5
commit
c5a93b8b81
6 changed files with 8 additions and 8 deletions
|
@ -20,7 +20,6 @@ import com.github.ajalt.timberkt.e
|
|||
import com.zeapo.pwdstore.R
|
||||
import com.zeapo.pwdstore.databinding.DecryptLayoutBinding
|
||||
import com.zeapo.pwdstore.model.PasswordEntry
|
||||
import com.zeapo.pwdstore.utils.Otp
|
||||
import com.zeapo.pwdstore.utils.PreferenceKeys
|
||||
import com.zeapo.pwdstore.utils.viewBinding
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
|
@ -32,7 +31,6 @@ import me.msfjarvis.openpgpktx.util.OpenPgpServiceConnection
|
|||
import org.openintents.openpgp.IOpenPgpService2
|
||||
import java.io.ByteArrayOutputStream
|
||||
import java.io.File
|
||||
import java.util.Date
|
||||
import kotlin.time.ExperimentalTime
|
||||
import kotlin.time.seconds
|
||||
|
||||
|
|
|
@ -110,11 +110,11 @@ public class SshApiSessionFactory extends JschConfigSessionFactory {
|
|||
*/
|
||||
public static class IdentityBuilder {
|
||||
private final SshAuthenticationConnection connection;
|
||||
private final BaseGitActivity callingActivity;
|
||||
private final SharedPreferences settings;
|
||||
private SshAuthenticationApi api;
|
||||
private String keyId, description, alg;
|
||||
private byte[] publicKey;
|
||||
private final BaseGitActivity callingActivity;
|
||||
private final SharedPreferences settings;
|
||||
|
||||
/**
|
||||
* Construct a new IdentityBuilder
|
||||
|
|
|
@ -18,6 +18,7 @@ import kotlin.experimental.and
|
|||
object Otp {
|
||||
private val BASE_32 = Base32()
|
||||
private val STEAM_ALPHABET = "23456789BCDFGHJKMNPQRTVWXY".toCharArray()
|
||||
|
||||
init {
|
||||
check(STEAM_ALPHABET.size == 26)
|
||||
}
|
||||
|
|
|
@ -11,6 +11,7 @@ import android.net.Uri
|
|||
* [Uri] backed TOTP URL parser.
|
||||
*/
|
||||
class UriTotpFinder : TotpFinder {
|
||||
|
||||
override fun findSecret(content: String): String? {
|
||||
content.split("\n".toRegex()).forEach { line ->
|
||||
if (line.startsWith("otpauth://totp/")) {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:pathData="M9.5,6.5v3h-3v-3H9.5M11,5H5v6h6V5L11,5zM9.5,14.5v3h-3v-3H9.5M11,13H5v6h6V13L11,13zM17.5,6.5v3h-3v-3H17.5M19,5h-6v6h6V5L19,5zM13,13h1.5v1.5H13V13zM14.5,14.5H16V16h-1.5V14.5zM16,13h1.5v1.5H16V13zM13,16h1.5v1.5H13V16zM14.5,17.5H16V19h-1.5V17.5zM16,16h1.5v1.5H16V16zM17.5,14.5H19V16h-1.5V14.5zM17.5,17.5H19V19h-1.5V17.5zM22,7h-2V4h-3V2h5V7zM22,22v-5h-2v3h-3v2H22zM2,22h5v-2H4v-3H2V22zM2,2v5h2V4h3V2H2z"
|
||||
android:fillColor="#000000"/>
|
||||
<path
|
||||
android:fillColor="#000000"
|
||||
android:pathData="M9.5,6.5v3h-3v-3H9.5M11,5H5v6h6V5L11,5zM9.5,14.5v3h-3v-3H9.5M11,13H5v6h6V13L11,13zM17.5,6.5v3h-3v-3H17.5M19,5h-6v6h6V5L19,5zM13,13h1.5v1.5H13V13zM14.5,14.5H16V16h-1.5V14.5zM16,13h1.5v1.5H16V13zM13,16h1.5v1.5H13V16zM14.5,17.5H16V19h-1.5V17.5zM16,16h1.5v1.5H16V16zM17.5,14.5H19V16h-1.5V14.5zM17.5,17.5H19V19h-1.5V17.5zM22,7h-2V4h-3V2h5V7zM22,22v-5h-2v3h-3v2H22zM2,22h5v-2H4v-3H2V22zM2,2v5h2V4h3V2H2z" />
|
||||
</vector>
|
||||
|
|
|
@ -31,8 +31,8 @@
|
|||
android:layout_gravity="bottom"
|
||||
android:textSize="18sp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/type_image"
|
||||
app:layout_constraintEnd_toStartOf="@id/child_count"
|
||||
app:layout_constraintStart_toEndOf="@id/type_image"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:text="FILE_NAME" />
|
||||
|
||||
|
|
Loading…
Reference in a new issue