align code for debugging

This commit is contained in:
sonora 2014-12-17 09:15:22 +01:00
parent 07ae5372f0
commit f3487b1cbe

View file

@ -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();