From 5fb117bb80aa2374e6ec6774113586e566d7ad21 Mon Sep 17 00:00:00 2001 From: Nandana Dutt Date: Thu, 27 Sep 2018 09:23:36 +0100 Subject: Separate options parsing from running dumpstate This refactor allows accepting options in other ways, for eg via binder calls. BUG: 111441001 Test: adb shell /data/nativetest64/dumpstate_test/dumpstate_test Test: adb bugreport Test: interactive bugreport Change-Id: Id27c917a3b51e1b9c0485ef3ff473b3cf22243df --- cmds/dumpstate/utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmds/dumpstate/utils.cpp') diff --git a/cmds/dumpstate/utils.cpp b/cmds/dumpstate/utils.cpp index 77f09b7459..4ad5c4b7d5 100644 --- a/cmds/dumpstate/utils.cpp +++ b/cmds/dumpstate/utils.cpp @@ -916,7 +916,7 @@ void Dumpstate::UpdateProgress(int32_t delta_sec) { bool max_changed = progress_->Inc(delta_sec); // ...but only notifiy listeners when necessary. - if (!update_progress_) return; + if (!options_->do_progress_updates) return; int progress = progress_->Get(); int max = progress_->GetMax(); -- cgit v1.2.3-59-g8ed1b