mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
Fix crash on 2.2 emulator by turning of ipv6 on emulator. per
workarounds found online. Suggested fix is to use io instead of nio.
This commit is contained in:
parent
d1fcdb69da
commit
c630697c59
1 changed files with 8 additions and 1 deletions
|
@ -34,6 +34,7 @@ import android.telephony.SmsManager;
|
|||
import android.content.Intent;
|
||||
import android.app.PendingIntent;
|
||||
import android.content.Context;
|
||||
import android.os.Build;
|
||||
import android.os.Handler;
|
||||
import android.os.Message;
|
||||
|
||||
|
@ -117,7 +118,11 @@ public class CommsTransport extends Thread implements TransportProcs {
|
|||
@Override
|
||||
public void run()
|
||||
{
|
||||
try {
|
||||
try {
|
||||
if ( Build.PRODUCT.contains("sdk") ) {
|
||||
System.setProperty("java.net.preferIPv6Addresses", "false");
|
||||
}
|
||||
|
||||
m_selector = Selector.open();
|
||||
|
||||
loop();
|
||||
|
@ -354,6 +359,8 @@ public class CommsTransport extends Thread implements TransportProcs {
|
|||
// }
|
||||
break;
|
||||
case COMMS_CONN_BT:
|
||||
default:
|
||||
Assert.fail();
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue