aboutsummaryrefslogtreecommitdiffstats
path: root/ddms/libs
diff options
context:
space:
mode:
authorSiva Velusamy <vsiva@google.com>2011-09-28 18:42:10 -0700
committerSiva Velusamy <vsiva@google.com>2011-09-28 18:43:08 -0700
commit09aefc28c531b6e56010f3054d54568864fd200a (patch)
treee88904b51fe21dfa424cd8a56c70c1456566d7ef /ddms/libs
parente75776f6d0fb63ff2d8a56eebe5ed9fd90bfdfd6 (diff)
downloadsdk-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.java5
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();
}
}