commit | e1f78fdc4d2d453c2f74dac16e1883ddd37dd921 | [log] [tgz] |
---|---|---|
author | Yoshitaka Ishida <yoshitaka.ishida@sony.com> | Wed Apr 25 12:35:33 2018 -0700 |
committer | android-build-merger <android-build-merger@google.com> | Wed Apr 25 12:35:33 2018 -0700 |
tree | 515701ecf4854448cf4ce23304c1696e10e99709 | |
parent | 43953befa360127db58111033f7954c9ac63abbc [diff] | |
parent | 128936fb266af57d19e1faced52d686d271519d6 [diff] |
postinstall: fixed postinst_action_progress is NaN am: 128936fb26 Change-Id: I1e9920c6ae1c30f58c5d693b7cc3cd66420481c4
diff --git a/payload_consumer/postinstall_runner_action.cc b/payload_consumer/postinstall_runner_action.cc index cedecda..b6af131 100644 --- a/payload_consumer/postinstall_runner_action.cc +++ b/payload_consumer/postinstall_runner_action.cc
@@ -264,7 +264,7 @@ void PostinstallRunnerAction::ReportProgress(double frac) { if (!delegate_) return; - if (current_partition_ >= partition_weight_.size()) { + if (current_partition_ >= partition_weight_.size() || total_weight_ == 0) { delegate_->ProgressUpdate(1.); return; }