mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-30 10:26:58 +01:00
make the jni thread a daemon per recommendation from google dev suppt.
This commit is contained in:
parent
f21ddedc59
commit
b085540ee3
1 changed files with 9 additions and 4 deletions
|
@ -795,10 +795,12 @@ public class BoardActivity extends XWActivity
|
|||
// Need to keep this from running after activity dies!!
|
||||
public void run() {
|
||||
if ( m_isVisible ) {
|
||||
String title = getString( R.string.progress_title );
|
||||
m_progress = ProgressDialog.show( BoardActivity.this,
|
||||
title, null, true,
|
||||
true );
|
||||
String title =
|
||||
getString( R.string.progress_title );
|
||||
m_progress =
|
||||
ProgressDialog.show( BoardActivity.this,
|
||||
title, null, true,
|
||||
true );
|
||||
}
|
||||
}
|
||||
} );
|
||||
|
@ -1103,6 +1105,9 @@ public class BoardActivity extends XWActivity
|
|||
}
|
||||
}
|
||||
} );
|
||||
// see http://stackoverflow.com/questions/680180/where-to-stop-\
|
||||
// destroy-threads-in-android-service-class
|
||||
m_jniThread.setDaemon( true );
|
||||
m_jniThread.start();
|
||||
|
||||
m_view.startHandling( this, m_jniThread, m_jniGamePtr, m_gi );
|
||||
|
|
Loading…
Reference in a new issue