mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
rename onCreateDialog createDialog where it's not an overridden method
This commit is contained in:
parent
cae30c61e8
commit
e0c0ff219f
6 changed files with 11 additions and 11 deletions
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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 );
|
||||
|
|
|
@ -334,7 +334,7 @@ public class GamesListDelegate extends DelegateBase
|
|||
break;
|
||||
|
||||
default:
|
||||
dialog = super.onCreateDialog( id );
|
||||
dialog = super.createDialog( id );
|
||||
break;
|
||||
}
|
||||
return dialog;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue