From 887b1570564cfc6c6ff5cf7f438ce6c6634df544 Mon Sep 17 00:00:00 2001 From: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com> Date: Sun, 22 Aug 2021 05:05:57 +0700 Subject: [PATCH] Add haptic feedback to reader page slider (#5763) --- .../main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt | 2 ++ 1 file changed, 2 insertions(+) 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 309600ae4..c8acea3cd 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 @@ -17,6 +17,7 @@ import android.graphics.PorterDuff import android.os.Build import android.os.Bundle import android.view.Gravity +import android.view.HapticFeedbackConstants import android.view.KeyEvent import android.view.Menu import android.view.MenuItem @@ -347,6 +348,7 @@ class ReaderActivity : BaseRxActivity() override fun onProgressChanged(seekBar: SeekBar, value: Int, fromUser: Boolean) { if (viewer != null && fromUser) { moveToPageIndex(value) + binding.pageSeekbar.performHapticFeedback(HapticFeedbackConstants.VIRTUAL_KEY) } } }