blob: 3dfe2f1b3e6be526460a84159358be7b1feef162 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
package net.miz_hi.smileessence.util;
import android.os.Handler;
import android.os.Looper;
public abstract class UiHandler extends Handler implements Runnable
{
public UiHandler()
{
super(Looper.getMainLooper());
}
public UiHandler(Handler.Callback callback)
{
super(Looper.getMainLooper(), callback);
}
public boolean post()
{
return post(this);
}
public boolean postAtFrontOfQueue()
{
return postAtFrontOfQueue(this);
}
public boolean postAtTime(Object token, long uptimeMillis)
{
return postAtTime(this, token, uptimeMillis);
}
public boolean postAtTime(long uptimeMillis)
{
return postAtTime(this, uptimeMillis);
}
public boolean postDelayed(long delayMillis)
{
return postDelayed(this, delayMillis);
}
@Override
public abstract void run();
}
|