Setup app (#541)
- Implement Setup app for device's first boot - Implement device simple name and vendor name variables - Remove region setting (locale setting is already available)
This commit is contained in:
committed by
GitHub
parent
d3439f6f45
commit
2f5e183f18
@@ -49,6 +49,15 @@ std::string getTimeZoneName() {
|
||||
}
|
||||
}
|
||||
|
||||
bool hasTimeZone() {
|
||||
Preferences preferences(TIME_SETTINGS_NAMESPACE);
|
||||
std::string timezone;
|
||||
if (!preferences.optString(TIMEZONE_PREFERENCES_KEY_NAME, timezone)) {
|
||||
return false;
|
||||
}
|
||||
return !timezone.empty();
|
||||
}
|
||||
|
||||
std::string getTimeZoneCode() {
|
||||
Preferences preferences(TIME_SETTINGS_NAMESPACE);
|
||||
std::string result;
|
||||
|
||||
Reference in New Issue
Block a user