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
affected people not logged in, with low star cound and disable autosync
  • Loading branch information
matkoniecz committed Jul 8, 2019
1 parent c9272ba commit fe4691f
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 fe4691f

Please sign in to comment.