MCPcopy Create free account
hub / github.com/buggins/coolreader / runInGUI

Method runInGUI

android/src/org/coolreader/crengine/Engine.java:237–252  ·  view source on GitHub ↗

Schedule Runnable for execution in GUI thread after all current Engine queue tasks done. @param task

(final Runnable task)

Source from the content-addressed store, hash-verified

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)

Callers 3

showBrowserMethod · 0.80
showBrowserRootMethod · 0.80

Calls 1

executeMethod · 0.95

Tested by

no test coverage detected