Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java

Issue 29389555: Issue 5010 - Allow to preload subscription files (Closed)
Left Patch Set: diego's suggestions 2 Created March 30, 2017, 10:26 a.m.
Right Patch Set: force downloading actually Created March 30, 2017, 10:12 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
LEFTRIGHT
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
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
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 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld