From 3a53abce52170b2a784881ea9c8f1c57b0252b01 Mon Sep 17 00:00:00 2001 From: Eric House Date: Fri, 16 Dec 2016 20:57:30 -0800 Subject: [PATCH] add params option to showOKOnlyDialogThen --- .../XWords4/src/org/eehouse/android/xw4/DlgDelegate.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 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 20ee66d51..f3603b5fd 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/DlgDelegate.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/DlgDelegate.java @@ -197,7 +197,7 @@ public class DlgDelegate { @Override public void show() { - showOKOnlyDialogThen( m_msgString, m_action ); + showOKOnlyDialogThen( m_msgString, m_action, m_params ); } } @@ -408,10 +408,13 @@ public class DlgDelegate { } } - private void showOKOnlyDialogThen( String msg, Action action ) + private void showOKOnlyDialogThen( String msg, Action action, + Object[] params ) { // Assert.assertNull( m_dlgStates ); - DlgState state = new DlgState( DlgID.DIALOG_OKONLY ).setMsg( msg ) + DlgState state = new DlgState( DlgID.DIALOG_OKONLY ) + .setMsg( msg ) + .setParams( params ) .setAction(action); addState( state ); showDialog( DlgID.DIALOG_OKONLY );