CR: Replace String.isEmpty() with TextUtils.isEmpty(String).
String.isEmpty() is only supported in API v9, whereas we target API v8 for now.
This commit is contained in:
parent
0b3b32dab3
commit
ee7761e1af
@ -390,7 +390,7 @@ public class RepoDetailsActivity extends ActionBarActivity {
|
||||
final String name = nameInput.getText().toString();
|
||||
final String password = passwordInput.getText().toString();
|
||||
|
||||
if (name != null && !name.isEmpty()) {
|
||||
if (!TextUtils.isEmpty(name)) {
|
||||
|
||||
final ContentValues values = new ContentValues(2);
|
||||
values.put(RepoProvider.DataColumns.USERNAME, name);
|
||||
|
Loading…
x
Reference in New Issue
Block a user