Skip to content
Snippets Groups Projects
Verified Commit 15d9ff1e authored by akwizgran's avatar akwizgran
Browse files

Rename "connected" state to "connecting".

parent dc741e98
No related branches found
No related tags found
1 merge request!1129Show "connecting" state for pending contacts
......@@ -3,7 +3,7 @@ package org.briarproject.bramble.api.contact;
public enum PendingContactState {
WAITING_FOR_CONNECTION,
CONNECTED,
CONNECTING,
ADDING_CONTACT,
FAILED
}
......@@ -52,7 +52,7 @@ class PendingContactViewHolder extends ViewHolder {
.getColor(status.getContext(), R.color.briar_yellow);
status.setText(R.string.waiting_for_contact_to_come_online);
break;
case CONNECTED:
case CONNECTING:
status.setText(R.string.connecting);
break;
case ADDING_CONTACT:
......
......@@ -131,7 +131,7 @@ This will return a JSON array of pending contacts and their states:
The state can be one of these values:
* `waiting_for_connection`
* `connected`
* `connecting`
* `adding_contact`
* `failed`
......
......@@ -16,7 +16,7 @@ internal fun PendingContact.output() = JsonDict(
internal fun PendingContactState.output() = when(this) {
WAITING_FOR_CONNECTION -> "waiting_for_connection"
CONNECTED -> "connected"
CONNECTING -> "connecting"
ADDING_CONTACT -> "adding_contact"
FAILED -> "failed"
else -> throw AssertionError()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment