mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-13 08:01:33 +01:00
add missing Overrides (for run() only)
This commit is contained in:
parent
573a542b70
commit
6a50596d7d
11 changed files with 14 additions and 0 deletions
|
@ -66,6 +66,7 @@ public class BiDiSockWrap {
|
|||
{
|
||||
mActive = true;
|
||||
new Thread( new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
long waitMillis = 1000;
|
||||
while ( mActive ) {
|
||||
|
|
|
@ -638,6 +638,7 @@ public class BoardCanvas extends Canvas implements DrawCtx {
|
|||
// after m_dict is set above.
|
||||
if ( doPost ) {
|
||||
m_activity.runOnUiThread( new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
updateDictChars();
|
||||
}
|
||||
|
|
|
@ -83,6 +83,7 @@ public class BoardView extends View implements BoardHandler, SyncedDraw {
|
|||
m_defaultFontHt = (int)(MIN_FONT_DIPS * scale + 0.5f);
|
||||
m_mediumFontHt = m_defaultFontHt * 3 / 2;
|
||||
m_invalidator = new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
invalidate();
|
||||
}
|
||||
|
@ -352,6 +353,7 @@ public class BoardView extends View implements BoardHandler, SyncedDraw {
|
|||
{
|
||||
m_dims = dims;
|
||||
m_parent.runOnUiThread( new Runnable() {
|
||||
@Override
|
||||
public void run()
|
||||
{
|
||||
requestLayout();
|
||||
|
|
|
@ -566,6 +566,7 @@ public class ConnStatusHandler {
|
|||
Handler handler = cbcks.getHandler();
|
||||
if ( null != handler ) {
|
||||
Runnable proc = new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
doSave( context );
|
||||
}
|
||||
|
@ -591,6 +592,7 @@ public class ConnStatusHandler {
|
|||
s_showSuccesses[index] = true;
|
||||
|
||||
Runnable proc = new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
synchronized( ConnStatusHandler.class ) {
|
||||
s_showSuccesses[index] = false;
|
||||
|
|
|
@ -346,6 +346,7 @@ public class DictLangCache {
|
|||
|
||||
if ( null != s_handler ) {
|
||||
s_handler.post( new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
if ( null != s_dictsAdapter ) {
|
||||
rebuildAdapter( s_dictsAdapter,
|
||||
|
|
|
@ -1376,6 +1376,7 @@ public class DictsDelegate extends ListDelegateBase
|
|||
if ( !isCancelled() ) {
|
||||
if ( null != json ) {
|
||||
post( new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
setProgressMsg( R.string.remote_digesting );
|
||||
}
|
||||
|
|
|
@ -492,6 +492,7 @@ public class DlgDelegate {
|
|||
final String fmsg = msg;
|
||||
final boolean asDlg = !asToast;
|
||||
post( new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
if ( asDlg ) {
|
||||
makeOkOnlyBuilder( fmsg ).show();
|
||||
|
|
|
@ -173,6 +173,7 @@ public class DwnldDelegate extends ListDelegateBase {
|
|||
URLConnection conn = jUri.toURL().openConnection();
|
||||
final int fileLen = conn.getContentLength();
|
||||
post( new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
m_progressBar.setMax( fileLen );
|
||||
}
|
||||
|
@ -239,6 +240,7 @@ public class DwnldDelegate extends ListDelegateBase {
|
|||
{
|
||||
m_totalRead += nBytes;
|
||||
post( new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
m_progressBar.setProgress( m_totalRead );
|
||||
}
|
||||
|
|
|
@ -71,6 +71,7 @@ public class ExpiringDelegate {
|
|||
= new ArrayList<WeakReference<ExpiringDelegate>>();
|
||||
private Set<Integer> m_hashes = new HashSet<>();
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
int sizeBefore;
|
||||
ArrayList<ExpiringDelegate> dlgts = new ArrayList<>();
|
||||
|
|
|
@ -1241,6 +1241,7 @@ public class GamesListDelegate extends ListDelegateBase
|
|||
final GameChangeType change )
|
||||
{
|
||||
post( new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
switch( change ) {
|
||||
case GAME_DELETED:
|
||||
|
|
|
@ -986,6 +986,7 @@ public class WiDirService extends XWService {
|
|||
{
|
||||
sAmServer = true;
|
||||
sAcceptThread = new Thread( new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
Log.d( TAG, "accept thread starting" );
|
||||
boolean done = false;
|
||||
|
|
Loading…
Reference in a new issue