@author cenxiaozhong @date 2020/7/5 @since 1.0.0
| 10 | * @since 1.0.0 |
| 11 | */ |
| 12 | public class AsyncTask { |
| 13 | |
| 14 | |
| 15 | private static final DispatchThread MAIN_QUEUE = new DispatchThread(Looper.getMainLooper()); |
| 16 | |
| 17 | protected void publishProgress(final Integer... values) { |
| 18 | MAIN_QUEUE.post(new Runnable() { |
| 19 | @Override |
| 20 | public void run() { |
| 21 | onProgressUpdate(values); |
| 22 | } |
| 23 | }); |
| 24 | } |
| 25 | |
| 26 | |
| 27 | protected void onProgressUpdate(Integer... values) { |
| 28 | |
| 29 | } |
| 30 | |
| 31 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…