am 30802a7e: am bb58303b: Fixing use of green button in call log
Merge commit '30802a7e5dc77512191bcdde44640565212b4243' into gingerbread-plus-aosp
* commit '30802a7e5dc77512191bcdde44640565212b4243':
Fixing use of green button in call log
diff --git a/src/com/android/contacts/RecentCallsListActivity.java b/src/com/android/contacts/RecentCallsListActivity.java
index ccd1ce3..e3213a3 100644
--- a/src/com/android/contacts/RecentCallsListActivity.java
+++ b/src/com/android/contacts/RecentCallsListActivity.java
@@ -1070,8 +1070,8 @@
// most recent entry.
position = 0;
}
- final Cursor cursor = mAdapter.getCursor();
- if (cursor != null && cursor.moveToPosition(position)) {
+ final Cursor cursor = (Cursor)mAdapter.getItem(position);
+ if (cursor != null) {
String number = cursor.getString(NUMBER_COLUMN_INDEX);
if (TextUtils.isEmpty(number)
|| number.equals(CallerInfo.UNKNOWN_NUMBER)