mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Enforce signin before my contributions is visible
This commit is contained in:
parent
546e7a1276
commit
4abf3156e7
1 changed files with 6 additions and 0 deletions
|
|
@ -220,6 +220,12 @@ public class ContributionsActivity extends AuthenticatedActivity implements Load
|
|||
// See http://stackoverflow.com/a/5054673/17865 for why this is done
|
||||
private Uri lastGeneratedCaptureURI;
|
||||
|
||||
@Override
|
||||
protected void onAuthFailure() {
|
||||
super.onAuthFailure();
|
||||
finish(); // If authentication failed, we just exit
|
||||
}
|
||||
|
||||
private void reGenerateImageCaptureURI() {
|
||||
String storageState = Environment.getExternalStorageState();
|
||||
if(storageState.equals(Environment.MEDIA_MOUNTED)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue