Use TextUtils.isEmpty instead of null and length check

This commit is contained in:
Peter Serwylo 2016-11-30 23:34:39 +11:00
parent 46eb6ee3b4
commit 4a92a37df2

View File

@ -802,7 +802,7 @@ public class AppDetailsRecyclerViewAdapter
// Use this function instead of a trim() as that would require
// converting to String and thus losing formatting (e.g. bold).
private static CharSequence trimNewlines(CharSequence s) {
if (s == null || s.length() < 1) {
if (TextUtils.isEmpty(s)) {
return s;
}
int i;