Permalink
Browse files

Use getString from Activity

  • Loading branch information...
1 parent ca0342a commit 95d21476ea8c13b11cf0656899851d981db4b146 @kevinsawicki kevinsawicki committed Dec 3, 2012
@@ -259,12 +259,10 @@ protected void onException(Exception e) throws RuntimeException {
// A 401 is returned as an IOException with this message
if ("Received authentication challenge is null".equals(cause
.getMessage()))
- message = getResources().getString(
- string.message_bad_credentials);
+ message = getString(string.message_bad_credentials);
else if ("No authentication challenges found".equals(cause
.getMessage()))
- message = getResources().getString(
- string.message_bad_credentials);
+ message = getString(string.message_bad_credentials);
else
message = cause.getMessage();

0 comments on commit 95d2147

Please sign in to comment.