| Index: src/org/adblockplus/android/Preferences.java |
| =================================================================== |
| --- a/src/org/adblockplus/android/Preferences.java |
| +++ b/src/org/adblockplus/android/Preferences.java |
| @@ -217,7 +217,14 @@ |
| public void onPause() |
| { |
| super.onPause(); |
| - unregisterReceiver(receiver); |
| + try |
| + { |
| + unregisterReceiver(receiver); |
| + } |
| + catch (IllegalArgumentException e) |
| + { |
| + // ignore - it is thrown if receiver is not registered but it can not be true in normal conditions |
| + } |
| unbindService(proxyServiceConnection); |
| proxyService = null; |
| } |