This commit is contained in:
wangcongtao
2020-06-09 14:36:09 +08:00
parent 8f20329b33
commit 61738bcf68
19 changed files with 194 additions and 114 deletions

View File

@@ -17,6 +17,8 @@ class Devices {
public static final Uri CONTENT_URI_BIND = Uri.parse( "content://com.zhidao.guide.lock.product.bindstatus/status" );
private static boolean sIsBind = false;
/**
* 检测车机激活状态
*
@@ -33,11 +35,15 @@ class Devices {
return false;
}
int status = cursor.getInt( cursor.getColumnIndex( "lock_status" ) );
return ( status == 1 );
return sIsBind = ( status == 1 );
}
} catch ( Exception e ) {
e.printStackTrace();
}
return false;
}
public static boolean isBind() {
return false;
}
}