Ver código fonte

直接呼叫

liuzhenxing1118 5 meses atrás
pai
commit
d45c020d3f

+ 1 - 3
app/src/main/java/com/sikey/skcontact/activity/DialActivity.java

@@ -7,8 +7,6 @@ public class DialActivity extends BaseInputActivity {
     @Override
     protected void onSureClick(String value) {
         super.onSureClick(value);
-        RecentBean bean = new RecentBean();
-        bean.caller = value;
-        showCall(2, bean);
+        callAction("", "", value);
     }
 }

+ 2 - 2
app/src/main/java/com/sikey/skcontact/activity/RecentActivity.java

@@ -54,7 +54,7 @@ public class RecentActivity extends BaseActionActivity {
         for (int i = 0; i < mRecentList.size(); i++) {
             BaseModel model = new BaseModel();
             model.title = mRecentList.get(i).caller.trim();
-            model.cellType = Constant.CellType.TITLE;
+            model.cellType = Constant.CellType.ICON_TITLE_SUBTITLE;
             model.isShowArrow = false;
             mDataList.add(model);
         }
@@ -70,7 +70,7 @@ public class RecentActivity extends BaseActionActivity {
             @Override
             public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
                 RecentBean bean = mRecentList.get(position);
-                showCall(1, bean);
+                callAction("", "", bean.caller);
             }
         });
     }