fix adding repos via incoming URLs

This fixes bad logic introduced in c52262a4057f8a86a1082e4cfbab4e70ff195daf
This commit is contained in:
Hans-Christoph Steiner 2015-05-07 15:15:17 -04:00
parent f79f95e25a
commit e543895940

View File

@ -193,7 +193,7 @@ public class FDroid extends ActionBarActivity {
// Don't handle the intent after coming back to this view (e.g. after hitting the back button)
// http://stackoverflow.com/a/14820849
Intent intent = getIntent();
if (intent.hasExtra("handled")) {
if (!intent.hasExtra("handled")) {
NewRepoConfig parser = new NewRepoConfig(this, intent);
if (parser.isValidRepo()) {
intent.putExtra("handled", true);