This code does literally nothing until you add "System.out.println();" between the 3rd and 4th lines.
@Override
public void run() {
while (true){
if(endsIn != 0 && System.currentTimeMillis() < endsIn){
endsIn = 0;
adapter.check();
}
}
}