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

Method progress

android/src/org/coolreader/crengine/Scanner.java:244–254  ·  view source on GitHub ↗
( int percent )

Source from the content-addressed store, hash-verified

242 boolean progressShown = false;
243 final Collection<FileInfo> booksToSave = new ArrayList<FileInfo>();
244 void progress( int percent )
245 {
246 if ( recursiveScan )
247 return; // no progress dialog for recursive scan
248 long ts = System.currentTimeMillis();
249 if ( ts>=nextProgressTime ) {
250 engine.showProgress(percent, R.string.progress_scanning);
251 nextProgressTime = ts + 1500;
252 progressShown = true;
253 }
254 }
255
256 public void done() {
257 baseDir.isScanned = true;

Callers 1

scanMethod · 0.95

Calls 1

showProgressMethod · 0.45

Tested by

no test coverage detected