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-2015 Eyeo GmbH | 3 * Copyright (C) 2006-2015 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 | 72 |
73 this.setEnabled(false); | 73 this.setEnabled(false); |
74 this.setShouldDisableView(true); | 74 this.setShouldDisableView(true); |
75 | 75 |
76 super.onAttachedToActivity(); | 76 super.onAttachedToActivity(); |
77 | 77 |
78 this.progressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER); | 78 this.progressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER); |
79 this.progressDialog.setMessage(this.getContext().getString(R.string.abb_adbl
ocking_waiting)); | 79 this.progressDialog.setMessage(this.getContext().getString(R.string.abb_adbl
ocking_waiting)); |
80 this.progressDialog.show(); | 80 this.progressDialog.show(); |
81 | 81 |
82 AddOnBridge.handlerPost(new Runnable() | 82 AddOnBridge.postToHandler(new Runnable() |
83 { | 83 { |
84 @Override | 84 @Override |
85 public void run() | 85 public void run() |
86 { | 86 { |
87 initSubscriptions(); | 87 initSubscriptions(); |
88 ThreadUtils.postToUiThread(new Runnable() | 88 ThreadUtils.postToUiThread(new Runnable() |
89 { | 89 { |
90 @Override | 90 @Override |
91 public void run() | 91 public void run() |
92 { | 92 { |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 final boolean enable = ((Boolean) newValue).booleanValue(); | 171 final boolean enable = ((Boolean) newValue).booleanValue(); |
172 SubscriptionPreferenceCategory.subscriptionContainer.changeSubscriptionS
tate( | 172 SubscriptionPreferenceCategory.subscriptionContainer.changeSubscriptionS
tate( |
173 cbp.getKey(), | 173 cbp.getKey(), |
174 enable); | 174 enable); |
175 } | 175 } |
176 return true; | 176 return true; |
177 } | 177 } |
178 } | 178 } |
179 } | 179 } |
180 | 180 |
LEFT | RIGHT |