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

Side by Side Diff: adblockplussbrowser/src/org/adblockplus/sbrowser/contentblocker/WhitelistedWebsitesPreferenceCategory.java

Issue 29436555: Issue 5231 - Use Java 7 features (Closed)
Patch Set: Created May 11, 2017, 6:30 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
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 20 matching lines...) Expand all
31 import org.adblockplus.adblockplussbrowser.R; 31 import org.adblockplus.adblockplussbrowser.R;
32 import org.adblockplus.sbrowser.contentblocker.engine.Engine; 32 import org.adblockplus.sbrowser.contentblocker.engine.Engine;
33 import org.adblockplus.sbrowser.contentblocker.engine.EngineService; 33 import org.adblockplus.sbrowser.contentblocker.engine.EngineService;
34 34
35 import java.util.Collections; 35 import java.util.Collections;
36 import java.util.Set; 36 import java.util.Set;
37 import java.util.TreeSet; 37 import java.util.TreeSet;
38 38
39 public class WhitelistedWebsitesPreferenceCategory extends PreferenceCategory 39 public class WhitelistedWebsitesPreferenceCategory extends PreferenceCategory
40 { 40 {
41 private final Set<String> whitelistedWebsites = new TreeSet<String>(); 41 private final Set<String> whitelistedWebsites = new TreeSet<>();
42 private Engine engine; 42 private Engine engine;
43 43
44 public WhitelistedWebsitesPreferenceCategory(Context context, AttributeSet att rs) 44 public WhitelistedWebsitesPreferenceCategory(Context context, AttributeSet att rs)
45 { 45 {
46 super(context, attrs); 46 super(context, attrs);
47 // This is required to remove the title TextView of the PreferenceCategory 47 // This is required to remove the title TextView of the PreferenceCategory
48 this.setLayoutResource(R.layout.empty_view); 48 this.setLayoutResource(R.layout.empty_view);
49 } 49 }
50 50
51 @Override 51 @Override
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 { 185 {
186 if (WhitelistedWebsitePreference.this.onDeleteClickListener != null) 186 if (WhitelistedWebsitePreference.this.onDeleteClickListener != null)
187 { 187 {
188 WhitelistedWebsitePreference.this.onDeleteClickListener.onClick(dial og, which); 188 WhitelistedWebsitePreference.this.onDeleteClickListener.onClick(dial og, which);
189 } 189 }
190 } 190 }
191 }); 191 });
192 } 192 }
193 } 193 }
194 } 194 }
OLDNEW

Powered by Google App Engine
This is Rietveld