From 1e061d288b215a9926b696bc42cefc8c4a7a02fa Mon Sep 17 00:00:00 2001 From: Peter Osterlund Date: Sat, 3 Dec 2016 10:39:41 +0100 Subject: [PATCH] DroidFish: Made it possible to disable automatic move list scrolling. --- DroidFish/res/values/strings.xml | 2 ++ DroidFish/res/xml/preferences.xml | 6 ++++++ DroidFish/src/org/petero/droidfish/DroidFish.java | 4 +++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/DroidFish/res/values/strings.xml b/DroidFish/res/values/strings.xml index 70b5ebb..5f1ee82 100644 --- a/DroidFish/res/values/strings.xml +++ b/DroidFish/res/values/strings.xml @@ -306,6 +306,8 @@ you are not actively using the program.\ Scrolling speed for game navigation Invert Scroll Direction Enable this if you think scrolling moves in the wrong direction + Auto scroll move list + Automatically scroll the move list to the current board position Discard variations Discard non-mainline moves from move list Left-handed mode diff --git a/DroidFish/res/xml/preferences.xml b/DroidFish/res/xml/preferences.xml index 36d92c8..caa23be 100644 --- a/DroidFish/res/xml/preferences.xml +++ b/DroidFish/res/xml/preferences.xml @@ -521,6 +521,12 @@ android:summary="@string/prefs_invertScrollDirection_summary" android:defaultValue="false"> + + = 0) { + if (line >= 0 && autoScrollMoveList) { int y = (line - 1) * moveList.getLineHeight(); moveListScroll.scrollTo(0, y); }