| OLD | NEW |
| 1 /* | 1 /* |
| 2 * This file is part of Adblock Plus <https://adblockplus.org/>, | 2 * This file is part of Adblock Plus <https://adblockplus.org/>, |
| 3 * Copyright (C) 2006-present eyeo GmbH | 3 * Copyright (C) 2006-present eyeo GmbH |
| 4 * | 4 * |
| 5 * Adblock Plus is free software: you can redistribute it and/or modify | 5 * Adblock Plus is free software: you can redistribute it and/or modify |
| 6 * it under the terms of the GNU General Public License version 3 as | 6 * it under the terms of the GNU General Public License version 3 as |
| 7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
| 8 * | 8 * |
| 9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 { | 309 { |
| 310 this.filterChangeCallback.dispose(); | 310 this.filterChangeCallback.dispose(); |
| 311 this.filterChangeCallback = null; | 311 this.filterChangeCallback = null; |
| 312 } | 312 } |
| 313 | 313 |
| 314 if (this.showNotificationCallback != null) | 314 if (this.showNotificationCallback != null) |
| 315 { | 315 { |
| 316 this.showNotificationCallback.dispose(); | 316 this.showNotificationCallback.dispose(); |
| 317 this.showNotificationCallback = null; | 317 this.showNotificationCallback = null; |
| 318 } | 318 } |
| 319 | |
| 320 if (this.webRequest != null) | |
| 321 { | |
| 322 this.webRequest.dispose(); | |
| 323 this.webRequest = null; | |
| 324 } | |
| 325 } | 319 } |
| 326 | 320 |
| 327 public boolean isFirstRun() | 321 public boolean isFirstRun() |
| 328 { | 322 { |
| 329 return this.filterEngine.isFirstRun(); | 323 return this.filterEngine.isFirstRun(); |
| 330 } | 324 } |
| 331 | 325 |
| 332 public boolean isElemhideEnabled() | 326 public boolean isElemhideEnabled() |
| 333 { | 327 { |
| 334 return this.elemhideEnabled; | 328 return this.elemhideEnabled; |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 622 public void setWhitelistedDomains(List<String> domains) | 616 public void setWhitelistedDomains(List<String> domains) |
| 623 { | 617 { |
| 624 this.whitelistedDomains = domains; | 618 this.whitelistedDomains = domains; |
| 625 } | 619 } |
| 626 | 620 |
| 627 public List<String> getWhitelistedDomains() | 621 public List<String> getWhitelistedDomains() |
| 628 { | 622 { |
| 629 return whitelistedDomains; | 623 return whitelistedDomains; |
| 630 } | 624 } |
| 631 } | 625 } |
| OLD | NEW |