liuzhenxing1118 3 жил өмнө
parent
commit
08f199d5d1

+ 2 - 2
app/src/main/java/com/xplora/xplauncher/data/DataManager.java

@@ -127,7 +127,7 @@ public class DataManager {
     public void loadRecent() {
         for (int i = 0; i < 4; i++) {
             ContactModel model = new ContactModel();
-            model.setContactIcon(R.drawable.contact_head);
+            model.setHeadImage(R.drawable.contact_head);
             model.setContactName("recent" + i);
             model.setCallType(i);
             model.setCallTime(0);
@@ -143,7 +143,7 @@ public class DataManager {
         for (int i = 0; i < 6; i++) {
             ContactModel model = new ContactModel();
             model.setCallType(i);
-            model.setContactIcon(R.drawable.contact_head);
+            model.setHeadImage(R.drawable.contact_head);
             model.setContactName("name" + i);
             model.setCallTime(0);
             mContactList.add(model);

+ 6 - 6
app/src/main/java/com/xplora/xplauncher/model/ContactModel.java

@@ -3,17 +3,17 @@ package com.xplora.xplauncher.model;
 import android.graphics.drawable.Drawable;
 
 public class ContactModel {
-    private int contactIcon = 0;
+    private int headImage = 0;
     private String contactName = "";
-    private int callTime = 0;
     private int callType = 0;
+    private int callTime = 0;
 
-    public int getContactIcon() {
-        return contactIcon;
+    public int getHeadImage() {
+        return headImage;
     }
 
-    public void setContactIcon(int drawable) {
-        this.contactIcon = drawable;
+    public void setHeadImage(int headImage) {
+        this.headImage = headImage;
     }
 
     public String getContactName() {