override setPositiveButton and friends so ids can be translated

This commit is contained in:
Eric House 2014-04-15 07:40:27 -07:00
parent e12fbcce8e
commit 8432500541

View file

@ -22,6 +22,7 @@ package org.eehouse.android.xw4.loc;
import android.app.Activity; import android.app.Activity;
import android.app.AlertDialog; import android.app.AlertDialog;
import android.content.Context; import android.content.Context;
import android.content.DialogInterface.OnClickListener;
import android.content.Intent; import android.content.Intent;
import android.content.res.Resources; import android.content.res.Resources;
import android.util.AttributeSet; import android.util.AttributeSet;
@ -354,5 +355,29 @@ public class LocUtils {
String str = getString( m_context, id ); String str = getString( m_context, id );
return setTitle( str ); return setTitle( str );
} }
@Override
public AlertDialog.Builder setPositiveButton( int textId,
OnClickListener listener )
{
String str = getString( m_context, textId );
return setPositiveButton( str, listener );
} }
@Override
public AlertDialog.Builder setNeutralButton( int textId,
OnClickListener listener )
{
String str = getString( m_context, textId );
return setNeutralButton( str, listener );
}
@Override
public AlertDialog.Builder setNegativeButton( int textId,
OnClickListener listener )
{
String str = getString( m_context, textId );
return setNegativeButton( str, listener );
}
}
} }