Aggiornate tutte le icone del drawer e del menu principale.
This commit is contained in:
@@ -5,6 +5,8 @@ import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.util.Log;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
|
||||
import java.nio.charset.StandardCharsets;
|
||||
|
||||
import device.common.DecodeResult;
|
||||
@@ -18,7 +20,7 @@ import it.integry.plugins.barcode_base_library.model.BarcodeType;
|
||||
|
||||
public class PointMobileBarcodeReader implements BarcodeReaderInterface {
|
||||
|
||||
private Context mContext;
|
||||
private AppCompatActivity mContext;
|
||||
private static ScanManager mScanManager;
|
||||
private static DecodeResult mDecodeResult;
|
||||
|
||||
@@ -27,7 +29,7 @@ public class PointMobileBarcodeReader implements BarcodeReaderInterface {
|
||||
|
||||
private static String TAG = PointMobileBarcodeReader.class.getName();
|
||||
|
||||
public PointMobileBarcodeReader(Context context) {
|
||||
public PointMobileBarcodeReader(AppCompatActivity context) {
|
||||
this.mContext = context;
|
||||
|
||||
mScanManager = new ScanManager();
|
||||
@@ -45,11 +47,13 @@ public class PointMobileBarcodeReader implements BarcodeReaderInterface {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init() throws BarcodeAdapterNotFoundException {
|
||||
public void init(Runnable onDeviceReady) throws BarcodeAdapterNotFoundException {
|
||||
if(isRightAdapter()){
|
||||
try{
|
||||
mScanManager.aDecodeSetTerminator(ScanConst.Terminator.DCD_TERMINATOR_NONE);
|
||||
mScanManager.aDecodeSetResultType(ScanConst.ResultType.DCD_RESULT_USERMSG);
|
||||
|
||||
onDeviceReady.run();
|
||||
} catch (Exception ex) {
|
||||
throw new BarcodeAdapterNotFoundException(getAdapterName());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user