Enforce signin before my contributions is visible

This commit is contained in:
YuviPanda 2013-02-04 19:38:38 +05:30
parent 546e7a1276
commit 4abf3156e7

View file

@ -220,6 +220,12 @@ public class ContributionsActivity extends AuthenticatedActivity implements Load
// See http://stackoverflow.com/a/5054673/17865 for why this is done // See http://stackoverflow.com/a/5054673/17865 for why this is done
private Uri lastGeneratedCaptureURI; private Uri lastGeneratedCaptureURI;
@Override
protected void onAuthFailure() {
super.onAuthFailure();
finish(); // If authentication failed, we just exit
}
private void reGenerateImageCaptureURI() { private void reGenerateImageCaptureURI() {
String storageState = Environment.getExternalStorageState(); String storageState = Environment.getExternalStorageState();
if(storageState.equals(Environment.MEDIA_MOUNTED)) { if(storageState.equals(Environment.MEDIA_MOUNTED)) {