| LEFT | RIGHT |
| 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-2016 Eyeo GmbH | 3 * Copyright (C) 2006-2016 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 | 92 |
| 93 public AdblockSettingsStorage getStorage() | 93 public AdblockSettingsStorage getStorage() |
| 94 { | 94 { |
| 95 return storage; | 95 return storage; |
| 96 } | 96 } |
| 97 | 97 |
| 98 /** | 98 /** |
| 99 * Init with context | 99 * Init with context |
| 100 * @param context application context | 100 * @param context application context |
| 101 * @param developmentBuild debug or release? | 101 * @param developmentBuild debug or release? |
| 102 * @param preferenceName Shared Preferences name to store adlock settings | 102 * @param preferenceName Shared Preferences name to store adblock settings |
| 103 */ | 103 */ |
| 104 public AdblockHelper init(Context context, boolean developmentBuild, String pr
eferenceName) | 104 public AdblockHelper init(Context context, boolean developmentBuild, String pr
eferenceName) |
| 105 { | 105 { |
| 106 this.context = context.getApplicationContext(); | 106 this.context = context.getApplicationContext(); |
| 107 this.developmentBuild = developmentBuild; | 107 this.developmentBuild = developmentBuild; |
| 108 this.settingsPreferenceName = preferenceName; | 108 this.settingsPreferenceName = preferenceName; |
| 109 return this; | 109 return this; |
| 110 } | 110 } |
| 111 | 111 |
| 112 /** | 112 /** |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 engineCreated.countDown(); | 262 engineCreated.countDown(); |
| 263 engineCreated = null; | 263 engineCreated = null; |
| 264 } | 264 } |
| 265 else | 265 else |
| 266 { | 266 { |
| 267 disposeAdblock(); | 267 disposeAdblock(); |
| 268 } | 268 } |
| 269 } | 269 } |
| 270 } | 270 } |
| 271 } | 271 } |
| LEFT | RIGHT |