From 8ddb472a3fc4010fa9f104a4878db2bbd997d860 Mon Sep 17 00:00:00 2001 From: Lukas Niemeier Date: Mon, 3 Jun 2013 22:16:25 +0200 Subject: [PATCH] # formatting --- .../app/ui/adapters/NamedArrayAdapter.java | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/mobile/com.sap.sailing.racecommittee.app/src/com/sap/sailing/racecommittee/app/ui/adapters/NamedArrayAdapter.java b/mobile/com.sap.sailing.racecommittee.app/src/com/sap/sailing/racecommittee/app/ui/adapters/NamedArrayAdapter.java index a0d093f1ae6..fadb4090f14 100644 --- a/mobile/com.sap.sailing.racecommittee.app/src/com/sap/sailing/racecommittee/app/ui/adapters/NamedArrayAdapter.java +++ b/mobile/com.sap.sailing.racecommittee.app/src/com/sap/sailing/racecommittee/app/ui/adapters/NamedArrayAdapter.java @@ -14,29 +14,29 @@ import com.sap.sailing.racecommittee.app.R; /** * @author D053502 - * + * */ public class NamedArrayAdapter extends ArrayAdapter { - - public NamedArrayAdapter(Context context, int textViewResourceId, List namedList) { - super(context, textViewResourceId, namedList); - } - - @Override - public View getView(int position, View convertView, ViewGroup parent) { - View view = convertView; - if (convertView == null) { - LayoutInflater inflater = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE); - view = inflater.inflate(R.layout.welter_one_row_no_image, /* view group */ null); - } + public NamedArrayAdapter(Context context, int textViewResourceId, List namedList) { + super(context, textViewResourceId, namedList); + } - T item = getItem(position); - TextView title = (TextView) view.findViewById(R.id.Welter_Cell_OneRowNoImage_txtTitle); - title.setText(item.getName()); - title.setAlpha(isEnabled(position) ? 1.0f : 0.2f); + @Override + public View getView(int position, View convertView, ViewGroup parent) { + View view = convertView; + if (convertView == null) { - return view; - } + LayoutInflater inflater = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE); + view = inflater.inflate(R.layout.welter_one_row_no_image, /* view group */null); + } + + T item = getItem(position); + TextView title = (TextView) view.findViewById(R.id.Welter_Cell_OneRowNoImage_txtTitle); + title.setText(item.getName()); + title.setAlpha(isEnabled(position) ? 1.0f : 0.2f); + + return view; + } }