Get rid of spurious gear icon in BT details page
The problem is that we were calling done() on the EntityHeaderController and passing false for whether to rebind the action buttons, which means we were getting the default behavior including a visible gear icon. Passing true to request rebinding causes that icon to be hidden. Bug: 63405635 Test: make RunSettingsRoboTests Change-Id: I031f4a2d176ff3be025cc2675d7026a679936b03
This commit is contained in:
@@ -64,7 +64,7 @@ public class BluetoothDetailsHeaderController extends BluetoothDetailsController
|
||||
@Override
|
||||
protected void refresh() {
|
||||
setHeaderProperties();
|
||||
mHeaderController.done(mFragment.getActivity(), false);
|
||||
mHeaderController.done(mFragment.getActivity(), true /* rebindActions */);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@@ -81,7 +81,7 @@ public class BluetoothDetailsHeaderControllerTest extends BluetoothDetailsContro
|
||||
verify(mHeaderController).setIcon(any(Drawable.class));
|
||||
verify(mHeaderController).setIconContentDescription(any(String.class));
|
||||
verify(mHeaderController).setSummary(any(String.class));
|
||||
verify(mHeaderController).done(mActivity, false);
|
||||
verify(mHeaderController).done(mActivity, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Reference in New Issue
Block a user