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

Delta Between Two Patch Sets: mobile/android/base/java/org/adblockplus/browser/SubscriptionPreferenceCategory.java

Issue 29863604: Issue 6865 - Update ABP dependency to version 3.2 (Closed)
Left Patch Set: Removing allowed contexts Created Aug. 28, 2018, 5:08 p.m.
Right Patch Set: Adjusting code style Created Jan. 16, 2019, 1:45 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-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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 public SubscriptionPreferenceCategory(Context context, AttributeSet attrs) 46 public SubscriptionPreferenceCategory(Context context, AttributeSet attrs)
47 { 47 {
48 super(context, attrs); 48 super(context, attrs);
49 } 49 }
50 50
51 public SubscriptionPreferenceCategory(Context context, AttributeSet attrs, int defStyleAttr) 51 public SubscriptionPreferenceCategory(Context context, AttributeSet attrs, int defStyleAttr)
52 { 52 {
53 super(context, attrs, defStyleAttr); 53 super(context, attrs, defStyleAttr);
54 } 54 }
55 55
56 private static synchronized void initSubscriptions(Context context) 56 private static synchronized void initSubscriptions(final Context context)
57 { 57 {
58 if (subscriptionContainer == null) 58 if (subscriptionContainer == null)
59 { 59 {
60 subscriptionContainer = SubscriptionContainer.create(context); 60 subscriptionContainer = SubscriptionContainer.create(context);
61 } 61 }
62 else 62 else
63 { 63 {
64 subscriptionContainer.refresh(); 64 subscriptionContainer.refresh();
65 } 65 }
66 } 66 }
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 199
200 private class SubscriptionChangeListener implements SubscriptionContainer.Subs criptionListener 200 private class SubscriptionChangeListener implements SubscriptionContainer.Subs criptionListener
201 { 201 {
202 @Override 202 @Override
203 public void onSubscriptionUpdated() 203 public void onSubscriptionUpdated()
204 { 204 {
205 SubscriptionPreferenceCategory.this.refreshEntries(); 205 SubscriptionPreferenceCategory.this.refreshEntries();
206 } 206 }
207 } 207 }
208 } 208 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld