Use TextUtils.isEmpty instead of null and length check
This commit is contained in:
parent
46eb6ee3b4
commit
4a92a37df2
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user