mirror of
https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background
synced 2024-11-14 19:44:53 +00:00
Fix type in clearScreenAndKeyguardFlags
This commit is contained in:
parent
2c4df332d3
commit
5f6072e738
@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright 2013 Sebastián Katzer
|
||||
Copyright 2013-2017 appPlant GmbH
|
||||
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright 2013 Sebastián Katzer
|
||||
Copyright 2013-2017 appPlant GmbH
|
||||
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
@ -176,7 +176,7 @@ public class BackgroundModeExt extends CordovaPlugin {
|
||||
Intent.FLAG_ACTIVITY_SINGLE_TOP |
|
||||
Intent.FLAG_ACTIVITY_CLEAR_TOP);
|
||||
|
||||
clearSreenAndKeyguardFlags();
|
||||
clearScreenAndKeyguardFlags();
|
||||
app.startActivity(intent);
|
||||
}
|
||||
|
||||
@ -397,7 +397,7 @@ public class BackgroundModeExt extends CordovaPlugin {
|
||||
/**
|
||||
* Clears required flags to the window to unlock/wakeup the device.
|
||||
*/
|
||||
private void clearSreenAndKeyguardFlags()
|
||||
private void clearScreenAndKeyguardFlags()
|
||||
{
|
||||
getApp().runOnUiThread(() -> getApp().getWindow().clearFlags(FLAG_ALLOW_LOCK_WHILE_SCREEN_ON | FLAG_SHOW_WHEN_LOCKED | FLAG_TURN_SCREEN_ON | FLAG_DISMISS_KEYGUARD));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user