@Override
  public void onResume() {
    super.onResume();
    mViewModel.resume();

    setDisplayOptions(MainActivity.DISPLAY_TITLE);
    setTitle(R.string.title_scan_qr_code);
  }
  @Override
  public void onActivityCreated(Bundle savedInstanceState) {
    super.onActivityCreated(savedInstanceState);

    webview.getSettings().setJavaScriptEnabled(true);
    webview.getSettings().setBuiltInZoomControls(true);

    mViewModel.setListener(this);
    mViewModel.initialize(getArguments());
  }
  @Override
  public void onActivityCreated(Bundle savedInstanceState) {
    super.onActivityCreated(savedInstanceState);

    mViewModel.setListener(this);

    new ScannerViewCommandBinding().bind(mScannerView, mViewModel.getProcessQrCodeCommand());

    mScannerTextView.setVisibility(View.VISIBLE);
    mScannerTextView.setText(
        getResources().getText(R.string.inventory_login_qr_code_scanner_request));
  }
 @Override
 public void onPause() {
   super.onPause();
   mViewModel.pause();
 }
 @Override
 public void onResume() {
   super.onResume();
   mViewModel.resume();
   setDisplayOptions(MainActivity.DISPLAY_LOGO);
 }