This commit is contained in:
Eric House 2014-03-22 10:14:27 -07:00
parent c426741fa1
commit e2cd275459
5 changed files with 2 additions and 15 deletions

View file

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

View file

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

View file

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

View file

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

View file

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