aboutsummaryrefslogtreecommitdiffstats
path: root/ddms/app
diff options
context:
space:
mode:
authorSiva Velusamy <vsiva@google.com>2011-08-24 17:50:20 -0700
committerSiva Velusamy <vsiva@google.com>2011-09-01 13:17:45 -0700
commitbfde12592b821ef00973e0eedf663752ca789087 (patch)
treeb181a1c98f7d57352cc292439f1f610fae13ba8e /ddms/app
parent58c55cdc5f9173f337fcb143105790f2affa5c6e (diff)
downloadsdk-bfde12592b821ef00973e0eedf663752ca789087.zip
sdk-bfde12592b821ef00973e0eedf663752ca789087.tar.gz
sdk-bfde12592b821ef00973e0eedf663752ca789087.tar.bz2
Move creation of LogCatReceiver to a separate factory.
Until now there was only one instance of LogCatReceiver. This instance would listen to the logcat output from the currently selected device. This patch modifies this behavior to make one LogCatReceiver responsible for listening to only one device. If there are multiple devices, then multiple instances of LogCatReceivers are instantiated. The instantiation is also moved to a separate factory. This modification allows for the scenario where the LogCatReceiver's can be instantiated independent of the UI, and are reused by the UI whenever needed. Change-Id: I46008cbd5ee41880372a62e7e09634ce2d2fc122
Diffstat (limited to 'ddms/app')
-rw-r--r--ddms/app/src/com/android/ddms/UIThread.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/ddms/app/src/com/android/ddms/UIThread.java b/ddms/app/src/com/android/ddms/UIThread.java
index 0bb211b..fb8a224 100644
--- a/ddms/app/src/com/android/ddms/UIThread.java
+++ b/ddms/app/src/com/android/ddms/UIThread.java
@@ -1369,8 +1369,7 @@ public class UIThread implements IUiSelectionListener, IClientChangeListener {
private void createLogCatView(Composite parent) {
IPreferenceStore prefStore = DdmUiPreferences.getStore();
- LogCatReceiver receiver = new LogCatReceiver(prefStore);
- mLogCatPanel = new LogCatPanel(receiver, prefStore);
+ mLogCatPanel = new LogCatPanel(prefStore);
mLogCatPanel.createPanel(parent);
if (mCurrentDevice != null) {