mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
remove ability to edit host and port when configuring relay. Must use
prefs/advanced.
This commit is contained in:
parent
786541e9ae
commit
02a96cdaa6
3 changed files with 0 additions and 51 deletions
|
@ -31,48 +31,5 @@
|
|||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
/>
|
||||
|
||||
<TextView android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_marginLeft="20dip"
|
||||
android:layout_marginRight="20dip"
|
||||
android:text="@string/hostname_label"
|
||||
android:gravity="left"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
/>
|
||||
|
||||
<EditText android:id="@+id/hostname_edit"
|
||||
android:hint="eehouse.org"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_marginLeft="20dip"
|
||||
android:layout_marginRight="20dip"
|
||||
android:scrollHorizontally="true"
|
||||
android:autoText="false"
|
||||
android:capitalize="none"
|
||||
android:gravity="fill_horizontal"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
/>
|
||||
|
||||
<TextView android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_marginLeft="20dip"
|
||||
android:layout_marginRight="20dip"
|
||||
android:text="@string/port_label"
|
||||
android:gravity="left"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
/>
|
||||
|
||||
<EditText android:id="@+id/port_edit"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_marginLeft="20dip"
|
||||
android:layout_marginRight="20dip"
|
||||
android:scrollHorizontally="true"
|
||||
android:autoText="false"
|
||||
android:numeric="decimal"
|
||||
android:gravity="fill_horizontal"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
|
|
|
@ -193,10 +193,8 @@
|
|||
<string name="gamel_menu_dicts">Dictionaries</string>
|
||||
|
||||
<string name="room_label">Room</string>
|
||||
<string name="hostname_label">Hostname</string>
|
||||
<string name="phone_label">Host phone number</string>
|
||||
<string name="bluetooth_label">Bluetooth support coming soon....</string>
|
||||
<string name="port_label">Port</string>
|
||||
<string name="role_edit_title">Connection</string>
|
||||
|
||||
<string name="general_prefs">Preferences</string>
|
||||
|
|
|
@ -265,9 +265,6 @@ public class GameConfig extends Activity implements View.OnClickListener {
|
|||
switch( m_types[m_connectSpinner.getSelectedItemPosition()] ) {
|
||||
case COMMS_CONN_RELAY:
|
||||
Utils.setText( m_curDialog, R.id.room_edit, m_car.ip_relay_invite );
|
||||
Utils.setText( m_curDialog, R.id.hostname_edit,
|
||||
m_car.ip_relay_hostName );
|
||||
Utils.setInt( m_curDialog, R.id.port_edit, m_car.ip_relay_port );
|
||||
break;
|
||||
case COMMS_CONN_SMS:
|
||||
Utils.setText( m_curDialog, R.id.sms_phone_edit, m_car.sms_phone );
|
||||
|
@ -284,9 +281,6 @@ public class GameConfig extends Activity implements View.OnClickListener {
|
|||
switch ( m_car.conType ) {
|
||||
case COMMS_CONN_RELAY:
|
||||
m_car.ip_relay_invite = Utils.getText( m_curDialog, R.id.room_edit );
|
||||
m_car.ip_relay_hostName = Utils.getText( m_curDialog,
|
||||
R.id.hostname_edit );
|
||||
m_car.ip_relay_port = Utils.getInt( m_curDialog, R.id.port_edit );
|
||||
break;
|
||||
case COMMS_CONN_SMS:
|
||||
m_car.sms_phone = Utils.getText( m_curDialog, R.id.sms_phone_edit );
|
||||
|
|
Loading…
Add table
Reference in a new issue