导航菜单

页面标题

页面副标题

Hyouka private v5.8.9 - CaptureCameraActivity.java 源代码

正在查看: Hyouka private v5.8.9 应用的 CaptureCameraActivity.java JAVA 源代码文件

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


package com.beint.project.screens;

import android.os.Bundle;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.MenuItem;
import androidx.appcompat.widget.Toolbar;
import com.beint.project.screens.camera.CaptureCameraFragment;
import com.beint.project.screens.sms.AppModeNotifierActivity;

public class CaptureCameraActivity extends AppModeNotifierActivity {
    public boolean back() {
        if (getSupportFragmentManager().o0() >= 1) {
            getSupportFragmentManager().Z0();
        }
        return getSupportFragmentManager().o0() == 0;
    }

    @Override
    protected void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(2131558444);
        Toolbar findViewById = findViewById(2131363848);
        findViewById.setTitle(2131887672);
        setSupportActionBar(findViewById);
        getSupportActionBar().v(false);
        getSupportActionBar().q(true);
        getSupportActionBar().r(true);
        getSupportFragmentManager().n().b(2131362950, new CaptureCameraFragment()).j();
        getSupportFragmentManager().f0();
    }

    public boolean onCreateOptionsMenu(Menu menu) {
        return true;
    }

    public boolean onOptionsItemSelected(MenuItem menuItem) {
        if (menuItem.getItemId() == 16908332 && back()) {
            finish();
        }
        return super/*android.app.Activity*/.onOptionsItemSelected(menuItem);
    }

    @Override
    protected void onPause() {
        super.onPause();
    }

    public boolean processKeyDown(int i, KeyEvent keyEvent) {
        return i == 4 ? !back() : i == 4;
    }
}