mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-07 05:24:46 +01:00
add flag that Romanian's understood
This commit is contained in:
parent
de739586c3
commit
b6c9e11f87
2 changed files with 10 additions and 1 deletions
|
@ -115,6 +115,7 @@ android {
|
||||||
buildConfigField "boolean", "FOR_FDROID", "false"
|
buildConfigField "boolean", "FOR_FDROID", "false"
|
||||||
buildConfigField "boolean", "HAVE_PASSWORD", "false"
|
buildConfigField "boolean", "HAVE_PASSWORD", "false"
|
||||||
buildConfigField "boolean", "NO_NEW_RELAY", "true"
|
buildConfigField "boolean", "NO_NEW_RELAY", "true"
|
||||||
|
buildConfigField "String", "DICT_FLAGS", "null"
|
||||||
}
|
}
|
||||||
|
|
||||||
xw4GPlay {
|
xw4GPlay {
|
||||||
|
@ -167,6 +168,7 @@ android {
|
||||||
resValue "string", "nfc_aid", "$NFC_AID_XW4d"
|
resValue "string", "nfc_aid", "$NFC_AID_XW4d"
|
||||||
externalNativeBuild.ndkBuild.cFlags += ['-DVARIANT_xw4d']
|
externalNativeBuild.ndkBuild.cFlags += ['-DVARIANT_xw4d']
|
||||||
externalNativeBuild.ndkBuild.arguments += ['XW_BT_UUID=' + XWD_UUID]
|
externalNativeBuild.ndkBuild.arguments += ['XW_BT_UUID=' + XWD_UUID]
|
||||||
|
buildConfigField "String", "DICT_FLAGS", "\"roOK\""
|
||||||
}
|
}
|
||||||
|
|
||||||
xw4dGPlay {
|
xw4dGPlay {
|
||||||
|
|
|
@ -1257,6 +1257,9 @@ public class DictsDelegate extends ListDelegateBase
|
||||||
// parse less data
|
// parse less data
|
||||||
String name = null;
|
String name = null;
|
||||||
String proc = String.format( "listDicts?lc=%s", m_lc );
|
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,
|
HttpsURLConnection conn = NetUtils.makeHttpsUpdateConn( m_context,
|
||||||
proc );
|
proc );
|
||||||
if ( null != conn ) {
|
if ( null != conn ) {
|
||||||
|
@ -1343,8 +1346,12 @@ public class DictsDelegate extends ListDelegateBase
|
||||||
public Boolean doInBackground( Void... unused )
|
public Boolean doInBackground( Void... unused )
|
||||||
{
|
{
|
||||||
boolean success = false;
|
boolean success = false;
|
||||||
|
String proc = "listDicts";
|
||||||
|
if ( null != BuildConfig.DICT_FLAGS ) {
|
||||||
|
proc += "?flags=" + BuildConfig.DICT_FLAGS;
|
||||||
|
}
|
||||||
HttpsURLConnection conn = NetUtils.makeHttpsUpdateConn( m_context,
|
HttpsURLConnection conn = NetUtils.makeHttpsUpdateConn( m_context,
|
||||||
"listDicts" );
|
proc );
|
||||||
if ( null != conn ) {
|
if ( null != conn ) {
|
||||||
String json = NetUtils.runConn( conn, new JSONObject() );
|
String json = NetUtils.runConn( conn, new JSONObject() );
|
||||||
if ( !isCancelled() ) {
|
if ( !isCancelled() ) {
|
||||||
|
|
Loading…
Reference in a new issue