Merge "storaged: Fix bug in empty check" am: 46de7add81
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1915078 Change-Id: I14b3bfa86cffc6aa2b33fe48196e4089de1e14a4
This commit is contained in:
commit
2ae516ef50
|
@ -328,7 +328,7 @@ void health_storage_info_t::report() {
|
|||
vector<StorageInfo> halInfos;
|
||||
auto ret = mHealth->getStorageInfo(&halInfos);
|
||||
if (ret.isOk()) {
|
||||
if (halInfos.size() == 0) {
|
||||
if (halInfos.size() != 0) {
|
||||
set_values_from_hal_storage_info(halInfos[0]);
|
||||
publish();
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue