add missing Overrides (for run() only)

This commit is contained in:
Eric House 2024-02-05 20:27:30 -08:00
parent 573a542b70
commit 6a50596d7d
11 changed files with 14 additions and 0 deletions

View file

@ -66,6 +66,7 @@ public class BiDiSockWrap {
{
mActive = true;
new Thread( new Runnable() {
@Override
public void run() {
long waitMillis = 1000;
while ( mActive ) {

View file

@ -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();
}

View file

@ -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();

View file

@ -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;

View file

@ -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,

View file

@ -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 );
}

View file

@ -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();

View file

@ -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 );
}

View file

@ -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<>();

View file

@ -1241,6 +1241,7 @@ public class GamesListDelegate extends ListDelegateBase
final GameChangeType change )
{
post( new Runnable() {
@Override
public void run() {
switch( change ) {
case GAME_DELETED:

View file

@ -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;