Merge "Attempt to fix bug where OwnerInfo gets lost." into nyc-dev am: 042a68ae32

am: f0060709ff

* commit 'f0060709ffc1435f4c70b7f4982064c32dfe76e6':
  Attempt to fix bug where OwnerInfo gets lost.
This commit is contained in:
Jim Miller
2016-03-03 01:46:59 +00:00
committed by android-build-merger

View File

@@ -345,9 +345,9 @@ public class LockSettingsService extends ILockSettings.Stub {
final int userId = users.get(user).id;
final String OWNER_INFO = Secure.LOCK_SCREEN_OWNER_INFO;
String ownerInfo = Settings.Secure.getStringForUser(cr, OWNER_INFO, userId);
if (ownerInfo != null) {
if (!TextUtils.isEmpty(ownerInfo)) {
setString(OWNER_INFO, ownerInfo, userId);
Settings.Secure.putStringForUser(cr, ownerInfo, "", userId);
Settings.Secure.putStringForUser(cr, OWNER_INFO, "", userId);
}
// Migrate owner info enabled. Note there was a bug where older platforms only