mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-01 06:19:57 +01:00
Actually reenable mqtt play when user says to
This commit is contained in:
parent
7f401ce809
commit
a04c33fe89
3 changed files with 7 additions and 0 deletions
|
@ -1001,6 +1001,7 @@ public class BoardDelegate extends DelegateBase
|
|||
JNICmd cmd = null;
|
||||
switch ( action ) {
|
||||
case ENABLE_MQTT_DO_OR:
|
||||
XWPrefs.setMQTTEnabled( m_activity, true );
|
||||
MQTTUtils.setEnabled( m_activity, true );
|
||||
break;
|
||||
case UNDO_LAST_ACTION:
|
||||
|
|
|
@ -794,6 +794,7 @@ public abstract class DelegateBase implements DlgClickNotify,
|
|||
BTUtils.enable( m_activity );
|
||||
break;
|
||||
case ENABLE_MQTT_DO:
|
||||
XWPrefs.setMQTTEnabled( m_activity, true );
|
||||
MQTTUtils.setEnabled( m_activity, true );
|
||||
break;
|
||||
case PERMS_QUERY:
|
||||
|
|
|
@ -106,6 +106,11 @@ public class XWPrefs {
|
|||
return enabled;
|
||||
}
|
||||
|
||||
public static void setMQTTEnabled( Context context, boolean enabled )
|
||||
{
|
||||
setPrefsBoolean( context, R.string.key_disable_mqtt, !enabled );
|
||||
}
|
||||
|
||||
public static boolean getBTDisabled( Context context )
|
||||
{
|
||||
boolean disabled = getPrefsBoolean( context, R.string.key_disable_bt,
|
||||
|
|
Loading…
Reference in a new issue