Revision 576afdf9
Added by Leszek Koltunski over 1 year ago
src/main/java/org/distorted/bandaged/BandagedCreatorScreen.java | ||
---|---|---|
303 | 303 |
|
304 | 304 |
private String generateObjectStrings() |
305 | 305 |
{ |
306 |
String result = "";
|
|
306 |
StringBuilder result = new StringBuilder();
|
|
307 | 307 |
int numViews = mViews.size(); |
308 | 308 |
|
309 | 309 |
for( int v=0; v<numViews; v++ ) |
310 | 310 |
{ |
311 | 311 |
BandagedCreatorObjectView view = mViews.get(v); |
312 | 312 |
String name = view.getName(); |
313 |
|
|
314 |
if( v>0 ) result += " "; |
|
315 |
result += name; |
|
313 |
if( v>0 ) result.append(' '); |
|
314 |
result.append(name); |
|
316 | 315 |
} |
317 | 316 |
|
318 |
return result; |
|
317 |
return result.toString();
|
|
319 | 318 |
} |
320 | 319 |
|
321 | 320 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
327 | 326 |
|
328 | 327 |
if( view!=null ) ((TextView) view).setTextSize(TypedValue.COMPLEX_UNIT_PX,mTextSize); |
329 | 328 |
|
330 |
if( spinnerID==R.id.bandagedCreatorX ) |
|
331 |
{ |
|
332 |
mX = pos; |
|
333 |
} |
|
334 |
else if( spinnerID==R.id.bandagedCreatorY ) |
|
335 |
{ |
|
336 |
mY = pos; |
|
337 |
} |
|
338 |
else if( spinnerID==R.id.bandagedCreatorZ ) |
|
339 |
{ |
|
340 |
mZ = pos; |
|
341 |
} |
|
329 |
if( spinnerID==R.id.bandagedCreatorX ) mX = pos; |
|
330 |
else if( spinnerID==R.id.bandagedCreatorY ) mY = pos; |
|
331 |
else if( spinnerID==R.id.bandagedCreatorZ ) mZ = pos; |
|
342 | 332 |
|
343 | 333 |
changeObject(); |
344 | 334 |
} |
Also available in: Unified diff
Workaround (real reason not found) for the issue when furious touching the screen in the BandagedCreator could sometimes leave a cubit permanently lit.