mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-28 12:35:40 +01:00
move power manager check inside try/catch
This commit is contained in:
parent
5504298251
commit
03a55d38d3
@ -104,6 +104,8 @@ namespace Bit.Android
|
|||||||
}
|
}
|
||||||
|
|
||||||
public override void OnAccessibilityEvent(AccessibilityEvent e)
|
public override void OnAccessibilityEvent(AccessibilityEvent e)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
var powerManager = (PowerManager)GetSystemService(PowerService);
|
var powerManager = (PowerManager)GetSystemService(PowerService);
|
||||||
if(Build.VERSION.SdkInt > BuildVersionCodes.KitkatWatch && !powerManager.IsInteractive)
|
if(Build.VERSION.SdkInt > BuildVersionCodes.KitkatWatch && !powerManager.IsInteractive)
|
||||||
@ -115,8 +117,6 @@ namespace Bit.Android
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
if(SkipPackage(e?.PackageName))
|
if(SkipPackage(e?.PackageName))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user