fix fingerprint setting, remove activity from home

This commit is contained in:
Matias Alejo Garcia 2016-09-01 16:23:27 -03:00
commit 333b4f45a0
No known key found for this signature in database
GPG key ID: 02470DB551277AB3
9 changed files with 44 additions and 34 deletions

View file

@ -69,10 +69,12 @@ angular.module('copayApp.controllers').controller('preferencesController',
$scope.touchIdChange = function() {
var newStatus = $scope.touchIdEnabled;
walletService.setTouchId(wallet, newStatus, function(err) {
walletService.setTouchId(wallet, !!newStatus, function(err) {
if (err) {
$log.warn(err);
$scope.touchIdEnabled = !newStatus;
$timeout(function() {
$scope.$apply();
}, 1);
return;
}
$log.debug('Touch Id status changed: ' + newStatus);