super(context, attrs); mLocalManager = LocalBluetoothManager.getInstance(context); setSummaryToName();
getContext().unregisterReceiver(mReceiver);
BluetoothDevice manager = mLocalManager.getBluetoothManager(); manager.setName(value); return true;
IntentFilter filter = new IntentFilter(); filter.addAction(BluetoothIntent.BLUETOOTH_STATE_CHANGED_ACTION); filter.addAction(BluetoothIntent.NAME_CHANGED_ACTION); getContext().registerReceiver(mReceiver, filter);
BluetoothDevice manager = mLocalManager.getBluetoothManager(); if (manager.isEnabled()) { setSummary(manager.getName()); }