From 9065362fde063ec1f2913dcc33c7f98d99ab3e65 Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 17 Apr 2021 18:05:04 -0400 Subject: [PATCH] Move reading mode toast to default bottom position Toasts don't block user interaction, so it's probably fine. --- .../java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt index 62261ba3a2..8043976306 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt @@ -10,7 +10,6 @@ import android.graphics.Bitmap import android.graphics.Color import android.os.Build import android.os.Bundle -import android.view.Gravity import android.view.KeyEvent import android.view.Menu import android.view.MenuItem @@ -562,9 +561,7 @@ class ReaderActivity : BaseRxActivity() try { val strings = resources.getStringArray(R.array.viewers_selector) readingModeToast?.cancel() - readingModeToast = toast(strings[mode]) { - it.setGravity(Gravity.CENTER_VERTICAL or Gravity.CENTER_HORIZONTAL, 0, 0) - } + readingModeToast = toast(strings[mode]) } catch (e: ArrayIndexOutOfBoundsException) { Timber.e("Unknown reading mode: $mode") }