X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=src%2Fro%2Fieval%2Ffonbot%2FFonBotAdminReceiver.java;h=108b1dab9f4e8ecf73a3e87d0b50c1e46232420e;hb=8bfdcf7a444359151c18720b01443d6f507bec7e;hp=ca1102cb7f9987b8cfec382bdec8d64053c97e80;hpb=d13f1533daefa5353d59d79f804931777a3aace6;p=fonbot.git diff --git a/src/ro/ieval/fonbot/FonBotAdminReceiver.java b/src/ro/ieval/fonbot/FonBotAdminReceiver.java index ca1102c..108b1da 100644 --- a/src/ro/ieval/fonbot/FonBotAdminReceiver.java +++ b/src/ro/ieval/fonbot/FonBotAdminReceiver.java @@ -77,7 +77,7 @@ public final class FonBotAdminReceiver extends DeviceAdminReceiver { public void onPasswordFailed(@Nullable final Context context, @Nullable final Intent intent) { if(context==null) return; - final DevicePolicyManager dpm=(DevicePolicyManager) FonBotApplication.instance.getSystemService(Context.DEVICE_POLICY_SERVICE); + final DevicePolicyManager dpm=(DevicePolicyManager) context.getSystemService(Context.DEVICE_POLICY_SERVICE); Utils.sendMessage(context, toNonNull(MessageType.WATCH_LOGIN), toNonNull(context.getString(device_login_failed_fmt, dpm.getCurrentFailedPasswordAttempts()))); }