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

    setDisplayOptions(MainActivity.DISPLAY_TITLE);
    setTitle(R.string.title_scan_qr_code);
  }
コード例 #2
0
  @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();
 }
コード例 #5
0
 @Override
 public void onResume() {
   super.onResume();
   mViewModel.resume();
   setDisplayOptions(MainActivity.DISPLAY_LOGO);
 }