Remove the global FonBotApplication instance.
[fonbot.git] / src / ro / ieval / fonbot / FonBotAdminReceiver.java
index ca1102cb7f9987b8cfec382bdec8d64053c97e80..108b1dab9f4e8ecf73a3e87d0b50c1e46232420e 100644 (file)
@@ -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())));
        }
This page took 0.010347 seconds and 4 git commands to generate.