Move edit icon from header to action bar
Move edit icon in bluetooth detail page, from header back to action bar. Change-Id: I6afd7c611fe4db8c6c27921b5da316d8a1a000db Fixes: 76206922 Test: make RunSettingsRoboTests
This commit is contained in:
@@ -73,16 +73,6 @@ public class BluetoothDetailsHeaderController extends BluetoothDetailsController
|
||||
mHeaderController.setIcon(pair.first);
|
||||
mHeaderController.setIconContentDescription(pair.second);
|
||||
mHeaderController.setSummary(summaryText);
|
||||
mHeaderController.setEditListener(v -> showEditDeviceNameDialog());
|
||||
mHeaderController.setButtonActions(
|
||||
EntityHeaderController.ActionType.ACTION_EDIT_PREFERENCE,
|
||||
EntityHeaderController.ActionType.ACTION_NONE);
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
void showEditDeviceNameDialog() {
|
||||
RemoteDeviceNameDialogFragment.newInstance(mCachedDevice).show(
|
||||
mFragment.getFragmentManager(), RemoteDeviceNameDialogFragment.TAG);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user