|
@@ -184,11 +184,8 @@ public class MainActivity extends BaseActivity implements Listener.ButtonListene
|
|
|
ContactsRecyclerAdapter.ContactItemOnClickListener onContactItemOnClickListener = new ContactsRecyclerAdapter.ContactItemOnClickListener() {
|
|
|
@Override
|
|
|
public void onClick(String phoneNumber, String userId) {
|
|
|
-// //呼出
|
|
|
-// Intent intent = new Intent();
|
|
|
-// intent = intent.setClass(this, InCallActivity.class);
|
|
|
-// intent.putExtra(MetaData.KEY_CONTACT_USERID, ContactBean.getUserId());
|
|
|
-// startActivity(intent);
|
|
|
+ Intent intent_tel = new Intent("android.intent.action.CALL_PRIVILEGED", Uri.parse("tel:" + phoneNumber));
|
|
|
+ intent_tel.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
|
|
}
|
|
|
};
|
|
|
|
|
@@ -450,14 +447,16 @@ public class MainActivity extends BaseActivity implements Listener.ButtonListene
|
|
|
} else {
|
|
|
String packageName = "com.xplora.xponboarding";
|
|
|
String activity = "";
|
|
|
- if (status == 1) {//no sim
|
|
|
+ if (status == 10) {//no sim
|
|
|
activity = packageName + ".Activity.SimInstallActivity";
|
|
|
- }else if (status == 2) {//sim 被锁
|
|
|
+ }else if (status == 11) {//sim 被锁
|
|
|
activity = packageName + ".Activity.SimLockedActivity";
|
|
|
- } else if (status == 3) { //esim 未激活
|
|
|
- activity = packageName + ".Activity.EsimUnactivationActivity";
|
|
|
- } else if (status == 4) { //watch 未激活
|
|
|
+ }else if (status == 12) { //sim 未激活
|
|
|
activity = packageName + ".Activity.SimUnactivatedActivity";
|
|
|
+ } else if (status == 1) { //esim 未激活
|
|
|
+ activity = packageName + ".Activity.EsimUnactivationActivity";
|
|
|
+ } else if (status == 2) { //手表 未激活
|
|
|
+ activity = packageName + ".Activity.QRActivity";
|
|
|
}
|
|
|
ComponentName component = new ComponentName(packageName, activity);
|
|
|
Intent intent = new Intent();
|