commit | 391834dab41d17c4e651e0d237b49424991349fe | [log] [tgz] |
---|---|---|
author | Cole Faust <colefaust@google.com> | Thu Jul 09 18:03:41 2020 -0700 |
committer | Cole Faust <colefaust@google.com> | Thu Jul 09 18:03:41 2020 -0700 |
tree | 2ffd587ac8d082b5180c846fa9ed34135a904b2c | |
parent | 5b15280915693f5d28fab0f00d4ee225935c91e0 [diff] |
Fix paintbooth crashing when toggling search icon twice Fixes: 160921175 Test: Manually Change-Id: I06b13f3b92911634ebceea176496ff5853295dfc
diff --git a/car-ui-lib/tests/paintbooth/src/com/android/car/ui/paintbooth/toolbar/ToolbarActivity.java b/car-ui-lib/tests/paintbooth/src/com/android/car/ui/paintbooth/toolbar/ToolbarActivity.java index 938f448..f32818a 100644 --- a/car-ui-lib/tests/paintbooth/src/com/android/car/ui/paintbooth/toolbar/ToolbarActivity.java +++ b/car-ui-lib/tests/paintbooth/src/com/android/car/ui/paintbooth/toolbar/ToolbarActivity.java
@@ -320,7 +320,7 @@ Mutable<Boolean> showingLauncherIcon = new Mutable<>(false); mButtons.add(Pair.create(getString(R.string.toolbar_toggle_search_icon), v -> { if (showingLauncherIcon.value) { - toolbar.setSearchIcon(0); + toolbar.setSearchIcon(null); } else { toolbar.setSearchIcon(R.drawable.ic_launcher); }