Skip to content

Commit

Permalink
change order of unlock regexes
Browse files Browse the repository at this point in the history
  • Loading branch information
jlipps committed Oct 24, 2013
1 parent b3b29e7 commit bd8cbab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/devices/android/adb.js
Original file line number Diff line number Diff line change
Expand Up @@ -894,14 +894,14 @@ ADB.prototype.isScreenLocked = function(cb) {
} else {
cb(null, true);
}
} else if (gbScreenLocked && gbScreenLocked[0]) {
cb(null, true);
} else if (samsungNoteUnlocked && samsungNoteUnlocked[0]) {
if (samsungNoteUnlocked[0].split('=')[1] == 'true') {
cb(null, false);
} else {
cb(null, true);
}
} else if (gbScreenLocked && gbScreenLocked[0]) {
cb(null, true);
} else {
cb(null, false);
}
Expand Down

0 comments on commit bd8cbab

Please sign in to comment.