am 5ebaf106: merge from open-source master
Merge commit '5ebaf10693725c9dc48219c3c65945b84d74692f' into kraken * commit '5ebaf10693725c9dc48219c3c65945b84d74692f': Fix broken logic in SettingsProvider.parseProviderList.
This commit is contained in:
committed by
Android Git Automerger
commit
2b32afd07d
@@ -399,9 +399,12 @@ public class SettingsProvider extends ContentProvider {
|
|||||||
}
|
}
|
||||||
} else if (prefix == '-' && index >= 0) {
|
} else if (prefix == '-' && index >= 0) {
|
||||||
// remove the provider from the list if present
|
// remove the provider from the list if present
|
||||||
// remove leading and trailing commas
|
// remove leading or trailing comma
|
||||||
if (index > 0) index--;
|
if (index > 0) {
|
||||||
if (end < providers.length()) end++;
|
index--;
|
||||||
|
} else if (end < providers.length()) {
|
||||||
|
end++;
|
||||||
|
}
|
||||||
|
|
||||||
newProviders = providers.substring(0, index);
|
newProviders = providers.substring(0, index);
|
||||||
if (end < providers.length()) {
|
if (end < providers.length()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user