Fix onCancel and onKeyboard methods

This commit is contained in:
jacques 2020-05-26 19:54:21 +02:00
parent c3d63287d6
commit f047c7afba

View file

@ -131,15 +131,14 @@ public class CustomScannerActivity extends Activity implements
capture.onRequestPermissionsResult(requestCode, permissions, grantResults);
}
public void onCancel()
{
setResult(2);
finish();
}
public void onKeyboard()
{
public void onKeyboard(View view) {
setResult(3);
finish();
}
public void onCancel(View view) {
setResult(2);
finish();
}
}