add dead view (wip) - fix last/current state
This commit is contained in:
parent
824362af7c
commit
014995fd36
5 changed files with 79 additions and 13 deletions
|
|
@ -14,7 +14,7 @@ angular.module('copayApp.services').factory('fingerprintService', function($log,
|
|||
function(msg) {
|
||||
FingerprintAuth.isAvailable(function(result) {
|
||||
|
||||
if (result.isAvailable)
|
||||
if (result.isAvailable)
|
||||
_isAvailable = 'ANDROID';
|
||||
|
||||
}, function() {
|
||||
|
|
@ -71,6 +71,7 @@ angular.module('copayApp.services').factory('fingerprintService', function($log,
|
|||
|
||||
var isNeeded = function(client) {
|
||||
if (!_isAvailable) return false;
|
||||
if (client === 'unlockingApp') return true;
|
||||
|
||||
var config = configService.getSync();
|
||||
config.touchIdFor = config.touchIdFor || {};
|
||||
|
|
@ -84,7 +85,7 @@ angular.module('copayApp.services').factory('fingerprintService', function($log,
|
|||
|
||||
root.check = function(client, cb) {
|
||||
if (isNeeded(client)) {
|
||||
$log.debug('FingerPrint Service:', _isAvailable);
|
||||
$log.debug('FingerPrint Service:', _isAvailable);
|
||||
if (_isAvailable == 'IOS')
|
||||
return requestTouchId(cb);
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue