Esempio n. 1
0
 @Override
 public void onQueryAdded(RegexQuery query) {
   synchronized (poolSearchReferences) {
     for (PoolSearch search : poolSearchReferences) {
       search.isSearching = false;
     }
   }
 }
Esempio n. 2
0
 @Override
 public void onQueryRemoved(RegexQuery query) {
   boolean forceStopAll = !pool.containsQueries();
   synchronized (poolSearchReferences) {
     for (PoolSearch search : poolSearchReferences) {
       search.isSearching = false;
       search.forceStop = forceStopAll;
     }
   }
 }