debug features on by default on DEBUG builds

This commit is contained in:
Eric House 2020-08-15 12:03:41 -07:00
parent 67be4d2249
commit 6567f6ffcf
2 changed files with 4 additions and 3 deletions

View file

@ -53,7 +53,8 @@ public class XWPrefs {
public static boolean getDebugEnabled( Context context )
{
return getPrefsBoolean( context, R.string.key_enable_debug, false );
return getPrefsBoolean( context, R.string.key_enable_debug,
BuildConfig.DEBUG );
}
public static boolean getSecondInviteAllowed( Context context )

View file

@ -379,12 +379,12 @@
<CheckBoxPreference android:key="@string/key_logging_on"
android:title="@string/logging_on"
android:defaultValue="false"
android:defaultValue="@bool/DEBUG"
/>
<CheckBoxPreference android:key="@string/key_enable_debug"
android:title="@string/debug_features"
android:summary="@string/debug_features_summary"
android:defaultValue="false"
android:defaultValue="@bool/DEBUG"
/>
<org.eehouse.android.xw4.XWEditTextPreference