[SRADA-675] Clear markerlist when start trace button clicked
authorjaeyong lee <jae-yong.lee@samsung.com>
Tue, 14 Jun 2016 00:17:42 +0000 (09:17 +0900)
committerdongkyu6 lee <dongkyu6.lee@samsung.com>
Tue, 14 Jun 2016 09:47:15 +0000 (18:47 +0900)
Change-Id: I3e405df406297d1e2f398a4b39b28424d4849396

org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/toolbar/Toolbar.java

index 68d8d7a..3d69c19 100644 (file)
@@ -79,6 +79,7 @@ import org.tizen.dynamicanalyzer.setting.TargetData;
 import org.tizen.dynamicanalyzer.shortcut.ShortCutManager;
 import org.tizen.dynamicanalyzer.ui.common.explorer.DeviceExplorerDialog;
 import org.tizen.dynamicanalyzer.ui.page.BaseView;
+import org.tizen.dynamicanalyzer.ui.range.RangeDataManager;
 import org.tizen.dynamicanalyzer.ui.timeline.TimelinePage;
 import org.tizen.dynamicanalyzer.ui.toolbar.opentrace.OpenTraceDialog;
 import org.tizen.dynamicanalyzer.ui.toolbar.replayEditor.ReplayEditDialog;
@@ -416,6 +417,8 @@ public enum Toolbar {
                        @Override
                        public void handleClickEvent(DACustomButton button) {
                                if (DAState.isStartable()) {
+                                       clearMarkerTimeList();
+                                       RangeDataManager.getInstance().clearMarkerTime();
                                        CommandAction.startTrace(false);
                                } else if (DAState.isRunning()) {
                                        CommandAction.stopTrace(new DAResult(ErrorCode.SUCCESS), false);