( int percent )
| 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; |