mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-07 05:24:46 +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
|
||||
&& action == Action.ENABLE_SMS_DO ) {
|
||||
boolean enabled = (Boolean)params[0];
|
||||
if ( enabled ) {
|
||||
XWPrefs.setSMSEnabled( m_activity, true );
|
||||
SMSCheckBoxPreference.setChecked();
|
||||
}
|
||||
XWPrefs.setSMSEnabled( m_activity, true );
|
||||
SMSCheckBoxPreference.setChecked();
|
||||
} else {
|
||||
super.dlgButtonClicked( action, button, params );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue