mirror of
https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background
synced 2024-11-22 07:14:54 +00:00
Rename variable
This commit is contained in:
parent
3d98c0f07f
commit
46dd479636
@ -32,7 +32,7 @@ namespace Cordova.Extension.Commands
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// Flag gibt an, ob die App im Hintergrund wach gehalten werden soll
|
/// Flag gibt an, ob die App im Hintergrund wach gehalten werden soll
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private static bool isEnabled = true;
|
private static bool IsEnabled = true;
|
||||||
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// Lokalisiert das Smartphone
|
/// Lokalisiert das Smartphone
|
||||||
@ -71,7 +71,7 @@ namespace Cordova.Extension.Commands
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static void Enable ()
|
public static void Enable ()
|
||||||
{
|
{
|
||||||
isEnabled = true;
|
IsEnabled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -79,7 +79,7 @@ namespace Cordova.Extension.Commands
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static void Disable ()
|
public static void Disable ()
|
||||||
{
|
{
|
||||||
isEnabled = false;
|
IsEnabled = false;
|
||||||
|
|
||||||
Deactivate();
|
Deactivate();
|
||||||
}
|
}
|
||||||
@ -98,7 +98,7 @@ namespace Cordova.Extension.Commands
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static void Activate ()
|
public static void Activate ()
|
||||||
{
|
{
|
||||||
if (Geolocator == null && isEnabled && IsServiceAvailable())
|
if (Geolocator == null && IsEnabled && IsServiceAvailable())
|
||||||
{
|
{
|
||||||
Geolocator = new Geolocator();
|
Geolocator = new Geolocator();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user