After unpairing a device, this device is no more a known device.
It should be removed from the list before refreshing it.
Also propose to display the scan button after unpairing.
Change-Id: Ib896bc79bf5fe79cc764fb538922bd018742f024
Signed-off-by: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
showLoadingSpinner("Unpairing");
self.adapter().destroyBonding(device.address, function() {
console.log('bluetooth unpaired from ' + device.address);
+ self.removeDevice(device.address);
+ self.scan(true);
self._restartRefreshDevicesInterval();
hideLoadingSpinner("Unpairing");
}, function(e) {