mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-22 07:28:16 +01:00
disable local-game reminders by default
This commit is contained in:
parent
2f579832b4
commit
6f1235492d
2 changed files with 5 additions and 4 deletions
|
@ -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>
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue