@@ -127,7 +127,7 @@ Music::Music(Pinetime::Controllers::MusicService& music) : musicService(music) {
127127 lv_obj_set_width (txtTrack, LV_HOR_RES - 12 );
128128 lv_label_set_text_static (txtTrack, " " );
129129
130- page1Indicator .Create ();
130+ pageIndicator .Create ();
131131
132132 /* * Init animation */
133133 imgDisc = lv_img_create (lv_scr_act (), nullptr );
@@ -255,11 +255,9 @@ bool Music::OnTouchEvent(Pinetime::Applications::TouchEvents event) {
255255 case TouchEvents::SwipeUp: {
256256 lv_obj_set_hidden (btnVolDown, false );
257257 lv_obj_set_hidden (btnVolUp, false );
258-
259258 lv_obj_set_hidden (btnNext, true );
260259 lv_obj_set_hidden (btnPrev, true );
261- page1Indicator.Delete ();
262- page2Indicator.Create ();
260+ pageIndicator.SetCurrentScreen (1 );
263261 return true ;
264262 }
265263 case TouchEvents::SwipeDown: {
@@ -268,8 +266,7 @@ bool Music::OnTouchEvent(Pinetime::Applications::TouchEvents event) {
268266 lv_obj_set_hidden (btnPrev, false );
269267 lv_obj_set_hidden (btnVolDown, true );
270268 lv_obj_set_hidden (btnVolUp, true );
271- page2Indicator.Delete ();
272- page1Indicator.Create ();
269+ pageIndicator.SetCurrentScreen (0 );
273270 return true ;
274271 }
275272 return false ;
0 commit comments