Fix type in clearScreenAndKeyguardFlags

This commit is contained in:
Sebastián Katzer 2019-02-11 15:23:27 +01:00
parent 2c4df332d3
commit 5f6072e738
2 changed files with 32 additions and 32 deletions

View 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

View 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));
}