霍尼维尔的EDA51扫描适配
This commit is contained in:
@ -57,10 +57,15 @@ public class HoneywellAdapter implements Adapter {
|
||||
}
|
||||
|
||||
public void openContinueScan(){
|
||||
/**
|
||||
* 扫描正常
|
||||
*/
|
||||
if("eda50p".equals(Build.MODEL.toLowerCase())){
|
||||
|
||||
if("eda50p".equals(Build.MODEL.toLowerCase())){ // 扫描正常
|
||||
intent = new Intent(context, ScanServiceEDA50P.class);
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||
context.getApplicationContext().startForegroundService(intent);
|
||||
}else {
|
||||
context.getApplicationContext().startService(intent);
|
||||
}
|
||||
}else if("eda51".equals(Build.MODEL.toLowerCase())){ // 扫描正常
|
||||
intent = new Intent(context, ScanServiceEDA50P.class);
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||
context.getApplicationContext().startForegroundService(intent);
|
||||
|
||||
Reference in New Issue
Block a user