Merge "Use TextUtils.isEmpty to simplify code."