From 0474984b82b1e925b5fcb720dedb7a70f520be9b Mon Sep 17 00:00:00 2001 From: Andy2 Date: Tue, 6 Dec 2011 18:18:50 -0800 Subject: [PATCH] export new preference from jni and add a checkbox setting for it --- xwords4/android/XWords4/jni/xwjni.c | 3 +++ xwords4/android/XWords4/res/values/common_rsrc.xml | 1 + xwords4/android/XWords4/res/values/strings.xml | 12 ++++++++++++ xwords4/android/XWords4/res/xml/xwprefs.xml | 5 +++++ .../src/org/eehouse/android/xw4/jni/CommonPrefs.java | 4 +++- 5 files changed, 24 insertions(+), 1 deletion(-) diff --git a/xwords4/android/XWords4/jni/xwjni.c b/xwords4/android/XWords4/jni/xwjni.c index fb46716d8..5f8a2b99f 100644 --- a/xwords4/android/XWords4/jni/xwjni.c +++ b/xwords4/android/XWords4/jni/xwjni.c @@ -177,6 +177,9 @@ loadCommonPrefs( JNIEnv* env, CommonPrefs* cp, jobject j_cp ) cp->showColors = getBool( env, j_cp, "showColors" ); cp->sortNewTiles = getBool( env, j_cp, "sortNewTiles" ); cp->allowPeek = getBool( env, j_cp, "allowPeek" ); +#ifdef XWFEATURE_CROSSHAIRS + cp->hideCrosshairs = getBool( env, j_cp, "hideCrosshairs" ); +#endif } static XWStreamCtxt* diff --git a/xwords4/android/XWords4/res/values/common_rsrc.xml b/xwords4/android/XWords4/res/values/common_rsrc.xml index cfb2f5abd..cd53aec50 100644 --- a/xwords4/android/XWords4/res/values/common_rsrc.xml +++ b/xwords4/android/XWords4/res/values/common_rsrc.xml @@ -12,6 +12,7 @@ key_skip_confirm key_sort_tiles key_peek_other + key_hide_crosshairs key_hide_values key_ringer_zoom key_hide_title diff --git a/xwords4/android/XWords4/res/values/strings.xml b/xwords4/android/XWords4/res/values/strings.xml index 45e455b90..cf35111c7 100644 --- a/xwords4/android/XWords4/res/values/strings.xml +++ b/xwords4/android/XWords4/res/values/strings.xml @@ -1057,6 +1057,18 @@ Tapping on scoreboard name shows that player\'s tiles + + + Disable crosshairs + + Do not visually indicate which board cell is touched + Network game settings Settings that apply to diff --git a/xwords4/android/XWords4/res/xml/xwprefs.xml b/xwords4/android/XWords4/res/xml/xwprefs.xml index c961870b2..40fc7b009 100644 --- a/xwords4/android/XWords4/res/xml/xwprefs.xml +++ b/xwords4/android/XWords4/res/xml/xwprefs.xml @@ -231,6 +231,11 @@ android:summary="@string/ringer_zoom_summary" android:defaultValue="false" /> +