导航菜单

页面标题

页面副标题

MX Player v1.97.8 - YubiKeyPromptActivity.java 源代码

正在查看: MX Player v1.97.8 应用的 YubiKeyPromptActivity.java JAVA 源代码文件

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


package com.yubico.yubikit.android.ui;

import android.app.Activity;
import android.content.SharedPreferences;
import android.widget.Button;
import android.widget.TextView;
import com.yubico.yubikit.android.transport.nfc.NfcNotAvailable;
import com.yubico.yubikit.android.ui.YubiKeyPromptActivity;
import defpackage.ara;
import defpackage.b1j;
import defpackage.c73;
import defpackage.ckc;
import defpackage.ekc;
import defpackage.gkc;
import defpackage.i12;
import defpackage.o2i;
import defpackage.rqa;
import defpackage.x0j;
import defpackage.y0j;
import defpackage.zjc;
import java.util.concurrent.ExecutorService;

public class YubiKeyPromptActivity extends Activity {
    public static final rqa n = ara.b(YubiKeyPromptActivity.class);
    public lj3 c;
    public y0j d;
    public Button i;
    public Button j;
    public TextView k;
    public boolean l;
    public boolean m;
    public final a b = new a();
    public boolean f = true;
    public int g = 0;
    public boolean h = false;

    public class a extends c73 {
    }

    public final void a(x0j x0jVar, Runnable runnable) {
        y0j y0jVar = this.d;
        getIntent().getExtras();
        y0jVar.a(x0jVar, new b1j(this, runnable));
    }

    @Override
    public final SharedPreferences getSharedPreferences(String str, int i) {
        return tya.m.getSharedPreferences(str, i);
    }

    @Override
    public void onCreate(android.os.Bundle r5) {
        throw new UnsupportedOperationException("Method not decompiled: com.yubico.yubikit.android.ui.YubiKeyPromptActivity.onCreate(android.os.Bundle):void");
    }

    @Override
    public void onDestroy() {
        if (this.l) {
            ((o2i) this.c.b).a();
        }
        super.onDestroy();
    }

    @Override
    public final void onPause() {
        gkc gkcVar;
        if (this.m && (gkcVar = (gkc) this.c.c) != null) {
            ExecutorService executorService = gkcVar.c;
            if (executorService != null) {
                executorService.shutdown();
                gkcVar.c = null;
            }
            ((ckc) gkcVar.b).a.disableReaderMode(this);
        }
        super.onPause();
    }

    @Override
    public final void onResume() {
        super.onResume();
        if (this.m) {
            this.j.setVisibility(8);
            try {
                lj3 lj3Var = this.c;
                zjc zjcVar = new zjc();
                i12<? super ekc> i12Var = new i12() {
                    @Override
                    public final void invoke(Object obj) {
                        ekc ekcVar = (ekc) obj;
                        rqa rqaVar = YubiKeyPromptActivity.n;
                        YubiKeyPromptActivity yubiKeyPromptActivity = YubiKeyPromptActivity.this;
                        yubiKeyPromptActivity.getClass();
                        yubiKeyPromptActivity.a(ekcVar, new ht(5, yubiKeyPromptActivity, ekcVar));
                    }
                };
                gkc gkcVar = (gkc) lj3Var.c;
                if (gkcVar == null) {
                    throw new NfcNotAvailable("NFC is not available on this device", false);
                }
                gkcVar.a(this, zjcVar, i12Var);
            } catch (NfcNotAvailable e) {
                this.f = false;
                this.k.setText(2131891296);
                if (e.b) {
                    this.j.setVisibility(0);
                }
            }
        }
    }
}