rename onCreateDialog createDialog where it's not an overridden method

This commit is contained in:
Eric House 2014-03-25 06:16:46 -07:00
parent cae30c61e8
commit e0c0ff219f
6 changed files with 11 additions and 11 deletions

View file

@ -36,9 +36,9 @@ public class DelegateBase implements DlgDelegate.DlgClickNotify {
m_delegate = new DlgDelegate( activity, this, bundle );
}
protected Dialog onCreateDialog( int id )
protected Dialog createDialog( int id )
{
return m_delegate.onCreateDialog( id );
return m_delegate.createDialog( id );
}
protected void showNotAgainDlgThen( int msgID, int prefsKey,

View file

@ -241,8 +241,7 @@ public class DictsDelegate extends DelegateBase
protected Dialog createDialog( int id )
{
OnClickListener lstnr, lstnr2;
Dialog dialog = null;
String format;
Dialog dialog;
String message;
boolean doRemove = true;
@ -251,8 +250,8 @@ public class DictsDelegate extends DelegateBase
case MOVE_DICT:
final XWListItem[] selItems = getSelItems();
final int[] moveTo = { -1 };
message = Utils.format( m_activity, R.string.move_dictf,
getJoinedNames( selItems ) );
message = m_activity.getString( R.string.move_dictf,
getJoinedNames( selItems ) );
OnClickListener newSelLstnr =
new OnClickListener() {
@ -347,6 +346,7 @@ public class DictsDelegate extends DelegateBase
break;
default:
dialog = super.createDialog( id );
doRemove = false;
break;
}

View file

@ -155,9 +155,9 @@ public class DlgDelegate {
outState.putIntArray( IDS, ids );
}
public Dialog onCreateDialog( int id )
public Dialog createDialog( int id )
{
// DbgUtils.logf("onCreateDialog(id=%d)", id );
// DbgUtils.logf("createDialog(id=%d)", id );
Dialog dialog = null;
DlgID dlgID = DlgID.values()[id];
DlgState state = findForID( dlgID );

View file

@ -334,7 +334,7 @@ public class GamesListDelegate extends DelegateBase
break;
default:
dialog = super.onCreateDialog( id );
dialog = super.createDialog( id );
break;
}
return dialog;

View file

@ -97,7 +97,7 @@ public class XWActivity extends Activity
Dialog dialog = super.onCreateDialog( id );
if ( null == dialog ) {
DbgUtils.logf( "%s.onCreateDialog() called", getClass().getName() );
dialog = m_delegate.onCreateDialog( id );
dialog = m_delegate.createDialog( id );
}
return dialog;
}

View file

@ -91,7 +91,7 @@ public class XWListActivity extends ListActivity
protected Dialog onCreateDialog( final int id )
{
DbgUtils.logf( "%s.onCreateDialog() called", getClass().getName() );
Dialog dialog = m_delegate.onCreateDialog( id );
Dialog dialog = m_delegate.createDialog( id );
if ( null == dialog ) {
dialog = super.onCreateDialog( id );
}