-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
PrimeTime Watchface #2307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
tituscmd
wants to merge
25
commits into
InfiniTimeOrg:main
Choose a base branch
from
InfiniBros:watchface_prime
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
PrimeTime Watchface #2307
Changes from 16 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
81e3dd8
include prime watchface
tituscmd f4aa76c
correctly include new font
tituscmd 93c848b
watchface: add implementation and infrastructure fixes
tituscmd 2d207db
add font file
tituscmd 6550db1
renamed to PrimeTime and moved font to external storage
tituscmd 6608cf9
include prime watchface
tituscmd 2de0f4f
Dont know if Im doing this correctly
tituscmd f532e0b
watchface: add implementation and infrastructure fixes
tituscmd 57e896e
Rename to PrimeTime and move font to the external storage
tituscmd 1028d49
remove unneccesary line
tituscmd f468ef4
remove unneccesary lines
tituscmd 21671d4
Revert "include prime watchface"
tituscmd 35ad0d5
hopefully fixed my mistake
tituscmd abcaf22
hopefully fixed my mistake part 2
tituscmd 09ce06b
hopefully fixed my mistake part 3
tituscmd f85f7c3
Merge branch 'main' into watchface_prime
tituscmd 3c7c7f8
format to camelCase
tituscmd 8ceadf8
Merge branch 'watchface_prime' of github.com:tituscmd/InfiniTime into…
tituscmd 6f95830
change one last variable to camelCase
tituscmd 4438e10
remove color computation and two unused variables
tituscmd e89d1e6
remove unused variable
tituscmd d2ffb87
remove initializers
tituscmd 408b307
Merge branch 'main' into watchface_prime
tituscmd fbdb54f
Update CMakeLists.txt
tituscmd bcded26
Merge branch 'main' into watchface_prime
tituscmd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -53,6 +53,7 @@ namespace Pinetime { | |
| Terminal, | ||
| Infineat, | ||
| CasioStyleG7710, | ||
| PrimeTime, | ||
| }; | ||
|
|
||
| template <Apps> | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,244 @@ | ||
| #include "displayapp/screens/WatchFacePrimeTime.h" | ||
|
|
||
| #include <lvgl/lvgl.h> | ||
| #include <cstdio> | ||
|
|
||
| #include "displayapp/screens/NotificationIcon.h" | ||
| #include "displayapp/screens/Symbols.h" | ||
| #include "displayapp/screens/WeatherSymbols.h" | ||
| #include "components/battery/BatteryController.h" | ||
| #include "components/ble/BleController.h" | ||
| #include "components/ble/NotificationManager.h" | ||
| #include "components/heartrate/HeartRateController.h" | ||
| #include "components/motion/MotionController.h" | ||
| #include "components/ble/SimpleWeatherService.h" | ||
| #include "components/settings/Settings.h" | ||
| #include "displayapp/InfiniTimeTheme.h" | ||
| #include "components/ble/MusicService.h" | ||
|
|
||
| using namespace Pinetime::Applications::Screens; | ||
|
|
||
| WatchFacePrimeTime::WatchFacePrimeTime(Controllers::DateTime& dateTimeController, | ||
| const Controllers::Battery& batteryController, | ||
| const Controllers::Ble& bleController, | ||
| const Controllers::AlarmController& alarmController, | ||
| Controllers::NotificationManager& notificationManager, | ||
| Controllers::Settings& settingsController, | ||
| Controllers::HeartRateController& heartRateController, | ||
| Controllers::MotionController& motionController, | ||
| Controllers::SimpleWeatherService& weatherService, | ||
| Controllers::MusicService& music, | ||
| Controllers::FS& filesystem) | ||
| : currentDateTime {{}}, | ||
| dateTimeController {dateTimeController}, | ||
| notificationManager {notificationManager}, | ||
| settingsController {settingsController}, | ||
| heartRateController {heartRateController}, | ||
| motionController {motionController}, | ||
| weatherService {weatherService}, | ||
| musicService(music), | ||
| statusIcons(batteryController, bleController, alarmController) { | ||
|
|
||
| lfs_file f = {}; | ||
| if (filesystem.FileOpen(&f, "/fonts/primetime.bin", LFS_O_RDONLY) >= 0) { | ||
| filesystem.FileClose(&f); | ||
| font_primetime = lv_font_load("F:/fonts/primetime.bin"); | ||
| } | ||
|
|
||
| statusIcons.Create(); | ||
|
|
||
| notificationIcon = lv_label_create(lv_scr_act(), nullptr); | ||
| lv_obj_set_style_local_text_color(notificationIcon, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_WHITE); | ||
| lv_label_set_text_static(notificationIcon, NotificationIcon::GetIcon(false)); | ||
| lv_obj_align(notificationIcon, nullptr, LV_ALIGN_IN_TOP_LEFT, 0, 0); | ||
|
|
||
| weatherIcon = lv_label_create(lv_scr_act(), nullptr); | ||
| lv_obj_set_style_local_text_color(weatherIcon, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_WHITE); | ||
| lv_obj_set_style_local_text_font(weatherIcon, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, &fontawesome_weathericons); | ||
| lv_label_set_text_static(weatherIcon, Symbols::ban); | ||
| lv_obj_align(weatherIcon, nullptr, LV_ALIGN_IN_TOP_MID, 0, 30); | ||
| lv_obj_set_auto_realign(weatherIcon, true); | ||
|
|
||
| temperature = lv_label_create(lv_scr_act(), nullptr); | ||
| lv_obj_set_style_local_text_color(temperature, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_GRAY); | ||
| lv_label_set_text_static(temperature, "--°C"); | ||
| lv_obj_align(temperature, weatherIcon, LV_ALIGN_CENTER, 0, 25); | ||
|
|
||
| label_date = lv_label_create(lv_scr_act(), nullptr); | ||
| lv_obj_align(label_date, lv_scr_act(), LV_ALIGN_CENTER, 0, 50); | ||
| lv_obj_set_style_local_text_color(label_date, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_GRAY); | ||
|
|
||
| label_music = lv_label_create(lv_scr_act(), nullptr); | ||
| lv_label_set_text_fmt(label_music, "%s Not Playing", Symbols::music); | ||
| lv_obj_set_style_local_text_color(label_music, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, Colors::bgAlt); | ||
| lv_label_set_long_mode(label_music, LV_LABEL_LONG_SROLL_CIRC); | ||
| lv_obj_set_width(label_music, LV_HOR_RES - 12); | ||
| lv_label_set_align(label_music, LV_LABEL_ALIGN_CENTER); | ||
| lv_obj_align(label_music, lv_scr_act(), LV_ALIGN_CENTER, 0, 78); | ||
|
|
||
| label_time = lv_label_create(lv_scr_act(), nullptr); | ||
| lv_obj_set_style_local_text_font(label_time, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, font_primetime); | ||
| lv_obj_align(label_time, lv_scr_act(), LV_ALIGN_IN_RIGHT_MID, 0, 0); | ||
|
|
||
| label_time_ampm = lv_label_create(lv_scr_act(), nullptr); | ||
| lv_label_set_text_static(label_time_ampm, ""); | ||
| lv_obj_align(label_time_ampm, lv_scr_act(), LV_ALIGN_IN_RIGHT_MID, -30, -55); | ||
|
|
||
| heartbeatIcon = lv_label_create(lv_scr_act(), nullptr); | ||
| lv_label_set_text_static(heartbeatIcon, Symbols::heartBeat); | ||
| lv_obj_set_style_local_text_color(heartbeatIcon, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_WHITE); | ||
| lv_obj_align(heartbeatIcon, lv_scr_act(), LV_ALIGN_IN_BOTTOM_LEFT, 0, 1); | ||
|
|
||
| heartbeatValue = lv_label_create(lv_scr_act(), nullptr); | ||
| lv_obj_set_style_local_text_color(heartbeatValue, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, lv_color_hex(0xff4539)); | ||
| lv_label_set_text_static(heartbeatValue, ""); | ||
| lv_obj_align(heartbeatValue, heartbeatIcon, LV_ALIGN_OUT_RIGHT_MID, 5, 0); | ||
|
|
||
| stepValue = lv_label_create(lv_scr_act(), nullptr); | ||
| lv_obj_set_style_local_text_color(stepValue, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, lv_color_hex(0x0a84ff)); | ||
| lv_label_set_text_static(stepValue, "0"); | ||
| lv_obj_align(stepValue, lv_scr_act(), LV_ALIGN_IN_BOTTOM_RIGHT, 0, 0); | ||
|
|
||
| stepIcon = lv_label_create(lv_scr_act(), nullptr); | ||
| lv_obj_set_style_local_text_color(stepIcon, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, lv_color_hex(0x0a84ff)); | ||
| lv_label_set_text_static(stepIcon, Symbols::shoe); | ||
| lv_obj_align(stepIcon, stepValue, LV_ALIGN_OUT_LEFT_MID, -5, 0); | ||
|
|
||
| taskRefresh = lv_task_create(RefreshTaskCallback, LV_DISP_DEF_REFR_PERIOD, LV_TASK_PRIO_MID, this); | ||
| Refresh(); | ||
| } | ||
|
|
||
| WatchFacePrimeTime::~WatchFacePrimeTime() { | ||
| lv_task_del(taskRefresh); | ||
|
|
||
| if (font_primetime != nullptr) { | ||
| lv_font_free(font_primetime); | ||
| } | ||
|
|
||
| lv_obj_clean(lv_scr_act()); | ||
| } | ||
|
|
||
| void WatchFacePrimeTime::Refresh() { | ||
| statusIcons.Update(); | ||
|
|
||
| notificationState = notificationManager.AreNewNotificationsAvailable(); | ||
| if (notificationState.IsUpdated()) { | ||
| lv_label_set_text_static(notificationIcon, NotificationIcon::GetIcon(notificationState.Get())); | ||
| } | ||
|
|
||
| currentDateTime = std::chrono::time_point_cast<std::chrono::minutes>(dateTimeController.CurrentDateTime()); | ||
|
|
||
| if (currentDateTime.IsUpdated()) { | ||
| uint8_t hour = dateTimeController.Hours(); | ||
| uint8_t minute = dateTimeController.Minutes(); | ||
|
|
||
| if (settingsController.GetClockType() == Controllers::Settings::ClockType::H12) { | ||
| char ampmChar[3] = "AM"; | ||
| if (hour == 0) { | ||
| hour = 12; | ||
| } else if (hour == 12) { | ||
| ampmChar[0] = 'P'; | ||
| } else if (hour > 12) { | ||
| hour = hour - 12; | ||
| ampmChar[0] = 'P'; | ||
| } | ||
| lv_label_set_text(label_time_ampm, ampmChar); | ||
| lv_label_set_text_fmt(label_time, "%2d:%02d", hour, minute); | ||
| lv_obj_align(label_time, lv_scr_act(), LV_ALIGN_IN_RIGHT_MID, 0, 0); | ||
| } else { | ||
| lv_label_set_text_fmt(label_time, "%02d:%02d", hour, minute); | ||
| lv_obj_align(label_time, lv_scr_act(), LV_ALIGN_CENTER, 0, 0); | ||
| } | ||
|
|
||
| currentDate = std::chrono::time_point_cast<std::chrono::days>(currentDateTime.Get()); | ||
| if (currentDate.IsUpdated()) { | ||
| uint16_t year = dateTimeController.Year(); | ||
| uint8_t day = dateTimeController.Day(); | ||
| if (settingsController.GetClockType() == Controllers::Settings::ClockType::H24) { | ||
| lv_label_set_text_fmt(label_date, | ||
| "%s, %02d.%02d.%d", | ||
| dateTimeController.DayOfWeekShortToStringLow(dateTimeController.DayOfWeek()), | ||
| day, | ||
| dateTimeController.Month(), | ||
| year); | ||
| } else { | ||
| lv_label_set_text_fmt(label_date, | ||
| "%s %s %d %d", | ||
| dateTimeController.DayOfWeekShortToString(), | ||
| dateTimeController.MonthShortToString(), | ||
| day, | ||
| year); | ||
| } | ||
| lv_obj_realign(label_date); | ||
| } | ||
| } | ||
|
|
||
| heartbeat = heartRateController.HeartRate(); | ||
| heartbeatRunning = heartRateController.State() != Controllers::HeartRateController::States::Stopped; | ||
| if (heartbeat.IsUpdated() || heartbeatRunning.IsUpdated()) { | ||
| if (heartbeatRunning.Get()) { | ||
| lv_obj_set_style_local_text_color(heartbeatIcon, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, lv_color_hex(0xff4539)); | ||
| lv_label_set_text_fmt(heartbeatValue, "%d", heartbeat.Get()); | ||
| } else { | ||
| lv_obj_set_style_local_text_color(heartbeatIcon, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, lv_color_hex(0x1B1B1B)); | ||
| lv_label_set_text_static(heartbeatValue, ""); | ||
| } | ||
|
|
||
| lv_obj_realign(heartbeatIcon); | ||
| lv_obj_realign(heartbeatValue); | ||
| } | ||
|
|
||
| stepCount = motionController.NbSteps(); | ||
| if (stepCount.IsUpdated()) { | ||
| lv_label_set_text_fmt(stepValue, "%lu", stepCount.Get()); | ||
| lv_obj_realign(stepValue); | ||
| lv_obj_realign(stepIcon); | ||
| } | ||
|
|
||
| currentWeather = weatherService.Current(); | ||
| if (currentWeather.IsUpdated()) { | ||
| auto optCurrentWeather = currentWeather.Get(); | ||
| if (optCurrentWeather) { | ||
| int16_t temp = optCurrentWeather->temperature.Celsius(); | ||
| char tempUnit = 'C'; | ||
| if (settingsController.GetWeatherFormat() == Controllers::Settings::WeatherFormat::Imperial) { | ||
| temp = optCurrentWeather->temperature.Fahrenheit(); | ||
| tempUnit = 'F'; | ||
| } | ||
| if (temp <= 0) { // freezing | ||
| lv_obj_set_style_local_text_color(temperature, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, Colors::blue); | ||
| } else if (temp <= 5) { // near freezing | ||
| lv_obj_set_style_local_text_color(temperature, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_CYAN); | ||
| } else if (temp <= 15) { // early spring | ||
| lv_obj_set_style_local_text_color(temperature, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, lv_color_hex(0x4db8d1)); | ||
| } else if (temp <= 25) { // warm | ||
| lv_obj_set_style_local_text_color(temperature, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, Colors::orange); | ||
| } else if (temp >= 25) { // hot | ||
| lv_obj_set_style_local_text_color(temperature, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, Colors::deepOrange); | ||
| } | ||
|
tituscmd marked this conversation as resolved.
Outdated
|
||
| lv_label_set_text_fmt(temperature, "%d°%c", temp, tempUnit); | ||
| lv_label_set_text(weatherIcon, Symbols::GetSymbol(optCurrentWeather->iconId)); | ||
| } else { | ||
| lv_label_set_text_static(temperature, "--°"); | ||
| lv_label_set_text(weatherIcon, Symbols::ban); | ||
| } | ||
| lv_obj_realign(temperature); | ||
| lv_obj_realign(weatherIcon); | ||
| } | ||
| if (track != musicService.getTrack()) { | ||
| track = musicService.getTrack(); | ||
| lv_label_set_text_fmt(label_music, "%s %s", Symbols::music, track.data()); | ||
| lv_obj_realign(label_music); | ||
| } | ||
| } | ||
|
|
||
| bool WatchFacePrimeTime::IsAvailable(Pinetime::Controllers::FS& filesystem) { | ||
| lfs_file file = {}; | ||
|
|
||
| if (filesystem.FileOpen(&file, "/fonts/primetime.bin", LFS_O_RDONLY) < 0) { | ||
| return false; | ||
| } | ||
|
|
||
| filesystem.FileClose(&file); | ||
| return true; | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,117 @@ | ||
| #pragma once | ||
|
|
||
| #include <lvgl/src/lv_core/lv_obj.h> | ||
| #include <chrono> | ||
| #include <cstdint> | ||
| #include <memory> | ||
|
tituscmd marked this conversation as resolved.
Outdated
|
||
| #include "displayapp/screens/Screen.h" | ||
| #include "components/datetime/DateTimeController.h" | ||
| #include "components/ble/SimpleWeatherService.h" | ||
| #include "components/ble/BleController.h" | ||
| #include "displayapp/widgets/StatusIcons.h" | ||
| #include "utility/DirtyValue.h" | ||
| #include "displayapp/apps/Apps.h" | ||
|
|
||
| namespace Pinetime { | ||
| namespace Controllers { | ||
| class Settings; | ||
| class Battery; | ||
| class Ble; | ||
| class AlarmController; | ||
| class NotificationManager; | ||
| class HeartRateController; | ||
| class MotionController; | ||
| class MusicService; | ||
| } | ||
|
|
||
| namespace Applications { | ||
| namespace Screens { | ||
|
|
||
| class WatchFacePrimeTime : public Screen { | ||
| public: | ||
| WatchFacePrimeTime(Controllers::DateTime& dateTimeController, | ||
| const Controllers::Battery& batteryController, | ||
| const Controllers::Ble& bleController, | ||
| const Controllers::AlarmController& alarmController, | ||
| Controllers::NotificationManager& notificationManager, | ||
| Controllers::Settings& settingsController, | ||
| Controllers::HeartRateController& heartRateController, | ||
| Controllers::MotionController& motionController, | ||
| Controllers::SimpleWeatherService& weather, | ||
| Controllers::MusicService& music, | ||
| Controllers::FS& filesystem); | ||
| ~WatchFacePrimeTime() override; | ||
|
|
||
| void Refresh() override; | ||
|
|
||
| static bool IsAvailable(Pinetime::Controllers::FS& filesystem); | ||
|
|
||
| private: | ||
| uint8_t displayedHour = -1; | ||
| uint8_t displayedMinute = -1; | ||
|
tituscmd marked this conversation as resolved.
Outdated
|
||
|
|
||
| Utility::DirtyValue<std::chrono::time_point<std::chrono::system_clock, std::chrono::minutes>> currentDateTime {}; | ||
| Utility::DirtyValue<uint32_t> stepCount {}; | ||
| Utility::DirtyValue<uint8_t> heartbeat {}; | ||
| Utility::DirtyValue<bool> heartbeatRunning {}; | ||
| Utility::DirtyValue<bool> notificationState {}; | ||
| Utility::DirtyValue<std::optional<Pinetime::Controllers::SimpleWeatherService::CurrentWeather>> currentWeather {}; | ||
|
tituscmd marked this conversation as resolved.
Outdated
|
||
|
|
||
| Utility::DirtyValue<std::chrono::time_point<std::chrono::system_clock, std::chrono::days>> currentDate; | ||
|
|
||
| lv_obj_t* label_time; | ||
| lv_obj_t* label_time_ampm; | ||
| lv_obj_t* label_date; | ||
| lv_obj_t* heartbeatIcon; | ||
| lv_obj_t* heartbeatValue; | ||
| lv_obj_t* stepIcon; | ||
| lv_obj_t* stepValue; | ||
| lv_obj_t* notificationIcon; | ||
| lv_obj_t* weatherIcon; | ||
| lv_obj_t* temperature; | ||
| lv_obj_t* label_music; | ||
| lv_obj_t* icon_music; | ||
| lv_obj_t* weatherLabel; | ||
|
tituscmd marked this conversation as resolved.
Outdated
|
||
| lv_obj_t* label_battery_value; | ||
| std::string track; | ||
|
|
||
| Controllers::DateTime& dateTimeController; | ||
| Controllers::NotificationManager& notificationManager; | ||
| Controllers::Settings& settingsController; | ||
| Controllers::HeartRateController& heartRateController; | ||
| Controllers::MotionController& motionController; | ||
| Controllers::SimpleWeatherService& weatherService; | ||
| Controllers::MusicService& musicService; | ||
|
|
||
| lv_font_t* font_primetime = nullptr; | ||
|
tituscmd marked this conversation as resolved.
Outdated
|
||
|
|
||
| lv_task_t* taskRefresh; | ||
| Widgets::StatusIcons statusIcons; | ||
| }; | ||
| } | ||
|
|
||
| template <> | ||
| struct WatchFaceTraits<WatchFace::PrimeTime> { | ||
| static constexpr WatchFace watchFace = WatchFace::PrimeTime; | ||
| static constexpr const char* name = "PrimeTime"; | ||
|
|
||
| static Screens::Screen* Create(AppControllers& controllers) { | ||
| return new Screens::WatchFacePrimeTime(controllers.dateTimeController, | ||
| controllers.batteryController, | ||
| controllers.bleController, | ||
| controllers.alarmController, | ||
| controllers.notificationManager, | ||
| controllers.settingsController, | ||
| controllers.heartRateController, | ||
| controllers.motionController, | ||
| *controllers.weatherController, | ||
| *controllers.musicService, | ||
| controllers.filesystem); | ||
| }; | ||
|
|
||
| static bool IsAvailable(Pinetime::Controllers::FS& filesystem) { | ||
| return Screens::WatchFacePrimeTime::IsAvailable(filesystem); | ||
| } | ||
| }; | ||
| } | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.