aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSammysHP <sven@sammyshp.de>2012-03-09 12:47:16 +0100
committerSammysHP <sven@sammyshp.de>2012-03-09 12:47:16 +0100
commit10e4c8380761a9a02cbf1b0b2b7ed949b6327732 (patch)
treef6f4eac4ae0811037fd5a3c44d5d3308fec49757
parente6a4214b304f3441f46bf75be85b1f538d3e2d7e (diff)
downloadcgeo-10e4c8380761a9a02cbf1b0b2b7ed949b6327732.zip
cgeo-10e4c8380761a9a02cbf1b0b2b7ed949b6327732.tar.gz
cgeo-10e4c8380761a9a02cbf1b0b2b7ed949b6327732.tar.bz2
Remove debug code
-rw-r--r--main/res/layout/cacheview_details.xml31
-rw-r--r--main/src/cgeo/geocaching/CacheDetailActivity.java23
-rw-r--r--main/src/cgeo/geocaching/Settings.java15
3 files changed, 0 insertions, 69 deletions
diff --git a/main/res/layout/cacheview_details.xml b/main/res/layout/cacheview_details.xml
index 3da0789..4baf5c2 100644
--- a/main/res/layout/cacheview_details.xml
+++ b/main/res/layout/cacheview_details.xml
@@ -136,37 +136,6 @@
</RelativeLayout>
</LinearLayout>
- <!-- Debug info Box -->
-
- <LinearLayout
- android:id="@+id/debug_box"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical" >
-
- <View
- style="@style/separator_horizontal"
- android:layout_marginBottom="9dp"
- android:layout_marginTop="9dp" />
-
- <RelativeLayout
- android:layout_width="fill_parent"
- android:layout_height="wrap_content" >
-
- <TextView
- android:id="@+id/debug_text"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:layout_alignParentLeft="true"
- android:layout_gravity="left"
- android:layout_marginLeft="6dip"
- android:layout_marginRight="130dip"
- android:paddingRight="3dip"
- android:textColor="?text_color"
- android:textSize="14dip" />
- </RelativeLayout>
- </LinearLayout>
-
<!-- License Box -->
<LinearLayout
diff --git a/main/src/cgeo/geocaching/CacheDetailActivity.java b/main/src/cgeo/geocaching/CacheDetailActivity.java
index 8a8fa0d..eb1ec40 100644
--- a/main/src/cgeo/geocaching/CacheDetailActivity.java
+++ b/main/src/cgeo/geocaching/CacheDetailActivity.java
@@ -1,7 +1,6 @@
package cgeo.geocaching;
import cgeo.calendar.ICalendar;
-import cgeo.geocaching.cgData.StorageLocation;
import cgeo.geocaching.activity.AbstractActivity;
import cgeo.geocaching.activity.Progress;
import cgeo.geocaching.apps.cache.GeneralAppsFactory;
@@ -1521,8 +1520,6 @@ public class CacheDetailActivity extends AbstractActivity {
buttonWatchlistRemove.setOnClickListener(new RemoveFromWatchlistClickListener());
updateWatchlistBox();
- updateDebugInfos();
-
// data license
IConnector connector = ConnectorFactory.getConnector(cache);
if (connector != null) {
@@ -1877,26 +1874,6 @@ public class CacheDetailActivity extends AbstractActivity {
offlineRefresh.setClickable(true);
}
- private void updateDebugInfos() {
-
- if (Settings.isDebugInfos()) {
- ((LinearLayout) view.findViewById(R.id.debug_box)).setVisibility(View.VISIBLE);
- final TextView internalsText = (TextView) view.findViewById(R.id.debug_text);
-
- String sl = "Storage location: ";
- if (cache.getStorageLocation().contains(StorageLocation.CACHE)) {
- sl += "Cache ";
- }
- if (cache.getStorageLocation().contains(StorageLocation.DATABASE)) {
- sl += "Database (" + cache.getListId() + ")";
- }
-
- internalsText.setText(sl);
- } else {
- ((LinearLayout) view.findViewById(R.id.debug_box)).setVisibility(View.GONE);
- }
- }
-
private class PreviewMapTask extends AsyncTask<Void, Void, BitmapDrawable> {
@Override
protected BitmapDrawable doInBackground(Void... params) {
diff --git a/main/src/cgeo/geocaching/Settings.java b/main/src/cgeo/geocaching/Settings.java
index 40ad96d..7479227 100644
--- a/main/src/cgeo/geocaching/Settings.java
+++ b/main/src/cgeo/geocaching/Settings.java
@@ -76,7 +76,6 @@ public final class Settings {
private static final String KEY_COOKIE_STORE = "cookiestore";
private static final String KEY_OPEN_LAST_DETAILS_PAGE = "opendetailslastpage";
private static final String KEY_LAST_DETAILS_PAGE = "lastdetailspage";
- private static final String KEY_DEBUG_INFORMATIONS = "debuginfos";
private static final String KEY_DEFAULT_NAVIGATION_TOOL = "defaultNavigationTool";
private static final String KEY_DEFAULT_NAVIGATION_TOOL_2 = "defaultNavigationTool2";
private static final String KEY_LIVE_MAP_STRATEGY = "livemapstrategy";
@@ -974,20 +973,6 @@ public final class Settings {
});
}
- public static boolean isDebugInfos() {
- return sharedPrefs.getBoolean(KEY_DEBUG_INFORMATIONS, false);
- }
-
- public static void setDebugInfos(final boolean showDebugInfos) {
- editSharedSettings(new PrefRunnable() {
-
- @Override
- public void edit(Editor edit) {
- edit.putBoolean(KEY_DEBUG_INFORMATIONS, showDebugInfos);
- }
- });
- }
-
public static int getDefaultNavigationTool() {
return sharedPrefs.getInt(KEY_DEFAULT_NAVIGATION_TOOL, 0);
}