So, `private final static int LENGTH_OF_FOO = 18;`? There must be a rule
against hardcoded values in PWM or Check style, no?
On 15 Mar 2014 15:12, "Robert Painsi" <notifications@github.com> wrote:

> In catroid/src/org/catrobat/catroid/bluetooth/DeviceListActivity.java:
>
> > @@ -70,12 +70,53 @@
> >  	public static final String AUTO_CONNECT = "auto_connect";
> >  	public static final String DEVICE_NAME_AND_ADDRESS = "device_infos";
> >  	public static final String EXTRA_DEVICE_ADDRESS = "device_address";
> > +	private OnItemClickListener deviceClickListener = new OnItemClickListener() {
> > +		@Override
> > +		public void onItemClick(AdapterView<?> av, View view, int arg2, long arg3) {
> > +
> > +			String info = ((TextView) view).getText().toString();
> > +			if (info.lastIndexOf('-') != info.length() - 18) {
>
> Just for information. Styp figured it out last time he looked over the
> code.
>
> There is a list of all visible and found bluetooth devices. Each element
> is an TextView and displays the name and address of the bluetooth device.
> If you click on a TextView, the name and address is parsed from the
> displayed text...
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/Catrobat/Catroid/pull/893/files#r10634839>
> .
>