mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-05 20:45:49 +01:00
cleanup
This commit is contained in:
parent
6d7d4955a0
commit
7434c6a3a7
3 changed files with 3 additions and 18 deletions
|
@ -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 {
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue