From e458b95d337f264ca80208bafe84b7f46da1c23f Mon Sep 17 00:00:00 2001 From: Peter Osterlund Date: Sat, 31 Dec 2011 12:19:05 +0000 Subject: [PATCH] DroidFish: Moved ListPreference default values to strings.xml. Avoids "converting to string" warnings in the system log. --- DroidFish/res/values/strings.xml | 36 +++++++++++++++++++++++-------- DroidFish/res/xml/preferences.xml | 18 ++++++++-------- 2 files changed, 36 insertions(+), 18 deletions(-) diff --git a/DroidFish/res/values/strings.xml b/DroidFish/res/values/strings.xml index d37278d..4c0dc42 100644 --- a/DroidFish/res/values/strings.xml +++ b/DroidFish/res/values/strings.xml @@ -9,6 +9,8 @@ stockfish cuckoochess + stockfish + Automatic 1 @@ -23,6 +25,8 @@ 3 4 + 0 + Whole Game 1 move @@ -43,6 +47,8 @@ 50 60 + 60 + 15 seconds 30 seconds @@ -73,6 +79,8 @@ 5400000 7200000 + 300000 + 0s 1s @@ -99,6 +107,8 @@ 30000 60000 + 0 + Small Medium @@ -111,6 +121,8 @@ 16 21 + 12 + No arrows Max 1 Arrow @@ -129,6 +141,8 @@ 5 6 + 2 + Off Slowest @@ -145,15 +159,8 @@ 1 0.5 - - 5 - 10 - 15 - 20 - 30 - 50 - 1000000 - + 2 + 5 moves 10 moves @@ -163,6 +170,17 @@ 50 moves Unlimited + + 5 + 10 + 15 + 20 + 30 + 50 + 1000000 + + 1000000 + \ About\n\ DroidFish is an Android port of the famous stockfish 2.1.1 chess engine. \ diff --git a/DroidFish/res/xml/preferences.xml b/DroidFish/res/xml/preferences.xml index b3d2213..72480eb 100644 --- a/DroidFish/res/xml/preferences.xml +++ b/DroidFish/res/xml/preferences.xml @@ -24,7 +24,7 @@ android:summary="@string/prefs_engine_summary" android:entryValues="@array/engine_values" android:entries="@array/engine_texts" - android:defaultValue="stockfish"> + android:defaultValue="@string/engine_default"> + android:defaultValue="@string/engine_threads_default"> + android:defaultValue="@string/moves_per_session_default"> + android:defaultValue="@string/time_control_default"> + android:defaultValue="@string/time_increment_default"> + android:defaultValue="@string/thinking_arrows_default"> + android:defaultValue="@string/scroll_sensitivity_default"> + android:defaultValue="@string/font_size_default"> + android:defaultValue="@string/book_line_length_default">