summaryrefslogtreecommitdiff
path: root/libs/androidfw/ConfigDescription.cpp
diff options
context:
space:
mode:
author Angela Wang <angelala@google.com> 2023-08-31 07:03:31 +0000
committer Angela Wang <angelala@google.com> 2023-08-31 07:07:11 +0000
commitb65d018feab5637a8113988407ec8a9f03b7546d (patch)
treedb5adff26b0ea62afa19291d86fb44c8af5dd44f /libs/androidfw/ConfigDescription.cpp
parent231ac0336d6320a976e1d2df47c654a8e7c5c6d6 (diff)
Rename the misleading variable name in setEnabled()
The meaning of the variable "isEnabled" and the logic part is very misleading in setEnabled() function, which implemented by many profile classes in settingslib. The return value of setConnectionPolicy() called in setEnabled() is true if connectionPolicy is set, false on error. The variable's name maybe better called as "isSuccessful" instead of "isEnabled" for correct meaning of this value. Bug: 254188027 Test: build pass Change-Id: If1026495e70311096c483177b6d00ab714c87227
Diffstat (limited to 'libs/androidfw/ConfigDescription.cpp')
0 files changed, 0 insertions, 0 deletions