Set title for Bluetooth Details page to "Stylus" for styluses.
Bug: 254835745 Test: BluetoothDeviceDetailsFragmentTest Change-Id: I725877b0bcf44fa7be805e16fb2d695c9d6074dc
This commit is contained in:
@@ -341,9 +341,7 @@ public class BluetoothDeviceDetailsFragment extends RestrictedDashboardFragment
|
||||
|
||||
@VisibleForTesting
|
||||
void setTitleForInputDevice() {
|
||||
// TODO(b/254835745) once source filter for bt stylus merged
|
||||
// && mInputDevice.supportsSource(InputDevice.SOURCE_BLUETOOTH_STYLUS))
|
||||
if (mInputDevice != null) {
|
||||
if (StylusDevicesController.isDeviceStylus(mInputDevice, mCachedDevice)) {
|
||||
// This will override the default R.string.device_details_title "Device Details"
|
||||
// that will show on non-stylus bluetooth devices.
|
||||
// That title is set via the manifest and also from BluetoothDeviceUpdater.
|
||||
|
Reference in New Issue
Block a user