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