some more code formatting

This commit is contained in:
Philipp Schaefer 2013-06-09 02:53:03 +02:00
parent c0058f5580
commit 391a8770d8

View File

@ -19,13 +19,13 @@ public class IITC_PluginPreference extends CheckBoxPreference {
} }
protected void makeMultiline(View view) { protected void makeMultiline(View view) {
if ( view instanceof ViewGroup) { if (view instanceof ViewGroup) {
ViewGroup grp=(ViewGroup)view; ViewGroup grp = (ViewGroup) view;
for ( int index = 0; index < grp.getChildCount(); index++) { for (int index = 0; index < grp.getChildCount(); index++) {
makeMultiline(grp.getChildAt(index)); makeMultiline(grp.getChildAt(index));
} }
} else if (view instanceof TextView) { } else if (view instanceof TextView) {
TextView t = (TextView)view; TextView t = (TextView) view;
t.setSingleLine(false); t.setSingleLine(false);
t.setEllipsize(null); t.setEllipsize(null);
} }