blob: bad93072dd6d6f69e06c816b39f62140f127e342 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
package de.pixart.messenger.utils;
public class ReplacingSerialSingleThreadExecutor extends SerialSingleThreadExecutor {
public ReplacingSerialSingleThreadExecutor(boolean prepareLooper) {
super(prepareLooper);
}
@Override
public synchronized void execute(final Runnable r) {
tasks.clear();
super.execute(r);
}
}
|