From e9608a867eb3d8a44ab52899f6d27f4e09706f21 Mon Sep 17 00:00:00 2001 From: Eric House Date: Sun, 22 Jun 2014 10:40:20 -0700 Subject: [PATCH] use existing wrapper method rather than calling on activity --- .../src/org/eehouse/android/xw4/DlgDelegate.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DlgDelegate.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DlgDelegate.java index 72334d2fe..554d44976 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DlgDelegate.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DlgDelegate.java @@ -208,7 +208,7 @@ public class DlgDelegate { // Assert.assertNull( m_dlgStates ); DlgState state = new DlgState( DlgID.DIALOG_OKONLY, msg, action ); addState( state ); - m_activity.showDialog( DlgID.DIALOG_OKONLY.ordinal() ); + showDialog( DlgID.DIALOG_OKONLY ); } public void showOKOnlyDialog( int msgID ) @@ -218,12 +218,12 @@ public class DlgDelegate { public void showDictGoneFinish() { - m_activity.showDialog( DlgID.DLG_DICTGONE.ordinal() ); + showDialog( DlgID.DLG_DICTGONE ); } public void showAboutDialog() { - m_activity.showDialog( DlgID.DIALOG_ABOUT.ordinal() ); + showDialog( DlgID.DIALOG_ABOUT ); } public void showNotAgainDlgThen( int msgID, int prefsKey, @@ -256,7 +256,7 @@ public class DlgDelegate { new DlgState( DlgID.DIALOG_NOTAGAIN, msg, action, prefsKey, params ); addState( state ); - m_activity.showDialog( DlgID.DIALOG_NOTAGAIN.ordinal() ); + showDialog( DlgID.DIALOG_NOTAGAIN ); } } @@ -305,7 +305,7 @@ public class DlgDelegate { DlgState state = new DlgState( DlgID.CONFIRM_THEN, msg, posButton, action, 0, params ); addState( state ); - m_activity.showDialog( DlgID.CONFIRM_THEN.ordinal() ); + showDialog( DlgID.CONFIRM_THEN ); } public void showInviteChoicesThen( final Action action ) @@ -314,7 +314,7 @@ public class DlgDelegate { || NFCUtils.nfcAvail( m_activity )[0] ) { DlgState state = new DlgState( DlgID.INVITE_CHOICES_THEN, action ); addState( state ); - m_activity.showDialog( DlgID.INVITE_CHOICES_THEN.ordinal() ); + showDialog( DlgID.INVITE_CHOICES_THEN ); } else { post( new Runnable() { public void run() { @@ -339,7 +339,7 @@ public class DlgDelegate { { Bundle params = LookupAlert.makeParams( words, lang, noStudyOption ); addState( new DlgState( DlgID.LOOKUP, new Object[]{params} ) ); - m_activity.showDialog( DlgID.LOOKUP.ordinal() ); + showDialog( DlgID.LOOKUP ); } public void startProgress( int id )