mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-09 05:24:44 +01:00
Merge branch 'android_branch' into android_translate
# Please enter a commit message to explain why this merge is necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit.
This commit is contained in:
commit
8327fa71a1
9 changed files with 180 additions and 184 deletions
|
@ -1974,9 +1974,9 @@
|
|||
\"Import contact\" button to add people you want to invite, the +
|
||||
button to enter numbers directly.</string>
|
||||
<!-- -->
|
||||
<string name="empty_relay_inviter">This list of devies is
|
||||
<string name="empty_relay_inviter">This list of devices is
|
||||
empty. Use the \"Scan games\" button to scan your old games
|
||||
for opponents. Use the + button to enter device IDs directly.</string>
|
||||
for opponents. Use the \"+\" button to enter device IDs directly.</string>
|
||||
<!-- -->
|
||||
<string name="get_sms_number">Enter phone number:</string>
|
||||
<string name="get_relay_number">Enter device ID:</string>
|
||||
|
|
|
@ -1707,9 +1707,9 @@
|
|||
\"Tropmi tcatnoc\" nottub ot dda elpoep uoy tnaw ot ,etivni eht +
|
||||
nottub ot retne srebmun yltcerid.</string>
|
||||
<!-- -->
|
||||
<string name="empty_relay_inviter">Siht tsil fo seived si
|
||||
<string name="empty_relay_inviter">Siht tsil fo secived si
|
||||
ytpme. Esu eht \"Nacs semag\" nottub ot nacs ruoy dlo semag
|
||||
rof stnenoppo. Esu eht + nottub ot retne ecived SDi yltcerid.</string>
|
||||
rof stnenoppo. Esu eht \"+\" nottub ot retne ecived SDi yltcerid.</string>
|
||||
<!-- -->
|
||||
<string name="get_sms_number">Retne enohp rebmun:</string>
|
||||
<string name="get_relay_number">Retne ecived DI:</string>
|
||||
|
|
|
@ -1707,9 +1707,9 @@
|
|||
\"IMPORT CONTACT\" BUTTON TO ADD PEOPLE YOU WANT TO INVITE, THE +
|
||||
BUTTON TO ENTER NUMBERS DIRECTLY.</string>
|
||||
<!-- -->
|
||||
<string name="empty_relay_inviter">THIS LIST OF DEVIES IS
|
||||
<string name="empty_relay_inviter">THIS LIST OF DEVICES IS
|
||||
EMPTY. USE THE \"SCAN GAMES\" BUTTON TO SCAN YOUR OLD GAMES
|
||||
FOR OPPONENTS. USE THE + BUTTON TO ENTER DEVICE IDS DIRECTLY.</string>
|
||||
FOR OPPONENTS. USE THE \"+\" BUTTON TO ENTER DEVICE IDS DIRECTLY.</string>
|
||||
<!-- -->
|
||||
<string name="get_sms_number">ENTER PHONE NUMBER:</string>
|
||||
<string name="get_relay_number">ENTER DEVICE ID:</string>
|
||||
|
|
|
@ -64,8 +64,10 @@ public class BTInviteDelegate extends InviteDelegate {
|
|||
intent.putExtra( INTENT_KEY_NMISSING, nMissing );
|
||||
if ( null != info ) {
|
||||
String lastDev = info.getLastDev( InviteMeans.BLUETOOTH );
|
||||
if ( null != lastDev ) {
|
||||
intent.putExtra( INTENT_KEY_LASTDEV, lastDev );
|
||||
}
|
||||
}
|
||||
activity.startActivityForResult( intent, requestCode.ordinal() );
|
||||
}
|
||||
|
||||
|
|
|
@ -472,7 +472,6 @@ public class DBUtils {
|
|||
// care only that it's non-0.
|
||||
public int getMinPlayerCount() {
|
||||
if ( -1 == m_cachedCount ) {
|
||||
DbgUtils.logf( "getMinPlayerCount(%H)", this );
|
||||
int count = m_timestamps.size();
|
||||
Map<InviteMeans, Set<String>> hashes
|
||||
= new HashMap<InviteMeans, Set<String>>();
|
||||
|
@ -481,7 +480,6 @@ public class DBUtils {
|
|||
InviteMeans means = m_means.get(ii);
|
||||
Set<String> devs;
|
||||
if ( ! hashes.containsKey( means ) ) {
|
||||
DbgUtils.logf( "creating new hash for means %s", means.toString() );
|
||||
devs = new HashSet<String>();
|
||||
hashes.put( means, devs );
|
||||
}
|
||||
|
@ -491,7 +489,6 @@ public class DBUtils {
|
|||
target = String.format( "%d", ++fakeCount );
|
||||
}
|
||||
devs.add( target );
|
||||
DbgUtils.logf( "added target %s for means %s", target, means.toString() );
|
||||
}
|
||||
|
||||
// Now find the max
|
||||
|
@ -500,12 +497,9 @@ public class DBUtils {
|
|||
if ( hashes.containsKey( means ) ) {
|
||||
int siz = hashes.get( means ).size();
|
||||
m_cachedCount += siz;
|
||||
DbgUtils.logf( "counting: means %s has unique count of %d",
|
||||
means.toString(), siz );
|
||||
}
|
||||
}
|
||||
}
|
||||
DbgUtils.logf( "getMinPlayerCount(%H) => %d", this, m_cachedCount );
|
||||
return m_cachedCount;
|
||||
}
|
||||
|
||||
|
@ -2244,7 +2238,7 @@ public class DBUtils {
|
|||
|
||||
public static void setIntFor( Context context, String key, int value )
|
||||
{
|
||||
DbgUtils.logdf( "DBUtils.setIntFor(key=%s, val=%d)", key, value );
|
||||
// DbgUtils.logdf( "DBUtils.setIntFor(key=%s, val=%d)", key, value );
|
||||
String asStr = String.format( "%d", value );
|
||||
setStringFor( context, key, asStr );
|
||||
}
|
||||
|
@ -2255,7 +2249,7 @@ public class DBUtils {
|
|||
if ( null != asStr ) {
|
||||
dflt = Integer.parseInt( asStr );
|
||||
}
|
||||
DbgUtils.logdf( "DBUtils.getIntFor(key=%s)=>%d", key, dflt );
|
||||
// DbgUtils.logdf( "DBUtils.getIntFor(key=%s)=>%d", key, dflt );
|
||||
return dflt;
|
||||
}
|
||||
|
||||
|
@ -2272,7 +2266,7 @@ public class DBUtils {
|
|||
if ( null != asStr ) {
|
||||
dflt = Boolean.parseBoolean( asStr );
|
||||
}
|
||||
DbgUtils.logdf( "DBUtils.getBoolFor(key=%s)=>%b", key, dflt );
|
||||
// DbgUtils.logdf( "DBUtils.getBoolFor(key=%s)=>%b", key, dflt );
|
||||
return dflt;
|
||||
}
|
||||
|
||||
|
@ -2288,7 +2282,7 @@ public class DBUtils {
|
|||
};
|
||||
String newVal = getModStringFor( context, key, proc );
|
||||
int asInt = Integer.parseInt( newVal );
|
||||
DbgUtils.logf( "getIncrementIntFor(%s) => %d", key, asInt );
|
||||
// DbgUtils.logf( "getIncrementIntFor(%s) => %d", key, asInt );
|
||||
return asInt;
|
||||
}
|
||||
|
||||
|
|
|
@ -462,7 +462,7 @@ public class GameUtils {
|
|||
public static long makeNewMultiGame( Context context, NetLaunchInfo nli,
|
||||
MultiMsgSink sink, UtilCtxt util )
|
||||
{
|
||||
DbgUtils.logf( "makeNewMultiGame(nli=%s)", nli.toString() );
|
||||
DbgUtils.logdf( "makeNewMultiGame(nli=%s)", nli.toString() );
|
||||
CommsAddrRec addr = nli.makeAddrRec( context );
|
||||
|
||||
return makeNewMultiGame( context, sink, util, DBUtils.GROUPID_UNSPEC,
|
||||
|
|
|
@ -58,7 +58,7 @@ public class XWService extends Service {
|
|||
if ( null != s_srcMgr ) {
|
||||
s_srcMgr.sendResult( event, args );
|
||||
} else {
|
||||
DbgUtils.logf( "XWService.sendResult: dropping %s event", event.toString() );
|
||||
DbgUtils.logdf( "XWService.sendResult: dropping %s event", event.toString() );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -74,7 +74,7 @@ public class XWService extends Service {
|
|||
s_seen.add( inviteID );
|
||||
}
|
||||
}
|
||||
DbgUtils.logf( "XWService.checkNotDupe(%s) => %b", inviteID, !isDupe );
|
||||
DbgUtils.logdf( "XWService.checkNotDupe(%s) => %b", inviteID, !isDupe );
|
||||
return !isDupe;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue