am 599e7f8b: fix occasionally opening the wrong conversation
* commit '599e7f8bf95d2f21a966cbff1bf72adf77a90a33':
fix occasionally opening the wrong conversation
diff --git a/src/com/android/mail/ui/SwipeableListView.java b/src/com/android/mail/ui/SwipeableListView.java
index 987e52a..cc3750e 100644
--- a/src/com/android/mail/ui/SwipeableListView.java
+++ b/src/com/android/mail/ui/SwipeableListView.java
@@ -303,7 +303,7 @@
position = getPositionForView(view);
} catch (Exception e) {
position = INVALID_POSITION;
- LogUtils.w(LOG_TAG, "Exception finding position; using alternate strategy");
+ LogUtils.w(LOG_TAG, e, "Exception finding position; using alternate strategy");
}
if (position == INVALID_POSITION) {
// Try the other way!
@@ -316,7 +316,7 @@
.getConversation();
foundId = foundConv.id;
if (foundId == convId) {
- position = i;
+ position = i + getFirstVisiblePosition();
break;
}
}