From 81b7fe798c4584d2c14936ba383a397d6baf9584 Mon Sep 17 00:00:00 2001 From: Sebastian Kaspari Date: Mon, 21 Jan 2013 21:15:22 +0100 Subject: [PATCH] MessageListView: Set transcript mode to normal (Only automatically scroll if the last item is visible). Fixes #119. --- application/src/org/yaaic/view/MessageListView.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/application/src/org/yaaic/view/MessageListView.java b/application/src/org/yaaic/view/MessageListView.java index 129d2d9..75aeefe 100644 --- a/application/src/org/yaaic/view/MessageListView.java +++ b/application/src/org/yaaic/view/MessageListView.java @@ -51,15 +51,13 @@ public class MessageListView extends ListView setVerticalFadingEdgeEnabled(false); setBackgroundResource(R.layout.conversation_background); setScrollBarStyle(SCROLLBARS_OUTSIDE_INSET); - setTranscriptMode(TRANSCRIPT_MODE_ALWAYS_SCROLL); // Scale padding by screen density float density = context.getResources().getDisplayMetrics().density; int padding = (int) (5 * density); setPadding(padding, padding, padding, padding); - // XXX: This should be dynamically - setTranscriptMode(TRANSCRIPT_MODE_ALWAYS_SCROLL); + setTranscriptMode(TRANSCRIPT_MODE_NORMAL); } /**