|
|
@ -51,11 +51,8 @@ import io.legado.app.ui.replace.ReplaceRuleActivity |
|
|
|
import io.legado.app.ui.replace.edit.ReplaceEditActivity |
|
|
|
import io.legado.app.ui.replace.edit.ReplaceEditActivity |
|
|
|
import io.legado.app.ui.widget.dialog.TextDialog |
|
|
|
import io.legado.app.ui.widget.dialog.TextDialog |
|
|
|
import io.legado.app.utils.* |
|
|
|
import io.legado.app.utils.* |
|
|
|
|
|
|
|
import kotlinx.coroutines.* |
|
|
|
import kotlinx.coroutines.Dispatchers.IO |
|
|
|
import kotlinx.coroutines.Dispatchers.IO |
|
|
|
import kotlinx.coroutines.Job |
|
|
|
|
|
|
|
import kotlinx.coroutines.delay |
|
|
|
|
|
|
|
import kotlinx.coroutines.isActive |
|
|
|
|
|
|
|
import kotlinx.coroutines.launch |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ReadBookActivity : ReadBookBaseActivity(), |
|
|
|
class ReadBookActivity : ReadBookBaseActivity(), |
|
|
|
View.OnTouchListener, |
|
|
|
View.OnTouchListener, |
|
|
@ -210,6 +207,10 @@ class ReadBookActivity : ReadBookBaseActivity(), |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
launch { |
|
|
|
|
|
|
|
menu.findItem(R.id.menu_get_progress)?.isVisible = |
|
|
|
|
|
|
|
withContext(IO) { AppWebDav.initWebDav() } |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|