From 15b89d799f87f3893126ecceaef8fa482e8c2b8e Mon Sep 17 00:00:00 2001 From: Nandana Dutt Date: Fri, 16 Nov 2018 14:14:12 +0000 Subject: Fix missing title in broadcast BUG:119581493 Test: adb shell setprop dumpstate.options.title xyz && adb shell cmd activity bug-report --progress verify broadcast has TITLE=xyz in log Change-Id: Iad1208c1ff27e1b10d20230b8a6e28e8877f16b5 --- cmds/dumpstate/dumpstate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmds/dumpstate/dumpstate.cpp') diff --git a/cmds/dumpstate/dumpstate.cpp b/cmds/dumpstate/dumpstate.cpp index f540f32597..c158803336 100644 --- a/cmds/dumpstate/dumpstate.cpp +++ b/cmds/dumpstate/dumpstate.cpp @@ -1911,7 +1911,7 @@ static void SendBugreportFinishedBroadcast() { am_args.push_back("android.intent.extra.SCREENSHOT"); am_args.push_back(ds.screenshot_path_); } - if (ds.options_->notification_title.empty()) { + if (!ds.options_->notification_title.empty()) { am_args.push_back("--es"); am_args.push_back("android.intent.extra.TITLE"); am_args.push_back(ds.options_->notification_title); -- cgit v1.2.3-59-g8ed1b