diff --git a/xwords4/android/XWords4/res/values/common_rsrc.xml b/xwords4/android/XWords4/res/values/common_rsrc.xml index 31c40d41b..4b10a89c9 100644 --- a/xwords4/android/XWords4/res/values/common_rsrc.xml +++ b/xwords4/android/XWords4/res/values/common_rsrc.xml @@ -39,6 +39,7 @@ key_connect_frequency key_notify_sound key_notify_vibrate + key_hide_intro 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 f06383eeb..822e43a50 100644 --- a/xwords4/android/XWords4/res/values/strings.xml +++ b/xwords4/android/XWords4/res/values/strings.xml @@ -221,6 +221,9 @@ Hide titlebar Hiding the game name lets the board be slightly larger + Hide main-page hint + It\'s useful only when you\'re starting + out... View tiles out-of-turn Tapping on scoreboard name shows that player\'s tiles @@ -291,8 +294,8 @@ Empty cell/background Crosshairs color - Advanced - You may never need these... + For debugging + You should never need these... Relay address Dictionary download URL Enable logging @@ -399,7 +402,7 @@ Hourly Every six hours Once every day - Never connect + Never check Play sound Vibrate @@ -533,7 +536,7 @@ Use one of the buttons below to create a game. Then tap the game to play or long-tap it for other options. - This hint will disappear - whenever there are more than two games in the list. + You can hide this in the + Appearance section of Settings (via the menu key). diff --git a/xwords4/android/XWords4/res/xml/xwprefs.xml b/xwords4/android/XWords4/res/xml/xwprefs.xml index 3e7424d1a..877f2c692 100644 --- a/xwords4/android/XWords4/res/xml/xwprefs.xml +++ b/xwords4/android/XWords4/res/xml/xwprefs.xml @@ -54,16 +54,21 @@ - + 2 ? View.GONE : View.VISIBLE; - View hint = findViewById( R.id.empty_games_list ); - hint.setVisibility( hereOrGone ); - - super.onContentChanged(); - } - // DispatchNotify.HandleRelaysIface interface public void HandleRelaysIDs( final String[] relayIDs ) { diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/jni/CommonPrefs.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/jni/CommonPrefs.java index 484e2eb4f..a19a3fd64 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/jni/CommonPrefs.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/jni/CommonPrefs.java @@ -254,6 +254,11 @@ public class CommonPrefs { return getPrefsBoolean( context, R.string.key_notify_vibrate, false ); } + public static boolean getHideIntro( Context context ) + { + return getPrefsBoolean( context, R.string.key_hide_intro, false ); + } + public static boolean getPrefsBoolean( Context context, int keyID, boolean defaultValue ) {