1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-26 02:42:16 -05:00

Only resize MessageListView if in delegate mode

This commit is contained in:
Sebastian Kaspari 2010-03-20 21:56:15 +01:00
parent 76222eefd3
commit 251bee24f7

View File

@ -88,7 +88,7 @@ public class MessageListView extends ListView
@Override
protected void onDraw(Canvas canvas)
{
if (parent.getWidth() != parentWidth || parent.getHeight() != parentHeight) {
if (delegate && (parent.getWidth() != parentWidth || parent.getHeight() != parentHeight)) {
// parent size changed, resizing this child too
parentWidth = parent.getWidth();