Format the number through new method
Change-Id: I536d7d94ab360daedfb36e645351d24d28cd2f37
diff --git a/src/com/android/contacts/ContactsUtils.java b/src/com/android/contacts/ContactsUtils.java
index 2bc2721..4e5a20a 100644
--- a/src/com/android/contacts/ContactsUtils.java
+++ b/src/com/android/contacts/ContactsUtils.java
@@ -28,7 +28,6 @@
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.drawable.Drawable;
-import android.location.Country;
import android.location.CountryDetector;
import android.net.Uri;
import android.provider.ContactsContract.Contacts;
@@ -570,7 +569,6 @@
public static final String getCurrentCountryIso(Context context) {
CountryDetector detector =
(CountryDetector) context.getSystemService(Context.COUNTRY_DETECTOR);
- Country country = detector.detectCountry();
- return country.getCountryIso();
+ return detector.detectCountry().getCountryIso();
}
}