From 4c768708ae2bdd59f9327a400c2d2feb3c431637 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Sun, 12 Apr 2015 15:48:52 +0300 Subject: [PATCH] Fix compilation issue --- .../development/SettingsDevelopmentActivity.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/development/SettingsDevelopmentActivity.java b/OsmAnd/src/net/osmand/plus/development/SettingsDevelopmentActivity.java index eefbf439c0..609c84a21e 100644 --- a/OsmAnd/src/net/osmand/plus/development/SettingsDevelopmentActivity.java +++ b/OsmAnd/src/net/osmand/plus/development/SettingsDevelopmentActivity.java @@ -98,29 +98,29 @@ public class SettingsDevelopmentActivity extends SettingsBaseActivity { //pref.setEnabled(false); cat.addPreference(pref); - final pref = new Preference(this); - pref.setTitle(R.string.agps_info); + final Preference agpspref = new Preference(this); + agpspref.setTitle(R.string.agps_info); if (settings.AGPS_DATA_LAST_TIME_DOWNLOADED.get() != 0L) { SimpleDateFormat prt = new SimpleDateFormat("yyyy-MM-dd HH:mm"); - pref.setSummary(getString(R.string.agps_data_last_downloaded, prt.format(settings.AGPS_DATA_LAST_TIME_DOWNLOADED.get()))); + agpspref.setSummary(getString(R.string.agps_data_last_downloaded, prt.format(settings.AGPS_DATA_LAST_TIME_DOWNLOADED.get()))); } else { - pref.setSummary(getString(R.string.agps_data_last_downloaded, "--")); + agpspref.setSummary(getString(R.string.agps_data_last_downloaded, "--")); } - pref.setSelectable(true); + agpspref.setSelectable(true); //setEnabled(false) creates bad readability on some devices //pref.setEnabled(false); - pref.setOnPreferenceClickListener(new OnPreferenceClickListener() { + agpspref.setOnPreferenceClickListener(new OnPreferenceClickListener() { @Override public boolean onPreferenceClick(Preference preference) { if(getMyApplication().getSettings().isInternetConnectionAvailable(true)) { getMyApplication().getLocationProvider().redownloadAGPS(); SimpleDateFormat prt = new SimpleDateFormat("yyyy-MM-dd HH:mm"); - pref.setSummary(getString(R.string.agps_data_last_downloaded, prt.format(settings.AGPS_DATA_LAST_TIME_DOWNLOADED.get()))); + agpspref.setSummary(getString(R.string.agps_data_last_downloaded, prt.format(settings.AGPS_DATA_LAST_TIME_DOWNLOADED.get()))); } return true; } }); - cat.addPreference(pref); + cat.addPreference(agpspref); SunriseSunset sunriseSunset = getMyApplication().getDaynightHelper().getSunriseSunset(); pref = new Preference(this);