Skip to content

Commit

Permalink
do not attack new user with request to register/login
Browse files Browse the repository at this point in the history
  • Loading branch information
matkoniecz committed Jun 27, 2019
1 parent 1f066da commit 5438c2f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,7 @@ private void confirmUndo(final OsmQuest quest)
@UiThread private void requestOAuthorized()
{
if(dontShowRequestAuthorizationAgain) return;
if(answersCounter.waitingForUpload() <= 5) 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 @@ -86,6 +86,10 @@ public void discardedOne()
updateTexts();
}

public Integer waitingForUpload(){
return unsynced;
}

@SuppressLint("StaticFieldLeak") public void update()
{
new AsyncTask<Void, Void, Void>()
Expand Down

0 comments on commit 5438c2f

Please sign in to comment.