Skip to content
Snippets Groups Projects
Commit 6dc50d1f authored by Alexandre Savard's avatar Alexandre Savard
Browse files

Merge branch 'master' of git.savoirfairelinux.com:sflphone-android

parents b3feccc5 39a11fa3
No related branches found
No related tags found
No related merge requests found
...@@ -50,35 +50,20 @@ as that of the covered work. ...@@ -50,35 +50,20 @@ as that of the covered work.
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentLeft="true" android:layout_alignParentLeft="true"
android:layout_alignBottom="@+id/editAccountID"
android:gravity="center_vertical"
android:layout_below="@+id/buttonInit" android:layout_below="@+id/buttonInit"
android:text="AccountID" android:text="AccountID"
android:ems="10" /> android:ems="10" />
<EditText <TextView
android:id="@+id/editAccountID" android:id="@+id/editAccountID"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentRight="true" android:layout_alignParentRight="true"
android:layout_toRightOf="@+id/textAccountID" android:layout_toRightOf="@+id/textAccountID"
android:layout_below="@+id/buttonInit" android:layout_below="@+id/buttonInit"
android:ems="10" /> android:text="IP2IP"
<TextView
android:id="@+id/textCallID"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/editAccountID"
android:text="callID"
android:ems="10" />
<EditText
android:id="@+id/editCallID"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_toRightOf="@+id/textCallID"
android:layout_below="@+id/editAccountID"
android:ems="10" /> android:ems="10" />
<TextView <TextView
...@@ -86,8 +71,10 @@ as that of the covered work. ...@@ -86,8 +71,10 @@ as that of the covered work.
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentLeft="true" android:layout_alignParentLeft="true"
android:layout_below="@+id/editCallID" android:layout_alignBottom="@+id/editTo"
android:text="to" android:gravity="center_vertical"
android:layout_below="@+id/editAccountID"
android:text="to IP address"
android:ems="10" /> android:ems="10" />
<EditText <EditText
...@@ -96,7 +83,7 @@ as that of the covered work. ...@@ -96,7 +83,7 @@ as that of the covered work.
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentRight="true" android:layout_alignParentRight="true"
android:layout_toRightOf="@+id/textTo" android:layout_toRightOf="@+id/textTo"
android:layout_below="@+id/editCallID" android:layout_below="@+id/editAccountID"
android:ems="10" /> android:ems="10" />
<Button <Button
......
...@@ -279,19 +279,10 @@ public class SFLPhoneHome extends Activity implements ActionBar.TabListener, OnC ...@@ -279,19 +279,10 @@ public class SFLPhoneHome extends Activity implements ActionBar.TabListener, OnC
{ {
switch (view.getId()) { switch (view.getId()) {
case R.id.buttonCall: case R.id.buttonCall:
EditText editText = (EditText) findViewById(R.id.editAccountID); String callID = "007";
String accountID = editText.getText().toString(); TextView textView = (TextView) findViewById(R.id.editAccountID);
if (accountID == null) { String accountID = textView.getText().toString();
Log.e(TAG, "accountID is " + accountID); EditText editText;
break;
}
editText = (EditText) findViewById(R.id.editCallID);
String callID = editText.getText().toString();
if (callID == null) {
Log.e(TAG, "callID is " + callID);
break;
}
editText = (EditText) findViewById(R.id.editTo); editText = (EditText) findViewById(R.id.editTo);
String to = editText.getText().toString(); String to = editText.getText().toString();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment