Skip to content

Commit

Permalink
update code
Browse files Browse the repository at this point in the history
  • Loading branch information
xtc committed Nov 11, 2021
1 parent c043ed2 commit 287f038
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/src/main/java/ttlock/demo/lock/UnlockActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@ public void onFail(LockError error) {
* use eKey for controlLock interface
*/
private void doLockLock(){
if(mMyTestLockEKey == null){
makeToast(" you should get your key list first ");
return;
}
// if(mMyTestLockEKey == null){
// makeToast(" you should get your key list first ");
// return;
// }
ensureBluetoothIsEnabled();
showConnectLockToast();
TTLockClient.getDefault().controlLock(ControlAction.LOCK, mMyTestLockEKey.getLockData(), mMyTestLockEKey.getLockMac(),new ControlLockCallback() {
TTLockClient.getDefault().controlLock(ControlAction.LOCK, mCurrentLock.getLockData(), mCurrentLock.getLockMac(),new ControlLockCallback() {
@Override
public void onControlLockSuccess(ControlLockResult controlLockResult) {
Toast.makeText(UnlockActivity.this,"lock is locked!",Toast.LENGTH_LONG).show();
Expand Down

0 comments on commit 287f038

Please sign in to comment.