From c1c20db6ddf22c36550b25931e4fd251feaa17a5 Mon Sep 17 00:00:00 2001 From: Eric House Date: Mon, 27 Feb 2012 20:35:31 -0800 Subject: [PATCH] add static final boolean by which to turn BT support off and change so UI and background service disappear/don't run when it's off. Goal's to ship two apps that differ in this setting, a change in Android.mk, and little else. --- .../android/XWords4/res/layout/new_game.xml | 8 ++- .../org/eehouse/android/xw4/BTReceiver.java | 38 +++++----- .../org/eehouse/android/xw4/BTService.java | 9 ++- .../eehouse/android/xw4/NewGameActivity.java | 71 ++++++++++--------- .../src/org/eehouse/android/xw4/XWApp.java | 2 + 5 files changed, 72 insertions(+), 56 deletions(-) diff --git a/xwords4/android/XWords4/res/layout/new_game.xml b/xwords4/android/XWords4/res/layout/new_game.xml index d572f2ed4..da22a8fbc 100644 --- a/xwords4/android/XWords4/res/layout/new_game.xml +++ b/xwords4/android/XWords4/res/layout/new_game.xml @@ -106,17 +106,20 @@ - + android:visibility="gone" + > @@ -131,6 +134,7 @@ android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" + android:visibility="gone" >