upgrade
This commit is contained in:
BIN
Keystore/coolapeKeyStore.keystore
Normal file
BIN
Keystore/coolapeKeyStore.keystore
Normal file
Binary file not shown.
4
Keystore/coolapeKeyStore.keystore.meta
Normal file
4
Keystore/coolapeKeyStore.keystore.meta
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: d0d568b30e2f74409bc39d572cd4e60d
|
||||||
|
DefaultImporter:
|
||||||
|
userData:
|
||||||
Binary file not shown.
@@ -173,7 +173,7 @@ public class SipEngine implements BluetelInterface {
|
|||||||
int calltype = isVideo == false ? 0 : 1;
|
int calltype = isVideo == false ? 0 : 1;
|
||||||
String state = isVideo == true ? "视频来电" : "音频来电";
|
String state = isVideo == true ? "视频来电" : "音频来电";
|
||||||
callPagesConfig.add(new InCallUtils(incomingNumber, isHolder, isVideo, rPort, lPort, incomingNumber, state, false, 0, callid));
|
callPagesConfig.add(new InCallUtils(incomingNumber, isHolder, isVideo, rPort, lPort, incomingNumber, state, false, 0, callid));
|
||||||
GoToInCall(App.getContext(), incomingNumber, "来电", calltype, callid);
|
GoToInCall(App.getContext(), incomingNumber, "来电", calltype, callid, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -247,7 +247,7 @@ public class SipEngine implements BluetelInterface {
|
|||||||
* @param calltype
|
* @param calltype
|
||||||
* @param callid
|
* @param callid
|
||||||
*/
|
*/
|
||||||
public void GoToInCall(Context context, String callnumber, String callstate, int calltype, int callid) {
|
public void GoToInCall(Context context, String callnumber, String callstate, int calltype, int callid, boolean selfCall) {
|
||||||
Intent intent = null;
|
Intent intent = null;
|
||||||
|
|
||||||
logmy.e("GoToInCall==============" + isMeetingCall(callnumber) +"==="+ System.currentTimeMillis());
|
logmy.e("GoToInCall==============" + isMeetingCall(callnumber) +"==="+ System.currentTimeMillis());
|
||||||
@@ -261,6 +261,7 @@ public class SipEngine implements BluetelInterface {
|
|||||||
bundle.putString("callnumber", callnumber);
|
bundle.putString("callnumber", callnumber);
|
||||||
bundle.putString("callstate", callstate);
|
bundle.putString("callstate", callstate);
|
||||||
bundle.putInt("calltype", calltype);
|
bundle.putInt("calltype", calltype);
|
||||||
|
bundle.putBoolean("selfCall", selfCall);
|
||||||
intent.putExtras(bundle);
|
intent.putExtras(bundle);
|
||||||
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||||
context.startActivity(intent);
|
context.startActivity(intent);
|
||||||
@@ -276,7 +277,7 @@ public class SipEngine implements BluetelInterface {
|
|||||||
public int CallNumber(String number, boolean isVideo) {
|
public int CallNumber(String number, boolean isVideo) {
|
||||||
int calltype = isVideo ? 0 : 1;
|
int calltype = isVideo ? 0 : 1;
|
||||||
int callid = myBluetelEngine.CallNumber(number, ip, port, isVideo);
|
int callid = myBluetelEngine.CallNumber(number, ip, port, isVideo);
|
||||||
GoToInCall(App.getContext(), number, "呼叫中", calltype, callid);
|
GoToInCall(App.getContext(), number, "呼叫中", calltype, callid, true);
|
||||||
|
|
||||||
callPagesConfig.add(new InCallUtils(number, false, isVideo, 0, 0, number, "呼叫中", false, 0, callid));
|
callPagesConfig.add(new InCallUtils(number, false, isVideo, 0, 0, number, "呼叫中", false, 0, callid));
|
||||||
return callid;
|
return callid;
|
||||||
|
|||||||
@@ -60,6 +60,7 @@ public class InCallActivity extends TrBaseActivity implements OnClickListener {
|
|||||||
private String callnumber = "未知";
|
private String callnumber = "未知";
|
||||||
private String callstate = "未知";
|
private String callstate = "未知";
|
||||||
private int calltype = 0; //0音频1视频
|
private int calltype = 0; //0音频1视频
|
||||||
|
private boolean selfCall = false;
|
||||||
private boolean VIDEOSTATE = false;
|
private boolean VIDEOSTATE = false;
|
||||||
public static Intent incallIntent;
|
public static Intent incallIntent;
|
||||||
|
|
||||||
@@ -189,7 +190,7 @@ public class InCallActivity extends TrBaseActivity implements OnClickListener {
|
|||||||
incall_answer.setVisibility(View.GONE);
|
incall_answer.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
show.setText(callnumber + callstate);
|
show.setText(callnumber + callstate);
|
||||||
if (incall_answer.getVisibility() == View.VISIBLE) {
|
if (incall_answer.getVisibility() == View.VISIBLE && selfCall) {
|
||||||
incall_answer.setVisibility(View.GONE);
|
incall_answer.setVisibility(View.GONE);
|
||||||
SipEngine.getInstance().answer(callid);
|
SipEngine.getInstance().answer(callid);
|
||||||
}
|
}
|
||||||
@@ -223,6 +224,7 @@ public class InCallActivity extends TrBaseActivity implements OnClickListener {
|
|||||||
callnumber = bundle.getString("callnumber");
|
callnumber = bundle.getString("callnumber");
|
||||||
callstate = bundle.getString("callstate");
|
callstate = bundle.getString("callstate");
|
||||||
calltype = bundle.getInt("calltype");
|
calltype = bundle.getInt("calltype");
|
||||||
|
selfCall = bundle.getBoolean("selfCall");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -82,6 +82,7 @@ public class InCallMeetingActivity extends TrBaseActivity implements OnClickList
|
|||||||
private String callnumber = "未知";
|
private String callnumber = "未知";
|
||||||
private String callstate = "未知";
|
private String callstate = "未知";
|
||||||
private int calltype = 0; //0音频1视频
|
private int calltype = 0; //0音频1视频
|
||||||
|
private boolean selfCall = false;
|
||||||
private boolean VIDEOSTATE = false;
|
private boolean VIDEOSTATE = false;
|
||||||
public static Intent incallIntent;
|
public static Intent incallIntent;
|
||||||
|
|
||||||
@@ -524,7 +525,7 @@ public class InCallMeetingActivity extends TrBaseActivity implements OnClickList
|
|||||||
}
|
}
|
||||||
show.setText(callnumber + callstate);
|
show.setText(callnumber + callstate);
|
||||||
//控件显示号码,来电,去电,通话中...
|
//控件显示号码,来电,去电,通话中...
|
||||||
if (incall_answer.getVisibility() == View.VISIBLE) {
|
if (incall_answer.getVisibility() == View.VISIBLE && selfCall) {
|
||||||
incall_answer.setVisibility(View.GONE);
|
incall_answer.setVisibility(View.GONE);
|
||||||
SipEngine.getInstance().answer(callid);
|
SipEngine.getInstance().answer(callid);
|
||||||
}
|
}
|
||||||
@@ -560,6 +561,7 @@ public class InCallMeetingActivity extends TrBaseActivity implements OnClickList
|
|||||||
callnumber = bundle.getString("callnumber");
|
callnumber = bundle.getString("callnumber");
|
||||||
callstate = bundle.getString("callstate");
|
callstate = bundle.getString("callstate");
|
||||||
calltype = bundle.getInt("calltype");
|
calltype = bundle.getInt("calltype");
|
||||||
|
selfCall = bundle.getBoolean("selfCall");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="fill_parent"
|
android:layout_height="fill_parent"
|
||||||
android:background="@drawable/callbackground" >
|
android:background="@drawable/callbackground" >
|
||||||
|
|
||||||
<blue.view.SMPercentFrameLayout
|
<blue.view.SMPercentFrameLayout
|
||||||
@@ -35,7 +36,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:visibility="visible" />
|
android:visibility="visible" />
|
||||||
</blue.view.SMPercentFrameLayout>
|
</blue.view.SMPercentFrameLayout>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="60dp"
|
android:layout_height="60dp"
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ buildscript {
|
|||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:4.1.0'
|
classpath 'com.android.tools.build:gradle:4.1.0'
|
||||||
|
|
||||||
// NOTE: Do not place your application dependencies here; they belong
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
// in the individual module build.gradle files
|
// in the individual module build.gradle files
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user