protected @SQLiteOpenOptions int determineOpenOptions(File databaseFile){
  @SQLiteOpenOptions int flags=0;
  File walFile=new File(databaseFile.getParent(),databaseFile.getName() + "-wal");
  if (walFile.exists()) {
    flags|=SQLiteDatabaseCompat.ENABLE_WRITE_AHEAD_LOGGING;
  }
  return flags;
}

protected @ SQLiteOpenOptions int determineOpenOptions ( File databaseFile ) { @ SQLiteOpenOptions int flags = 0 ; File walFile = new File ( databaseFile . getParent ( ) , databaseFile . getName ( ) + "-wal" ) ; if ( walFile . exists ( ) ) { flags |= SQLiteDatabaseCompat . ENABLE_WRITE_AHEAD_LOGGING ; } return flags ; }
subclassing this function is intended to provide custom open behaviour on a per - file basis .
