Commit e3986430 authored by Nastuzzi Samy's avatar Nastuzzi Samy
Browse files

API popup

Handle given info
parent 9895576a
...@@ -116,9 +116,9 @@ public class QRCodeReaderActivity extends BaseActivity implements ZXingScannerVi ...@@ -116,9 +116,9 @@ public class QRCodeReaderActivity extends BaseActivity implements ZXingScannerVi
this.scannerView.setResultHandler(QRCodeReaderActivity.this); this.scannerView.setResultHandler(QRCodeReaderActivity.this);
this.scannerView.startCamera(CAMERA_FACING_BACK); this.scannerView.startCamera(CAMERA_FACING_BACK);
this.scannerView.setOnClickListener(new View.OnClickListener() { this.scannerView.setOnLongClickListener(new View.OnLongClickListener() {
@Override @Override
public void onClick(View view) { public boolean onLongClick(View view) {
final LayoutInflater layoutInflater = LayoutInflater.from(QRCodeReaderActivity.this); final LayoutInflater layoutInflater = LayoutInflater.from(QRCodeReaderActivity.this);
final View popupView = layoutInflater.inflate(R.layout.dialog_tag, null); final View popupView = layoutInflater.inflate(R.layout.dialog_tag, null);
final EditText inputInfo = popupView.findViewById(R.id.input_info); final EditText inputInfo = popupView.findViewById(R.id.input_info);
...@@ -140,6 +140,10 @@ public class QRCodeReaderActivity extends BaseActivity implements ZXingScannerVi ...@@ -140,6 +140,10 @@ public class QRCodeReaderActivity extends BaseActivity implements ZXingScannerVi
} }
}) })
.setCancelable(true); .setCancelable(true);
dialog.createDialog(alertDialogBuilder, inputInfo);
return false;
} }
}); });
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment