mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-06 20:45:54 +01:00
cleanup
This commit is contained in:
parent
c426741fa1
commit
e2cd275459
5 changed files with 2 additions and 15 deletions
|
@ -2001,7 +2001,7 @@ public class BoardActivity extends XWActivity
|
|||
if ( post( new Runnable() {
|
||||
public void run() {
|
||||
m_blockingDlgID = dlgID;
|
||||
showDialog( dlgID );
|
||||
showDialog( dlgID.ordinal() );
|
||||
}
|
||||
} ) ) {
|
||||
|
||||
|
@ -2044,7 +2044,7 @@ public class BoardActivity extends XWActivity
|
|||
m_dlgBytes = txt;
|
||||
post( new Runnable() {
|
||||
public void run() {
|
||||
showDialog( dlgID );
|
||||
showDialog( dlgID.ordinal() );
|
||||
}
|
||||
} );
|
||||
}
|
||||
|
|
|
@ -108,10 +108,6 @@ public class DlgDelegate {
|
|||
public interface DlgClickNotify {
|
||||
void dlgButtonClicked( Action action, int button, Object[] params );
|
||||
}
|
||||
public interface DlgClickRegisterer {
|
||||
void registerClickNotify( DlgClickNotify cb );
|
||||
void unregisterClickNotify( DlgClickNotify cb );
|
||||
}
|
||||
public interface HasDlgDelegate {
|
||||
void showOKOnlyDialog( int msgID );
|
||||
void showOKOnlyDialog( String msg );
|
||||
|
|
|
@ -212,14 +212,12 @@ public class StudyList extends XWListActivity
|
|||
public void itemClicked( SelectableItem.LongClickHandler clicked,
|
||||
GameSummary summary )
|
||||
{
|
||||
Assert.assertTrue( clicked instanceof XWListItem );
|
||||
m_checkeds.add( ((XWListItem)clicked).getPosition() );
|
||||
}
|
||||
|
||||
public void itemToggled( SelectableItem.LongClickHandler toggled,
|
||||
boolean selected )
|
||||
{
|
||||
Assert.assertTrue( toggled instanceof XWListItem );
|
||||
int position = ((XWListItem)toggled).getPosition();
|
||||
if ( selected ) {
|
||||
m_checkeds.add( position );
|
||||
|
@ -231,7 +229,6 @@ public class StudyList extends XWListActivity
|
|||
|
||||
public boolean getSelected( SelectableItem.LongClickHandler obj )
|
||||
{
|
||||
Assert.assertTrue( obj instanceof XWListItem );
|
||||
return m_checkeds.contains( ((XWListItem)obj).getPosition() );
|
||||
}
|
||||
|
||||
|
|
|
@ -102,11 +102,6 @@ public class XWActivity extends Activity
|
|||
return dialog;
|
||||
}
|
||||
|
||||
public void showDialog( DlgID dlgID )
|
||||
{
|
||||
super.showDialog( dlgID.ordinal() );
|
||||
}
|
||||
|
||||
// these are duplicated in XWListActivity -- sometimes multiple
|
||||
// inheritance would be nice to have...
|
||||
protected void showAboutDialog()
|
||||
|
|
|
@ -57,7 +57,6 @@ public class XWListItem extends LinearLayout
|
|||
{
|
||||
super.onFinishInflate();
|
||||
m_checkbox = (CheckBox)findViewById( R.id.checkbox );
|
||||
Assert.assertNotNull( m_checkbox );
|
||||
m_checkbox.setOnClickListener( this );
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue