add flag that Romanian's understood

This commit is contained in:
Eric House 2021-11-28 11:03:01 -08:00
parent de739586c3
commit b6c9e11f87
2 changed files with 10 additions and 1 deletions

View file

@ -115,6 +115,7 @@ android {
buildConfigField "boolean", "FOR_FDROID", "false"
buildConfigField "boolean", "HAVE_PASSWORD", "false"
buildConfigField "boolean", "NO_NEW_RELAY", "true"
buildConfigField "String", "DICT_FLAGS", "null"
}
xw4GPlay {
@ -167,6 +168,7 @@ android {
resValue "string", "nfc_aid", "$NFC_AID_XW4d"
externalNativeBuild.ndkBuild.cFlags += ['-DVARIANT_xw4d']
externalNativeBuild.ndkBuild.arguments += ['XW_BT_UUID=' + XWD_UUID]
buildConfigField "String", "DICT_FLAGS", "\"roOK\""
}
xw4dGPlay {

View file

@ -1257,6 +1257,9 @@ public class DictsDelegate extends ListDelegateBase
// parse less data
String name = null;
String proc = String.format( "listDicts?lc=%s", m_lc );
if ( null != BuildConfig.DICT_FLAGS ) {
proc += "&flags=" + BuildConfig.DICT_FLAGS;
}
HttpsURLConnection conn = NetUtils.makeHttpsUpdateConn( m_context,
proc );
if ( null != conn ) {
@ -1343,8 +1346,12 @@ public class DictsDelegate extends ListDelegateBase
public Boolean doInBackground( Void... unused )
{
boolean success = false;
String proc = "listDicts";
if ( null != BuildConfig.DICT_FLAGS ) {
proc += "?flags=" + BuildConfig.DICT_FLAGS;
}
HttpsURLConnection conn = NetUtils.makeHttpsUpdateConn( m_context,
"listDicts" );
proc );
if ( null != conn ) {
String json = NetUtils.runConn( conn, new JSONObject() );
if ( !isCancelled() ) {