| Index: mobile/android/base/java/org/adblockplus/browser/SubscriptionPreferenceCategory.java |
| =================================================================== |
| --- a/mobile/android/base/java/org/adblockplus/browser/SubscriptionPreferenceCategory.java |
| +++ b/mobile/android/base/java/org/adblockplus/browser/SubscriptionPreferenceCategory.java |
| @@ -48,21 +48,21 @@ |
| super(context, attrs); |
| } |
| public SubscriptionPreferenceCategory(Context context, AttributeSet attrs, int defStyleAttr) |
| { |
| super(context, attrs, defStyleAttr); |
| } |
| - private static synchronized void initSubscriptions() |
| + private static synchronized void initSubscriptions(Context context) |
| { |
| if (subscriptionContainer == null) |
| { |
| - subscriptionContainer = SubscriptionContainer.create(); |
| + subscriptionContainer = SubscriptionContainer.create(context); |
| } |
| else |
| { |
| subscriptionContainer.refresh(); |
| } |
| } |
| @Override |
| @@ -72,22 +72,22 @@ |
| this.setEnabled(false); |
| this.setShouldDisableView(true); |
| super.onAttachedToActivity(); |
| showProgressDialog(); |
| - AddOnBridge.postToHandler(new Runnable() |
| + ExtensionBridge.postToHandler(new Runnable() |
| { |
| @Override |
| public void run() |
| { |
| - initSubscriptions(); |
| + initSubscriptions(getContext()); |
| subscriptionContainer.addSubscriptionListener( |
| SubscriptionPreferenceCategory.this.subscriptionChangeListener); |
| ThreadUtils.postToUiThread(new Runnable() |
| { |
| @Override |
| public void run() |
| { |
| @@ -201,9 +201,8 @@ |
| { |
| @Override |
| public void onSubscriptionUpdated() |
| { |
| SubscriptionPreferenceCategory.this.refreshEntries(); |
| } |
| } |
| } |
| - |