disable local-game reminders by default

This commit is contained in:
Eric House 2015-10-29 07:31:21 -07:00
parent 2f579832b4
commit 6f1235492d
2 changed files with 5 additions and 4 deletions

View file

@ -243,7 +243,7 @@
<CheckBoxPreference android:key="@string/key_disable_nag_solo"
android:title="@string/disable_nag_solo_title"
android:summary="@string/disable_nag_summary"
android:defaultValue="false"
android:defaultValue="true"
/>
</PreferenceScreen>

View file

@ -205,7 +205,8 @@ public class NagTurnReceiver extends BroadcastReceiver {
for ( int[] datum : s_fmtData ) {
long val = seconds / datum[0];
if ( 1 <= val ) {
results.add( LocUtils.getQuantityString( context, datum[1], (int)val, val ) );
results.add( LocUtils.getQuantityString( context, datum[1],
(int)val, val ) );
seconds %= datum[0];
}
}
@ -223,8 +224,8 @@ public class NagTurnReceiver extends BroadcastReceiver {
}
if ( null == s_nagsDisabledSolo ) {
boolean nagsDisabled =
XWPrefs.getPrefsBoolean( context, R.string.key_disable_nag_solo,
s_nagsDisabledNet );
XWPrefs.getPrefsBoolean( context, R.string.key_disable_nag_solo,
true );
s_nagsDisabledSolo = new Boolean( nagsDisabled );
}
return s_nagsDisabledNet && s_nagsDisabledSolo;