Schedule Runnable for execution in GUI thread after all current Engine queue tasks done. @param task
(final Runnable task)
| 235 | * @param task |
| 236 | */ |
| 237 | public void runInGUI(final Runnable task) { |
| 238 | execute(new EngineTask() { |
| 239 | |
| 240 | public void done() { |
| 241 | mBackgroundThread.postGUI(task); |
| 242 | } |
| 243 | |
| 244 | public void fail(Exception e) { |
| 245 | // do nothing |
| 246 | } |
| 247 | |
| 248 | public void work() throws Exception { |
| 249 | // do nothing |
| 250 | } |
| 251 | }); |
| 252 | } |
| 253 | |
| 254 | public void fatalError(String msg) { |
| 255 | AlertDialog dlg = new AlertDialog.Builder(mActivity).setMessage(msg) |
no test coverage detected