导航菜单

页面标题

页面副标题

泰剧兔 v1.5.7.0 - CaptureActivity.java 源代码

正在查看: 泰剧兔 v1.5.7.0 应用的 CaptureActivity.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.journeyapps.barcodescanner;

import android.app.Activity;
import android.os.Bundle;
import android.view.KeyEvent;
import com.google.zxing.client.android.R$id;
import com.google.zxing.client.android.R$layout;

public class CaptureActivity extends Activity {
    public b a;
    public DecoratedBarcodeView b;

    public DecoratedBarcodeView a() {
        setContentView(R$layout.b);
        return (DecoratedBarcodeView) findViewById(R$id.a);
    }

    @Override
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        this.b = a();
        b bVar = new b(this, this.b);
        this.a = bVar;
        bVar.p(getIntent(), bundle);
        this.a.l();
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        this.a.u();
    }

    @Override
    public boolean onKeyDown(int i2, KeyEvent keyEvent) {
        return this.b.onKeyDown(i2, keyEvent) || super.onKeyDown(i2, keyEvent);
    }

    @Override
    public void onPause() {
        super.onPause();
        this.a.v();
    }

    @Override
    public void onRequestPermissionsResult(int i2, String[] strArr, int[] iArr) {
        this.a.w(i2, strArr, iArr);
    }

    @Override
    public void onResume() {
        super.onResume();
        this.a.x();
    }

    @Override
    public void onSaveInstanceState(Bundle bundle) {
        super.onSaveInstanceState(bundle);
        this.a.y(bundle);
    }
}