[Stopwatch] Contract stopwatch time view on reset 93/120093/2 submit/tizen/20170321.112504
authorKamil Lipiszko <k.lipiszko@samsung.com>
Tue, 21 Mar 2017 10:02:43 +0000 (11:02 +0100)
committerLukasz Stanislawski <l.stanislaws@samsung.com>
Tue, 21 Mar 2017 11:08:04 +0000 (04:08 -0700)
Change-Id: I79744051d2c94e5959762dc8a5ea3669d6dd55b3

clock/src/View/CounterView.cpp
clock/src/View/StopWatchView.cpp

index 2f2892c045320d9f9bac8a1b407f81f73fd8029a..896abb0b939ee330130bd44a8f875b86bf524a8d 100644 (file)
@@ -150,11 +150,12 @@ bool CounterView::SetDigitText(const char *text, unsigned col)
 void CounterView::Reset()
 {
        switch (type_) {
+       case CounterType::COUNTER_TYPE_STOPWATCH_EXPANDED:
+               Contract();
        case CounterType::COUNTER_TYPE_STOPWATCH:
                elm_object_part_text_set(layout_, "txt.main", "00:00");
                elm_object_part_text_set(layout_, "txt.ms", ".00");
                break;
-       case CounterType::COUNTER_TYPE_STOPWATCH_EXPANDED:
        case CounterType::COUNTER_TYPE_LAP:
        case CounterType::COUNTER_TYPE_TIMER:
                elm_object_part_text_set(layout_, "txt.main", "00:00:00");
index e4f323efdb5b45ec8cdaa219b48ad0951ee03785..36c0e968875784613234b72edaef0d399ad58785 100644 (file)
@@ -100,7 +100,6 @@ void StopWatchView::CreateMenuButtons()
 void StopWatchView::ShowStartupMenu()
 {
        main_counter_->Reset();
-       main_counter_->Contract();
        main_counter_->Show();
        lap_counter_->Reset();
        lap_counter_->Hide();