|
@@ -11,7 +11,12 @@ import android.graphics.Bitmap
|
|
|
import android.graphics.Color
|
|
|
import android.os.Build
|
|
|
import android.os.Bundle
|
|
|
-import android.view.*
|
|
|
+import android.view.KeyEvent
|
|
|
+import android.view.Menu
|
|
|
+import android.view.MenuItem
|
|
|
+import android.view.MotionEvent
|
|
|
+import android.view.View
|
|
|
+import android.view.WindowManager
|
|
|
import android.view.animation.Animation
|
|
|
import android.view.animation.AnimationUtils
|
|
|
import android.widget.SeekBar
|
|
@@ -24,7 +29,9 @@ import eu.kanade.tachiyomi.data.notification.Notifications
|
|
|
import eu.kanade.tachiyomi.data.preference.PreferencesHelper
|
|
|
import eu.kanade.tachiyomi.data.preference.getOrDefault
|
|
|
import eu.kanade.tachiyomi.ui.base.activity.BaseRxActivity
|
|
|
-import eu.kanade.tachiyomi.ui.reader.ReaderPresenter.SetAsCoverResult.*
|
|
|
+import eu.kanade.tachiyomi.ui.reader.ReaderPresenter.SetAsCoverResult.AddToLibraryFirst
|
|
|
+import eu.kanade.tachiyomi.ui.reader.ReaderPresenter.SetAsCoverResult.Error
|
|
|
+import eu.kanade.tachiyomi.ui.reader.ReaderPresenter.SetAsCoverResult.Success
|
|
|
import eu.kanade.tachiyomi.ui.reader.model.ReaderChapter
|
|
|
import eu.kanade.tachiyomi.ui.reader.model.ReaderPage
|
|
|
import eu.kanade.tachiyomi.ui.reader.model.ViewerChapters
|
|
@@ -44,7 +51,19 @@ import eu.kanade.tachiyomi.widget.SimpleSeekBarListener
|
|
|
import java.io.File
|
|
|
import java.util.concurrent.TimeUnit
|
|
|
import kotlin.math.abs
|
|
|
-import kotlinx.android.synthetic.main.reader_activity.*
|
|
|
+import kotlinx.android.synthetic.main.reader_activity.brightness_overlay
|
|
|
+import kotlinx.android.synthetic.main.reader_activity.color_overlay
|
|
|
+import kotlinx.android.synthetic.main.reader_activity.left_chapter
|
|
|
+import kotlinx.android.synthetic.main.reader_activity.left_page_text
|
|
|
+import kotlinx.android.synthetic.main.reader_activity.page_number
|
|
|
+import kotlinx.android.synthetic.main.reader_activity.page_seekbar
|
|
|
+import kotlinx.android.synthetic.main.reader_activity.please_wait
|
|
|
+import kotlinx.android.synthetic.main.reader_activity.reader_menu
|
|
|
+import kotlinx.android.synthetic.main.reader_activity.reader_menu_bottom
|
|
|
+import kotlinx.android.synthetic.main.reader_activity.right_chapter
|
|
|
+import kotlinx.android.synthetic.main.reader_activity.right_page_text
|
|
|
+import kotlinx.android.synthetic.main.reader_activity.toolbar
|
|
|
+import kotlinx.android.synthetic.main.reader_activity.viewer_container
|
|
|
import me.zhanghai.android.systemuihelper.SystemUiHelper
|
|
|
import nucleus.factory.RequiresPresenter
|
|
|
import rx.Observable
|