mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-08 05:24:39 +01:00
fix NPE. Method isn't called unless positive/confirming button has
been pressed.
This commit is contained in:
parent
ab26e263ef
commit
b6f992533a
1 changed files with 2 additions and 5 deletions
|
@ -238,11 +238,8 @@ public class PrefsDelegate extends DelegateBase
|
||||||
{
|
{
|
||||||
if ( AlertDialog.BUTTON_POSITIVE == button
|
if ( AlertDialog.BUTTON_POSITIVE == button
|
||||||
&& action == Action.ENABLE_SMS_DO ) {
|
&& action == Action.ENABLE_SMS_DO ) {
|
||||||
boolean enabled = (Boolean)params[0];
|
XWPrefs.setSMSEnabled( m_activity, true );
|
||||||
if ( enabled ) {
|
SMSCheckBoxPreference.setChecked();
|
||||||
XWPrefs.setSMSEnabled( m_activity, true );
|
|
||||||
SMSCheckBoxPreference.setChecked();
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
super.dlgButtonClicked( action, button, params );
|
super.dlgButtonClicked( action, button, params );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue