Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.

Commit f4af317

Browse files
committed
Add note for failed logins on dev auth screen
1 parent 87cf423 commit f4af317

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

app/src/main/java/com/zulip/android/activities/DevAuthActivity.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import android.os.Bundle;
66
import android.support.v7.widget.LinearLayoutManager;
77
import android.support.v7.widget.RecyclerView;
8+
import android.widget.Toast;
89

910
import com.zulip.android.R;
1011
import com.zulip.android.networking.AsyncDevGetEmails;
@@ -73,6 +74,7 @@ public void onSuccess(Call<LoginResponse> call, Response<LoginResponse> response
7374
@Override
7475
public void onError(Call<LoginResponse> call, Response<LoginResponse> response) {
7576
// do nothing
77+
Toast.makeText(DevAuthActivity.this, R.string.login_failed, Toast.LENGTH_LONG).show();
7678
}
7779

7880
});

app/src/main/res/values/strings.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,5 @@
8888
<string name="login_activity_toast_login_error">Unknown login error.</string>
8989
<string name="no_topic_in_message">(no topic)</string>
9090
<string name="message_copied">Message Copied</string>
91+
<string name="login_failed">Unable to login</string>
9192
</resources>

0 commit comments

Comments
 (0)