diff options
author | Siva Velusamy <vsiva@google.com> | 2011-09-28 18:42:10 -0700 |
---|---|---|
committer | Siva Velusamy <vsiva@google.com> | 2011-09-28 18:43:08 -0700 |
commit | 09aefc28c531b6e56010f3054d54568864fd200a (patch) | |
tree | e88904b51fe21dfa424cd8a56c70c1456566d7ef /ddms/libs | |
parent | e75776f6d0fb63ff2d8a56eebe5ed9fd90bfdfd6 (diff) | |
download | sdk-09aefc28c531b6e56010f3054d54568864fd200a.zip sdk-09aefc28c531b6e56010f3054d54568864fd200a.tar.gz sdk-09aefc28c531b6e56010f3054d54568864fd200a.tar.bz2 |
Check for scrolling before refreshing the table.
Change-Id: Id65b11216a8240e3297072f0af094d69d924a8b3
Diffstat (limited to 'ddms/libs')
-rw-r--r-- | ddms/libs/ddmuilib/src/com/android/ddmuilib/logcat/LogCatPanel.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ddms/libs/ddmuilib/src/com/android/ddmuilib/logcat/LogCatPanel.java b/ddms/libs/ddmuilib/src/com/android/ddmuilib/logcat/LogCatPanel.java index 58913b6..4c883eb 100644 --- a/ddms/libs/ddmuilib/src/com/android/ddmuilib/logcat/LogCatPanel.java +++ b/ddms/libs/ddmuilib/src/com/android/ddmuilib/logcat/LogCatPanel.java @@ -864,9 +864,12 @@ public final class LogCatPanel extends SelectionDependentPanel synchronized (LogCatPanel.this) { mCurrentRefresher = null; } + + // find out if we need to scroll before refreshing the table + boolean shouldScroll = shouldScrollToLatestLog(); mViewer.refresh(); - if (shouldScrollToLatestLog()) { + if (shouldScroll) { scrollToLatestLog(); } } |