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