From f3487b1cbe590b3e401ffab115736aab1bc7d29f Mon Sep 17 00:00:00 2001 From: sonora Date: Wed, 17 Dec 2014 09:15:22 +0100 Subject: [PATCH] align code for debugging --- .../plus/dashboard/DashDownloadMapsFragment.java | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/dashboard/DashDownloadMapsFragment.java b/OsmAnd/src/net/osmand/plus/dashboard/DashDownloadMapsFragment.java index 8e90f313c0..0bf757ac74 100644 --- a/OsmAnd/src/net/osmand/plus/dashboard/DashDownloadMapsFragment.java +++ b/OsmAnd/src/net/osmand/plus/dashboard/DashDownloadMapsFragment.java @@ -32,12 +32,11 @@ public class DashDownloadMapsFragment extends DashBaseFragment { final View view = getActivity().getLayoutInflater().inflate(R.layout.dash_download_maps_fragment, container, false); Typeface typeface = FontCache.getRobotoMedium(getActivity()); final TextView message =((TextView) view.findViewById(R.id.message)); - final Button local = ((Button) view.findViewById(R.id.local_downloads)); message.setTypeface(typeface); + Button local = ((Button) view.findViewById(R.id.local_downloads)); local.setTypeface(typeface); local.setOnClickListener(new View.OnClickListener() { - @Override public void onClick(View view) { final Intent intent = new Intent(view.getContext(), getMyApplication().getAppCustomization().getDownloadIndexActivity()); @@ -50,18 +49,17 @@ public class DashDownloadMapsFragment extends DashBaseFragment { Button cancelBtn = ((Button) view.findViewById(R.id.download_new_map)); cancelBtn.setTypeface(typeface); cancelBtn.setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View view) { - final Intent intent = new Intent(view.getContext(), getMyApplication().getAppCustomization().getDownloadIndexActivity()); + @Override + public void onClick(View view) { + final Intent intent = new Intent(view.getContext(), getMyApplication().getAppCustomization().getDownloadIndexActivity()); intent.putExtra(DownloadActivity.TAB_TO_OPEN, DownloadActivity.DOWNLOAD_TAB); intent.putExtra(DownloadActivity.SINGLE_TAB, true); getActivity().startActivity(intent); - } - }); + } + }); return view; } - @Override public void onResume() { super.onResume();