Merge change 24138 into eclair
* changes: Do not die when printing empty prefs.
This commit is contained in:
@@ -1456,8 +1456,10 @@ public class Preference implements Comparable<Preference>, OnDependencyChangeLis
|
|||||||
if (!TextUtils.isEmpty(summary)) {
|
if (!TextUtils.isEmpty(summary)) {
|
||||||
sb.append(summary).append(' ');
|
sb.append(summary).append(' ');
|
||||||
}
|
}
|
||||||
// Drop the last space
|
if (sb.length() > 0) {
|
||||||
sb.setLength(sb.length() - 1);
|
// Drop the last space
|
||||||
|
sb.setLength(sb.length() - 1);
|
||||||
|
}
|
||||||
return sb;
|
return sb;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user