implement stubbed-out util_phoneNumbersSame so that three-device SMS

games work in emulator.  May need to call into java to use Android's
more sophisticated phone number comparison to work on devices.
This commit is contained in:
Eric House 2012-05-18 07:17:21 -07:00
parent 60c3a5bf64
commit 867e9ffc2f

View file

@ -460,8 +460,13 @@ static XP_Bool
and_util_phoneNumbersSame( XW_UtilCtxt* uc, const XP_UCHAR* p1,
const XP_UCHAR* p2 )
{
XP_LOGF( "%s(%s,%s)", __func__, p1, p2 );
return XP_TRUE;
XP_Bool same = 0 == strcmp( p1, p2 );
if ( !same ) {
/* If they're same, fine, but if not probably need to call into
platform code for a closer look */
XP_LOGF( "%s(%s,%s)=>%d", __func__, p1, p2, same );
}
return same;
}
#endif