diff --git a/app/src/main/java/dev/lowrespalmtree/comet/Request.kt b/app/src/main/java/dev/lowrespalmtree/comet/Request.kt index cb4dc39..0e57823 100644 --- a/app/src/main/java/dev/lowrespalmtree/comet/Request.kt +++ b/app/src/main/java/dev/lowrespalmtree/comet/Request.kt @@ -50,8 +50,8 @@ class Request(private val uri: Uri, private val keyManager: KeyManager? = null) scope.launch(Dispatchers.IO) { val buffer = ByteArray(1024) var numRead: Int - socket.inputStream.use { socket_input_stream -> - BufferedInputStream(socket_input_stream).use { bis -> + socket.inputStream.use { socketInputStream -> + BufferedInputStream(socketInputStream).use { bis -> try { while ((bis.read(buffer).also { numRead = it }) >= 0) { val received = buffer.sliceArray(0 until numRead) diff --git a/app/src/main/res/layout/fragment_identities.xml b/app/src/main/res/layout/fragment_identities.xml index 1161c16..ecfbfeb 100644 --- a/app/src/main/res/layout/fragment_identities.xml +++ b/app/src/main/res/layout/fragment_identities.xml @@ -26,7 +26,8 @@ android:layout_height="wrap_content" android:layout_marginEnd="16dp" android:layout_marginBottom="16dp" + android:contentDescription="@string/identity_new" app:layout_constraintBottom_toBottomOf="parent" - app:layout_constraintEnd_toEndOf="@+id/list" /> + app:layout_constraintEnd_toEndOf="parent" /> \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index a3199ff..b20e956 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -53,5 +53,6 @@ Open navigation drawer Close navigation drawer Logo + Add new identity \ No newline at end of file