mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Fixed upload from gallery
This commit is contained in:
parent
23a195f486
commit
bf58fcab59
2 changed files with 7 additions and 2 deletions
|
|
@ -169,7 +169,6 @@ public class ShareActivity
|
|||
else //Send user to login activity
|
||||
{
|
||||
Toast.makeText(this, "You need to login first!", Toast.LENGTH_SHORT).show();
|
||||
applicationPrefs.edit().putBoolean("login_skipped", false).apply();
|
||||
Intent loginIntent = new Intent(ShareActivity.this, LoginActivity.class);
|
||||
startActivity(loginIntent);
|
||||
}
|
||||
|
|
@ -311,6 +310,12 @@ public class ShareActivity
|
|||
checkIfFileExists();
|
||||
gpsObj = fileObj.processFileCoordinates(locationPermitted);
|
||||
decimalCoords = fileObj.getDecimalCoords();
|
||||
if (sessionManager.getCurrentAccount() == null) {
|
||||
Toast.makeText(this, getString(R.string.login_alert_message), Toast.LENGTH_SHORT).show();
|
||||
applicationPrefs.edit().putBoolean("login_skipped", false).apply();
|
||||
Intent loginIntent = new Intent(ShareActivity.this, LoginActivity.class);
|
||||
startActivity(loginIntent);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -250,7 +250,7 @@
|
|||
<string name="navigation_item_login">Log in</string>
|
||||
<string name="skip_login_title">Do you really want to skip login?</string>
|
||||
<string name="skip_login_message">You will not be able to upload pictures.</string>
|
||||
<string name="login_alert_message">This feature requires user to be logged in!</string>
|
||||
<string name="login_alert_message">Please log in to use this feature</string>
|
||||
|
||||
<string name="nearby_location_has_not_changed">Location has not changed.</string>
|
||||
<string name="nearby_location_not_available">Location not available.</string>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue