Skip to content

Commit

Permalink
request an early login on explicit upload
Browse files Browse the repository at this point in the history
fixes streetcomplete#1446 - upload button was not working for unlogged users with low star count
  • Loading branch information
matkoniecz committed Jul 8, 2019
1 parent c9272ba commit 0543ba4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ private void confirmUndo(final OsmQuest quest)
@UiThread private void requestOAuthorized()
{
if(dontShowRequestAuthorizationAgain) return;
if(answersCounter.waitingForUpload() <= 5) return;
if(answersCounter.waitingForUpload() <= 5 && answersCounter.isAutosync) return;

View inner = LayoutInflater.from(this).inflate(
R.layout.dialog_authorize_now, null, false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class AnswersCounter
private View unsyncedContainer;

private boolean isFirstUpdateDone;
private boolean isAutosync;
public boolean isAutosync;

@Inject public AnswersCounter(OsmQuestDao questDB, OsmNoteQuestDao noteQuestDB,
CreateNoteDao createNoteDB, QuestStatisticsDao questStatisticsDB)
Expand Down

0 comments on commit 0543ba4

Please sign in to comment.