mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 14:30:35 +02:00
Android - Search - Code style fixes
This commit is contained in:
parent
843aa9e261
commit
d4a6e845cd
2 changed files with 10 additions and 8 deletions
|
@ -109,15 +109,17 @@ public class UserStoryDomainProvider implements DomainProvider {
|
|||
}
|
||||
|
||||
private boolean matches(UserStory story) {
|
||||
if (mWords.length<=0) return true;
|
||||
|
||||
boolean res = true;
|
||||
for (String word: mWords) {
|
||||
res = res && story.searchText().contains(word);
|
||||
if (!res) break;
|
||||
if (mWords.length <= 0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return res;
|
||||
for (String word : mWords) {
|
||||
if (!story.searchText().contains(word)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
private void addToSuggestions(UserStory story) {
|
||||
|
|
Loading…
Reference in a new issue