OLD | NEW |
1 /* | 1 /* |
2 * This file is part of Adblock Plus <http://adblockplus.org/>, | 2 * This file is part of Adblock Plus <http://adblockplus.org/>, |
3 * Copyright (C) 2006-2014 Eyeo GmbH | 3 * Copyright (C) 2006-2014 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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 final Uri uri = Uri.parse(getString(R.string.configuring_url)); | 277 final Uri uri = Uri.parse(getString(R.string.configuring_url)); |
278 final Intent intent = new Intent(Intent.ACTION_VIEW, uri); | 278 final Intent intent = new Intent(Intent.ACTION_VIEW, uri); |
279 startActivity(intent); | 279 startActivity(intent); |
280 return true; | 280 return true; |
281 case R.id.menu_about: | 281 case R.id.menu_about: |
282 showDialog(ABOUT_DIALOG); | 282 showDialog(ABOUT_DIALOG); |
283 return true; | 283 return true; |
284 case R.id.menu_advanced: | 284 case R.id.menu_advanced: |
285 startActivity(new Intent(this, AdvancedPreferences.class)); | 285 startActivity(new Intent(this, AdvancedPreferences.class)); |
286 return true; | 286 return true; |
287 case R.id.menu_update: | |
288 AdblockPlus.getApplication().checkUpdates(); | |
289 return true; | |
290 default: | 287 default: |
291 return super.onOptionsItemSelected(item); | 288 return super.onOptionsItemSelected(item); |
292 } | 289 } |
293 } | 290 } |
294 | 291 |
295 private void setAcceptableAdsEnabled(final boolean enabled) | 292 private void setAcceptableAdsEnabled(final boolean enabled) |
296 { | 293 { |
297 final CheckBoxPreference acceptableAdsPreference = | 294 final CheckBoxPreference acceptableAdsPreference = |
298 (CheckBoxPreference) findPreference(getString(R.string.pref_acceptablead
s)); | 295 (CheckBoxPreference) findPreference(getString(R.string.pref_acceptablead
s)); |
299 acceptableAdsPreference.setChecked(enabled); | 296 acceptableAdsPreference.setChecked(enabled); |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
573 subscriptionSummary = state.getString("subscriptionSummary"); | 570 subscriptionSummary = state.getString("subscriptionSummary"); |
574 } | 571 } |
575 | 572 |
576 @Override | 573 @Override |
577 protected void onSaveInstanceState(final Bundle outState) | 574 protected void onSaveInstanceState(final Bundle outState) |
578 { | 575 { |
579 outState.putString("subscriptionSummary", subscriptionSummary); | 576 outState.putString("subscriptionSummary", subscriptionSummary); |
580 super.onSaveInstanceState(outState); | 577 super.onSaveInstanceState(outState); |
581 } | 578 } |
582 } | 579 } |
OLD | NEW |