This commit is contained in:
Eric House 2014-04-23 19:41:44 -07:00
parent 6d7d4955a0
commit 7434c6a3a7
3 changed files with 3 additions and 18 deletions

View file

@ -38,7 +38,6 @@ import java.util.Iterator;
import junit.framework.Assert;
import org.eehouse.android.xw4.loc.LocUtils;
import org.eehouse.android.xw4.loc.LocUtils.AlertBuilder;
public class DlgDelegate {

View file

@ -33,20 +33,6 @@ public class LocIDs extends LocIDsData {
private static String[] s_keys;
private static HashMap<String, Integer> S_MAP = null;
protected static String getNthKey( Context context, int indx )
{
if ( null == s_keys ) {
Map<String, Integer> map = getS_MAP( context );
s_keys = new String[map.size()];
Iterator<String> iter = map.keySet().iterator();
for ( int ii = 0; iter.hasNext(); ++ii ) {
s_keys[ii] = iter.next();
}
}
return s_keys[indx];
}
protected static int getID( Context context, String key )
{
int result = LocIDsData.NOT_FOUND;

View file

@ -434,12 +434,12 @@ public class LocUtils {
return sb.toString();
}
public static AlertBuilder makeAlertBuilder( Context context )
public static AlertDialog.Builder makeAlertBuilder( Context context )
{
return new AlertBuilder( context );
}
public static class AlertBuilder extends AlertDialog.Builder {
private static class AlertBuilder extends AlertDialog.Builder {
Context m_context;
private AlertBuilder( Context context )
@ -483,6 +483,6 @@ public class LocUtils {
String str = getString( m_context, textId );
return setNegativeButton( str, listener );
}
}
}
}