OLD | NEW |
1 /* | 1 /* |
2 * This file is part of the Adblock Plus, | 2 * This file is part of the Adblock Plus, |
3 * Copyright (C) 2006-2012 Eyeo GmbH | 3 * Copyright (C) 2006-2012 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 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
702 } | 702 } |
703 catch (IOException e) | 703 catch (IOException e) |
704 { | 704 { |
705 // TODO Auto-generated catch block | 705 // TODO Auto-generated catch block |
706 Log.e(TAG, e.getMessage(), e); | 706 Log.e(TAG, e.getMessage(), e); |
707 } | 707 } |
708 | 708 |
709 // Set crash handler | 709 // Set crash handler |
710 Thread.setDefaultUncaughtExceptionHandler(new CrashHandler(this)); | 710 Thread.setDefaultUncaughtExceptionHandler(new CrashHandler(this)); |
711 | 711 |
712 if (!getResources().getBoolean(R.bool.def_release)) | 712 // Initiate update check |
713 { | 713 scheduleUpdater(0); |
714 // Initiate update check | |
715 scheduleUpdater(0); | |
716 } | |
717 } | 714 } |
718 | 715 |
719 /** | 716 /** |
720 * Handler for showing toast messages from JS code. | 717 * Handler for showing toast messages from JS code. |
721 */ | 718 */ |
722 private static final Handler messageHandler = new Handler() | 719 private static final Handler messageHandler = new Handler() |
723 { | 720 { |
724 public void handleMessage(Message msg) | 721 public void handleMessage(Message msg) |
725 { | 722 { |
726 if (msg.what == MSG_TOAST) | 723 if (msg.what == MSG_TOAST) |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1147 } | 1144 } |
1148 return result; | 1145 return result; |
1149 } | 1146 } |
1150 | 1147 |
1151 protected void onProgressUpdate(Integer... progress) | 1148 protected void onProgressUpdate(Integer... progress) |
1152 { | 1149 { |
1153 Log.d("HTTP", "Progress: " + progress[0].intValue()); | 1150 Log.d("HTTP", "Progress: " + progress[0].intValue()); |
1154 } | 1151 } |
1155 } | 1152 } |
1156 } | 1153 } |
OLD | NEW |