boolean () { //RC: Basically, we're trying to flush 'if idle': i.e. we don't want to issue a flush if // somebody actively writes to VFS because flush will slow them down, if not stall // them -- and (regular) flush is less important than e.g. a current UI task. So we // attempt to flush only if there were _no updates_ in VFS since the last invocation // of this method: int currentModCount = connection.records.getGlobalModCount(); if (lastModCount != currentModCount) { lastModCount = currentModCount; return true; } return false; }