Update call view
This commit is contained in:
parent
455f7e87b6
commit
f3fe215bc0
2 changed files with 5 additions and 5 deletions
|
@ -65,7 +65,7 @@
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/contact_name"
|
android:id="@+id/current_contact_name"
|
||||||
style="@style/font5"
|
style="@style/font5"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
@ -74,11 +74,11 @@
|
||||||
android:layout_gravity="center"/>
|
android:layout_gravity="center"/>
|
||||||
|
|
||||||
<Chronometer
|
<Chronometer
|
||||||
android:id="@+id/call_timer"
|
android:id="@+id/current_call_timer"
|
||||||
style="@style/font2"
|
style="@style/font2"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_below="@id/contact_name"
|
android:layout_below="@id/current_contact_name"
|
||||||
android:layout_gravity="center"/>
|
android:layout_gravity="center"/>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
|
@ -1470,7 +1470,7 @@ public class CallActivity extends Activity implements OnClickListener {
|
||||||
//}
|
//}
|
||||||
|
|
||||||
LinphoneAddress lAddress = call.getRemoteAddress();
|
LinphoneAddress lAddress = call.getRemoteAddress();
|
||||||
TextView contactName = (TextView) findViewById(R.id.contact_name);
|
TextView contactName = (TextView) findViewById(R.id.current_contact_name);
|
||||||
|
|
||||||
setContactInformation(contactName, contactPicture, lAddress);
|
setContactInformation(contactName, contactPicture, lAddress);
|
||||||
registerCallDurationTimer(null, call);
|
registerCallDurationTimer(null, call);
|
||||||
|
@ -1547,7 +1547,7 @@ public class CallActivity extends Activity implements OnClickListener {
|
||||||
|
|
||||||
Chronometer timer;
|
Chronometer timer;
|
||||||
if(v == null){
|
if(v == null){
|
||||||
timer = (Chronometer) findViewById(R.id.call_timer);
|
timer = (Chronometer) findViewById(R.id.current_call_timer);
|
||||||
} else {
|
} else {
|
||||||
timer = (Chronometer) v.findViewById(R.id.call_timer);
|
timer = (Chronometer) v.findViewById(R.id.call_timer);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue