Handle case when Authentication fails

This commit is contained in:
YuviPanda 2012-10-25 23:37:29 +05:30
parent b85cc9c0e5
commit 52b16d298e
2 changed files with 13 additions and 0 deletions

View file

@ -18,6 +18,7 @@
<string name="uploading_message">More witty text here!</string>
<string name="uploading_success">Upload succeeded!</string>
<string name="uploading_failed">Upload failed!</string>
<string name="authentication_failed">Authentication failed!</string>
<string name="uploading_started">Upload started!</string>
</resources>

View file

@ -68,6 +68,18 @@ public class ShareActivity extends AuthenticatedActivity {
}
}
}
@Override
protected void onAuthFailure() {
super.onAuthFailure();
Toast failureToast = Toast.makeText(this, R.string.authentication_failed, Toast.LENGTH_LONG);
failureToast.show();
finish();
}
@Override
public void onCreate(Bundle savedInstanceState) {