(Context context, Bundle args)
| 524 | } |
| 525 | |
| 526 | @Override |
| 527 | protected Boolean onExecute(Context context, Bundle args) throws Throwable { |
| 528 | long id = args.getLong("id"); |
| 529 | |
| 530 | boolean dnssec = args.getBoolean("dnssec"); |
| 531 | String host = args.getString("host"); |
| 532 | int encryption = args.getInt("encryption"); |
| 533 | boolean insecure = args.getBoolean("insecure"); |
| 534 | boolean dane = args.getBoolean("dane"); |
| 535 | String port = args.getString("port"); |
| 536 | int auth = args.getInt("auth"); |
| 537 | String user = args.getString("user").trim(); |
| 538 | String password = args.getString("password"); |
| 539 | |
| 540 | String name = args.getString("name"); |
| 541 | String category = args.getString("category"); |
| 542 | Integer color = args.getInt("color"); |
| 543 | String avatar = args.getString("avatar"); |
| 544 | String calendar = args.getString("calendar"); |
| 545 | |
| 546 | boolean synchronize = args.getBoolean("synchronize"); |
| 547 | boolean ignore_schedule = args.getBoolean("ignore_schedule"); |
| 548 | boolean ondemand = args.getBoolean("ondemand"); |
| 549 | boolean primary = args.getBoolean("primary"); |
| 550 | boolean notify = args.getBoolean("notify"); |
| 551 | boolean summary = args.getBoolean("summary"); |
| 552 | boolean auto_seen = args.getBoolean("auto_seen"); |
| 553 | boolean leave_server = args.getBoolean("leave_server"); |
| 554 | boolean client_delete = args.getBoolean("client_delete"); |
| 555 | boolean leave_deleted = args.getBoolean("leave_deleted"); |
| 556 | boolean leave_device = args.getBoolean("leave_device"); |
| 557 | String max = args.getString("max"); |
| 558 | String interval = args.getString("interval"); |
| 559 | boolean unmetered = args.getBoolean("unmetered"); |
| 560 | boolean vpn_only = args.getBoolean("vpn_only"); |
| 561 | |
| 562 | long left = args.getLong("left"); |
| 563 | long right = args.getLong("right"); |
| 564 | |
| 565 | boolean pro = ActivityBilling.isPro(context); |
| 566 | boolean should = args.getBoolean("should"); |
| 567 | |
| 568 | int semi = host.indexOf(':'); |
| 569 | if (semi > 0 && host.indexOf(':', semi + 1) < 0) |
| 570 | host = host.substring(0, semi); |
| 571 | |
| 572 | if (TextUtils.isEmpty(host) && !should) |
| 573 | throw new IllegalArgumentException(context.getString(R.string.title_no_host)); |
| 574 | if (TextUtils.isEmpty(port)) |
| 575 | port = (encryption == EmailService.ENCRYPTION_SSL ? "995" : "110"); |
| 576 | if (TextUtils.isEmpty(user) && !insecure && !should) |
| 577 | throw new IllegalArgumentException(context.getString(R.string.title_no_user)); |
| 578 | if (synchronize && TextUtils.isEmpty(password) && !insecure && !should) |
| 579 | throw new IllegalArgumentException(context.getString(R.string.title_no_password)); |
| 580 | if (TextUtils.isEmpty(interval)) |
| 581 | interval = Integer.toString(EntityAccount.DEFAULT_POLL_INTERVAL); |
| 582 | Integer max_messages = (TextUtils.isEmpty(max) ? null : Integer.parseInt(max)); |
| 583 | if (max_messages != null && max_messages == 0) |
nothing calls this directly
no test coverage detected