mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-09 23:41:08 +01:00
Add EAN_13 case
This commit is contained in:
parent
fd5fe825e9
commit
934d6ae67b
1 changed files with 4 additions and 1 deletions
|
@ -273,7 +273,10 @@ public class DrugListActivity extends AppCompatActivity {
|
|||
String cip13;
|
||||
|
||||
// Handle successful scan
|
||||
if (result.getFormatName().equals("CODE_128")) { //CODE_128
|
||||
|
||||
Log.d(TAG, "formatName = " + result.getFormatName());
|
||||
|
||||
if (result.getFormatName().equals("CODE_128") || (result.getFormatName().equals("EAN_13"))) { //CODE_128 || EAN 13
|
||||
cip13 = result.getContents();
|
||||
} else {
|
||||
cip13 = result.getContents().substring(4, 17);
|
||||
|
|
Loading…
Reference in a new issue