Merge change 24138 into eclair

* changes:
  Do not die when printing empty prefs.
This commit is contained in:
Android (Google) Code Review
2009-09-09 21:36:48 -04:00

View File

@@ -1456,8 +1456,10 @@ public class Preference implements Comparable<Preference>, OnDependencyChangeLis
if (!TextUtils.isEmpty(summary)) {
sb.append(summary).append(' ');
}
// Drop the last space
sb.setLength(sb.length() - 1);
if (sb.length() > 0) {
// Drop the last space
sb.setLength(sb.length() - 1);
}
return sb;
}