mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-30 08:34:16 +01:00
translate GameConfig view -- though it really needs to be broken to have a Delegate....
This commit is contained in:
parent
0ac951c096
commit
5d83d2f318
2 changed files with 9 additions and 2 deletions
|
@ -408,6 +408,7 @@ public class GameConfig extends XWActivity
|
||||||
false );
|
false );
|
||||||
|
|
||||||
setContentView(R.layout.game_config);
|
setContentView(R.layout.game_config);
|
||||||
|
LocUtils.xlateView( this );
|
||||||
|
|
||||||
m_connectSetRelay = findViewById(R.id.connect_set_relay);
|
m_connectSetRelay = findViewById(R.id.connect_set_relay);
|
||||||
m_connectSetSMS = findViewById(R.id.connect_set_sms);
|
m_connectSetSMS = findViewById(R.id.connect_set_sms);
|
||||||
|
|
|
@ -38,9 +38,10 @@ import java.util.Map;
|
||||||
|
|
||||||
import junit.framework.Assert;
|
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.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;
|
import org.eehouse.android.xw4.XWPrefs;
|
||||||
|
|
||||||
public class LocUtils {
|
public class LocUtils {
|
||||||
|
@ -79,6 +80,11 @@ public class LocUtils {
|
||||||
return view;
|
return view;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void xlateView( Activity activity )
|
||||||
|
{
|
||||||
|
xlateView( activity, Utils.getContentView( activity ) );
|
||||||
|
}
|
||||||
|
|
||||||
public static void xlateView( Context context, View view )
|
public static void xlateView( Context context, View view )
|
||||||
{
|
{
|
||||||
if ( view instanceof ViewGroup ) {
|
if ( view instanceof ViewGroup ) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue