mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +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,8 +795,10 @@ public class BoardActivity extends XWActivity
|
||||||
// Need to keep this from running after activity dies!!
|
// Need to keep this from running after activity dies!!
|
||||||
public void run() {
|
public void run() {
|
||||||
if ( m_isVisible ) {
|
if ( m_isVisible ) {
|
||||||
String title = getString( R.string.progress_title );
|
String title =
|
||||||
m_progress = ProgressDialog.show( BoardActivity.this,
|
getString( R.string.progress_title );
|
||||||
|
m_progress =
|
||||||
|
ProgressDialog.show( BoardActivity.this,
|
||||||
title, null, true,
|
title, null, true,
|
||||||
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_jniThread.start();
|
||||||
|
|
||||||
m_view.startHandling( this, m_jniThread, m_jniGamePtr, m_gi );
|
m_view.startHandling( this, m_jniThread, m_jniGamePtr, m_gi );
|
||||||
|
|
Loading…
Reference in a new issue