Skip to content

Commit 05ffc25

Browse files
fredquintanaJean-Baptiste Queru
authored andcommitted
always preserve rows for accounts with type of localhost even if the account manager doesn't know about them
1 parent 478de46 commit 05ffc25

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/java/android/content/AbstractSyncableContentProvider.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,7 @@ protected void deleteRowsForRemovedAccounts(Map<Account, Boolean> accounts, Stri
688688
while (c.moveToNext()) {
689689
String accountName = c.getString(0);
690690
String accountType = c.getString(1);
691+
if ("localhost".equals(accountType)) continue;
691692
if (TextUtils.isEmpty(accountName)) {
692693
continue;
693694
}

0 commit comments

Comments
 (0)