From ebdf4cce87b368999e463a90c9d5e332813164ca Mon Sep 17 00:00:00 2001 From: Andy2 Date: Wed, 6 Jul 2011 18:50:11 -0700 Subject: [PATCH] add new preference to keep the screen on when the board's visible (per request). Off by default, of course. --- xwords4/android/XWords4/res/values/common_rsrc.xml | 1 + xwords4/android/XWords4/res/values/strings.xml | 2 ++ xwords4/android/XWords4/res/xml/xwprefs.xml | 5 +++++ .../src/org/eehouse/android/xw4/BoardActivity.java | 9 +++++++++ .../src/org/eehouse/android/xw4/jni/CommonPrefs.java | 5 +++++ 5 files changed, 22 insertions(+) diff --git a/xwords4/android/XWords4/res/values/common_rsrc.xml b/xwords4/android/XWords4/res/values/common_rsrc.xml index 025c775da..e88288590 100644 --- a/xwords4/android/XWords4/res/values/common_rsrc.xml +++ b/xwords4/android/XWords4/res/values/common_rsrc.xml @@ -45,6 +45,7 @@ key_notify_sound key_notify_vibrate key_hide_intro + key_keep_screenon key_notagain_sync key_notagain_chat diff --git a/xwords4/android/XWords4/res/values/strings.xml b/xwords4/android/XWords4/res/values/strings.xml index a9c668166..0db92ef06 100644 --- a/xwords4/android/XWords4/res/values/strings.xml +++ b/xwords4/android/XWords4/res/values/strings.xml @@ -211,6 +211,8 @@ Show board arrow Tapped rack tiles land on this arrow when it is visible + Keep screen on + Never dim or lock board screen Explain other moves Display score summary after every robot or remote turn diff --git a/xwords4/android/XWords4/res/xml/xwprefs.xml b/xwords4/android/XWords4/res/xml/xwprefs.xml index d37963fd2..2cd39f507 100644 --- a/xwords4/android/XWords4/res/xml/xwprefs.xml +++ b/xwords4/android/XWords4/res/xml/xwprefs.xml @@ -81,6 +81,11 @@ android:summary="@string/show_arrow_summary" android:defaultValue="true" /> +