From fdcbb0dad02f5b77009fab6faaa9d907c486d941 Mon Sep 17 00:00:00 2001 From: Mohammed Sempala Date: Sun, 30 May 2021 03:08:38 +0300 Subject: [PATCH] fixes to prevent scrolling from last position of reading --- .../com/quran/labs/androidquran/ui/PagerActivity.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/com/quran/labs/androidquran/ui/PagerActivity.java b/app/src/main/java/com/quran/labs/androidquran/ui/PagerActivity.java index 1c9703108c..381cd782fd 100644 --- a/app/src/main/java/com/quran/labs/androidquran/ui/PagerActivity.java +++ b/app/src/main/java/com/quran/labs/androidquran/ui/PagerActivity.java @@ -707,11 +707,11 @@ public void onResume() { shouldReconnect = false; })); } - - if (highlightedSura > 0 && highlightedAyah > 0) { - handler.postDelayed(() -> - highlightAyah(highlightedSura, highlightedAyah, false, HighlightType.SELECTION), 750); - } + // commented out to disable unnecessary scrolling at resume + // if (highlightedSura > 0 && highlightedAyah > 0) { + // handler.postDelayed(() -> + // highlightAyah(highlightedSura, highlightedAyah, false, HighlightType.SELECTION), 750); + // } updateNavigationBar(quranSettings.isNightMode()); }