commit | 3c3ea37ba6aeaf582c3c7ceaf13555ec403c6a43 | [log] [tgz] |
---|---|---|
author | Michael W <baddaemon87@gmail.com> | Sun Apr 19 13:39:30 2020 +0000 |
committer | Michael W <baddaemon87@gmail.com> | Sun Apr 19 13:42:33 2020 +0000 |
tree | 0d6a7668bf846fbbd564f58f6d084f819ae3d985 | |
parent | 367f4ef4de5626501831ff1a5ca27195c88028d6 [diff] |
Telephony: Upgrade: Also migrate empty strings * If a string is currently empty but not null, it's not copied over when upgrading the db, e.g. in copySimInfoValuesV24() * Change the isEmpty() check to simply check for not null Change-Id: I8fc98572dd9b6d32c061e87d728ce49d4e063c8c
diff --git a/src/com/android/providers/telephony/TelephonyProvider.java b/src/com/android/providers/telephony/TelephonyProvider.java index dd43c8a..3e1ffcf 100644 --- a/src/com/android/providers/telephony/TelephonyProvider.java +++ b/src/com/android/providers/telephony/TelephonyProvider.java
@@ -1998,7 +1998,7 @@ int columnIndex = c.getColumnIndex(key); if (columnIndex != -1) { String fromCursor = c.getString(columnIndex); - if (!TextUtils.isEmpty(fromCursor)) { + if (fromCursor != null) { cv.put(key, fromCursor); } }