minor fixes
This commit is contained in:
parent
b7c226a739
commit
c317e1d56b
|
@ -50,8 +50,8 @@ class Request(private val uri: Uri, private val keyManager: KeyManager? = null)
|
||||||
scope.launch(Dispatchers.IO) {
|
scope.launch(Dispatchers.IO) {
|
||||||
val buffer = ByteArray(1024)
|
val buffer = ByteArray(1024)
|
||||||
var numRead: Int
|
var numRead: Int
|
||||||
socket.inputStream.use { socket_input_stream ->
|
socket.inputStream.use { socketInputStream ->
|
||||||
BufferedInputStream(socket_input_stream).use { bis ->
|
BufferedInputStream(socketInputStream).use { bis ->
|
||||||
try {
|
try {
|
||||||
while ((bis.read(buffer).also { numRead = it }) >= 0) {
|
while ((bis.read(buffer).also { numRead = it }) >= 0) {
|
||||||
val received = buffer.sliceArray(0 until numRead)
|
val received = buffer.sliceArray(0 until numRead)
|
||||||
|
|
|
@ -26,7 +26,8 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginEnd="16dp"
|
android:layout_marginEnd="16dp"
|
||||||
android:layout_marginBottom="16dp"
|
android:layout_marginBottom="16dp"
|
||||||
|
android:contentDescription="@string/identity_new"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="@+id/list" />
|
app:layout_constraintEnd_toEndOf="parent" />
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
@ -53,5 +53,6 @@
|
||||||
<string name="navigation_drawer_open">Open navigation drawer</string>
|
<string name="navigation_drawer_open">Open navigation drawer</string>
|
||||||
<string name="navigation_drawer_close">Close navigation drawer</string>
|
<string name="navigation_drawer_close">Close navigation drawer</string>
|
||||||
<string name="logo">Logo</string>
|
<string name="logo">Logo</string>
|
||||||
|
<string name="identity_new">Add new identity</string>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
Reference in a new issue