mirror of
https://github.com/house-of-abbey/GarminHomeAssistant.git
synced 2025-08-05 19:38:31 +00:00
Cached 'has' result in initialize()
Also amended a bit of README that was missed and added a memory usage in the RootView for widgets here memory is limited, to serve as a warning to users who are likely to complain.
This commit is contained in:
@ -59,6 +59,7 @@ class RezStrings {
|
||||
private static var strCached as Lang.String or Null;
|
||||
(:glance)
|
||||
private static var strGlanceMenu as Lang.String or Null;
|
||||
private static var strMemory as Lang.String or Null;
|
||||
|
||||
// Can't initialise a constant directly, have to be initialised via a function
|
||||
// for 'WatchUi.loadResource' to be available.
|
||||
@ -103,6 +104,7 @@ class RezStrings {
|
||||
strUnconfigured = WatchUi.loadResource($.Rez.Strings.Unconfigured);
|
||||
strCached = WatchUi.loadResource($.Rez.Strings.Cached);
|
||||
strGlanceMenu = WatchUi.loadResource($.Rez.Strings.GlanceMenu);
|
||||
strMemory = WatchUi.loadResource($.Rez.Strings.Memory);
|
||||
}
|
||||
|
||||
static function getAppName() as Lang.String {
|
||||
@ -197,4 +199,8 @@ class RezStrings {
|
||||
return strGlanceMenu;
|
||||
}
|
||||
|
||||
static function getMemory() as Lang.String {
|
||||
return strMemory;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user