change mqtt register URL

This commit is contained in:
Eric House 2020-10-22 22:33:25 -07:00
parent 9e30076966
commit e7a63c7c0b
3 changed files with 6 additions and 6 deletions

View file

@ -146,9 +146,9 @@ public class XWPrefs {
public static String getDefaultMQTTUrl( Context context )
{
String result = getPrefsString( context, R.string.key_mqtt_url );
String result = getPrefsString( context, R.string.key_mqtt_url2 );
if ( result == null || 0 == result.length() ) {
result = context.getString( R.string.default_mqtt_url );
result = context.getString( R.string.default_mqtt_url2 );
}
return result;
}

View file

@ -41,7 +41,7 @@
<string name="key_relay_via_http_first">key_relay_via_http_first</string>
<string name="key_update_url">key_update_url2</string>
<string name="key_relay_url">key_relay_url2</string>
<string name="key_mqtt_url">key_mqtt_url</string>
<string name="key_mqtt_url2">key_mqtt_url2</string>
<string name="key_mqtt_host">key_mqtt_host</string>
<string name="key_mqtt_port">key_mqtt_port</string>
<string name="key_mqtt_qos">key_mqtt_qos</string>
@ -175,7 +175,7 @@
<string name="nbs_ban_url">https://eehouse.org/sms.html</string>
<string name="default_update_url">https://eehouse.org/xw4/info.py</string>
<string name="default_relay_url">https://eehouse.org/xw4/relay.py</string>
<string name="default_mqtt_url">https://liquidsugar.net/xw4/api/v1</string>
<string name="default_mqtt_url2">https://eehouse.org/xw4/api/v1</string>
<string name="faq_uri_fmt">https://eehouse.org/xw4/faq.html#%1$s</string>

View file

@ -464,9 +464,9 @@
android:defaultValue="2"
/>
<org.eehouse.android.xw4.XWEditTextPreference
android:key="@string/key_mqtt_url"
android:key="@string/key_mqtt_url2"
android:title="@string/expl_mqtt_url"
android:defaultValue="@string/default_mqtt_url"
android:defaultValue="@string/default_mqtt_url2"
/>
</PreferenceScreen>