Created
January 29, 2016 18:51
-
-
Save rosenpin/a6cf66293f846c0e31f3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (options.size() < 5) { | |
final int optionSize = options.size(); | |
for (int i = 0; i < 4 - optionSize; ) { | |
boolean toAdd = true; | |
for (int a = 0; a < optionSize; a++) { | |
if (options2.get(i).getTitle().equals(options.get(a).getTitle())) { | |
toAdd = false; | |
break; | |
} | |
} | |
if (toAdd) { | |
options.add(options2.get(i)); | |
i++; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment