translate GameConfig view -- though it really needs to be broken to have a Delegate....

This commit is contained in:
Eric House 2014-04-08 19:12:00 -07:00
parent 0ac951c096
commit 5d83d2f318
2 changed files with 9 additions and 2 deletions

View file

@ -408,6 +408,7 @@ public class GameConfig extends XWActivity
false );
setContentView(R.layout.game_config);
LocUtils.xlateView( this );
m_connectSetRelay = findViewById(R.id.connect_set_relay);
m_connectSetSMS = findViewById(R.id.connect_set_sms);

View file

@ -38,9 +38,10 @@ import java.util.Map;
import junit.framework.Assert;
import org.eehouse.android.xw4.R;
import org.eehouse.android.xw4.DbgUtils;
import org.eehouse.android.xw4.DBUtils;
import org.eehouse.android.xw4.DbgUtils;
import org.eehouse.android.xw4.R;
import org.eehouse.android.xw4.Utils;
import org.eehouse.android.xw4.XWPrefs;
public class LocUtils {
@ -79,6 +80,11 @@ public class LocUtils {
return view;
}
public static void xlateView( Activity activity )
{
xlateView( activity, Utils.getContentView( activity ) );
}
public static void xlateView( Context context, View view )
{
if ( view instanceof ViewGroup ) {