--- a/alps/packages/apps/Dialer/src/com/android/dialer/CallDetailActivity.java
+++ b/alps/packages/apps/Dialer/src/com/android/dialer/CallDetailActivity.java
@@ -85,6 +85,7 @@ import com.mediatek.dialer.util.DialerVolteUtils;
import java.util.ArrayList;
import java.util.List;
+import android.os.SystemProperties;// modify for Call records don't show location
/**
* Displays the details of a specific call log entry.
@@ -154,12 +155,24 @@ public class CallDetailActivity extends NeedTestActivity
if (!TextUtils.isEmpty(mDetails.getPreferredName())) {
mCallerName.setText(mDetails.getPreferredName());
+ //modify for Call records don't show location
+ if(SystemProperties.get("ro.kcm_telcel_support").equals("1")){
+ mCallerNumber.setVisibility(View.GONE);
+ }
+ //modify end
mCallerNumber.setText(callLocationOrType + " " + displayNumberStr);
} else {
mCallerName.setText(displayNumberStr);
if (!TextUtils.isEmpty(callLocationOrType)) {
mCallerNumber.setText(callLocationOrType);
- mCallerNumber.setVisibility(View.VISIBLE);
+ //liubaofu modify 20161123 for Call records don't show location
+ //mCallerNumber.setVisibility(View.VISIBLE);
+ if(SystemProperties.get("ro.kcm_telcel_support").equals("1")){
+ mCallerNumber.setVisibility(View.GONE);
+ }else{
+ mCallerNumber.setVisibility(View.VISIBLE);
+ }
+ //modify end
} else {
mCallerNumber.setVisibility(View.GONE);
}