|
|
|
@ -531,11 +531,11 @@ var routes = [
|
|
|
|
|
});
|
|
|
|
|
if (platform_type == "cordova" && cordova.platformId != "browser") {
|
|
|
|
|
settings.push({
|
|
|
|
|
setting: "wakelock",
|
|
|
|
|
title: "Keep screen on",
|
|
|
|
|
text: "Improves GPS accuracy and alert sound reliability, but uses more battery.",
|
|
|
|
|
setting: "runinbackground",
|
|
|
|
|
title: "Run in background",
|
|
|
|
|
text: "Get package alerts when the screen is off or a different app is open.",
|
|
|
|
|
toggle: true,
|
|
|
|
|
checked: getStorage("wakelock") == "true",
|
|
|
|
|
checked: getStorage("runinbackground") == "true",
|
|
|
|
|
onclick: ""
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
@ -798,8 +798,19 @@ var routes = [
|
|
|
|
|
selected: getStorage("animation") == "off"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
if (platform_type == "cordova" && cordova.platformId != "browser") {
|
|
|
|
|
settings.push({
|
|
|
|
|
setting: "wakelock",
|
|
|
|
|
title: "Keep screen on",
|
|
|
|
|
text: "",
|
|
|
|
|
toggle: true,
|
|
|
|
|
checked: getStorage("wakelock") == "true",
|
|
|
|
|
onclick: ""
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
settings.push([{
|
|
|
|
|
setting: "showhelp",
|
|
|
|
|
title: "Show help",
|
|
|
|
|
text: "Show the <span class=material-icons-intext><i class=material-icons>help</i></span> icons",
|
|
|
|
@ -815,7 +826,7 @@ var routes = [
|
|
|
|
|
checked: getStorage("oldhomeui") == "true",
|
|
|
|
|
onclick: ""
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
]);
|
|
|
|
|
resolve({
|
|
|
|
|
templateUrl: './pages/settings.html'
|
|
|
|
|
}, {
|
|
|
|
|