|
|
@ -10,7 +10,6 @@ import android.view.View.NO_ID |
|
|
|
import android.widget.EditText |
|
|
|
import android.widget.EditText |
|
|
|
import io.legado.app.App |
|
|
|
import io.legado.app.App |
|
|
|
import io.legado.app.R |
|
|
|
import io.legado.app.R |
|
|
|
import io.legado.app.constant.PreferKey |
|
|
|
|
|
|
|
import io.legado.app.data.entities.Bookmark |
|
|
|
import io.legado.app.data.entities.Bookmark |
|
|
|
import io.legado.app.help.AppConfig |
|
|
|
import io.legado.app.help.AppConfig |
|
|
|
import io.legado.app.help.ReadBookConfig |
|
|
|
import io.legado.app.help.ReadBookConfig |
|
|
@ -23,7 +22,6 @@ import io.legado.app.lib.theme.ThemeStore |
|
|
|
import io.legado.app.service.help.Download |
|
|
|
import io.legado.app.service.help.Download |
|
|
|
import io.legado.app.service.help.ReadBook |
|
|
|
import io.legado.app.service.help.ReadBook |
|
|
|
import io.legado.app.utils.applyTint |
|
|
|
import io.legado.app.utils.applyTint |
|
|
|
import io.legado.app.utils.getPrefBoolean |
|
|
|
|
|
|
|
import io.legado.app.utils.requestInputMethod |
|
|
|
import io.legado.app.utils.requestInputMethod |
|
|
|
import kotlinx.android.synthetic.main.dialog_download_choice.view.* |
|
|
|
import kotlinx.android.synthetic.main.dialog_download_choice.view.* |
|
|
|
import kotlinx.android.synthetic.main.dialog_edit_text.view.* |
|
|
|
import kotlinx.android.synthetic.main.dialog_edit_text.view.* |
|
|
@ -42,15 +40,14 @@ object Help { |
|
|
|
or View.SYSTEM_UI_FLAG_LAYOUT_STABLE |
|
|
|
or View.SYSTEM_UI_FLAG_LAYOUT_STABLE |
|
|
|
or View.SYSTEM_UI_FLAG_IMMERSIVE |
|
|
|
or View.SYSTEM_UI_FLAG_IMMERSIVE |
|
|
|
or View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY) |
|
|
|
or View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY) |
|
|
|
val hideNavigationBar = App.INSTANCE.getPrefBoolean(PreferKey.hideNavigationBar) |
|
|
|
if (ReadBookConfig.hideNavigationBar) { |
|
|
|
if (hideNavigationBar) { |
|
|
|
|
|
|
|
flag = flag or View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION |
|
|
|
flag = flag or View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION |
|
|
|
} |
|
|
|
} |
|
|
|
if (toolBarHide) { |
|
|
|
if (toolBarHide) { |
|
|
|
if (App.INSTANCE.getPrefBoolean(PreferKey.hideStatusBar)) { |
|
|
|
if (ReadBookConfig.hideStatusBar) { |
|
|
|
flag = flag or View.SYSTEM_UI_FLAG_FULLSCREEN |
|
|
|
flag = flag or View.SYSTEM_UI_FLAG_FULLSCREEN |
|
|
|
} |
|
|
|
} |
|
|
|
if (hideNavigationBar) { |
|
|
|
if (ReadBookConfig.hideNavigationBar) { |
|
|
|
flag = flag or View.SYSTEM_UI_FLAG_HIDE_NAVIGATION |
|
|
|
flag = flag or View.SYSTEM_UI_FLAG_HIDE_NAVIGATION |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|