导航菜单

页面标题

页面副标题

CallApp v2.226 - ResultPopupActivity.java 源代码

正在查看: CallApp v2.226 应用的 ResultPopupActivity.java JAVA 源代码文件

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


package com.callapp.contacts.manager.popup;

import android.content.Intent;
import android.os.Bundle;
import com.callapp.contacts.activity.base.BaseTransparentActivity;
import com.callapp.contacts.manager.FeedbackManager;
import com.callapp.contacts.util.CLog;
import com.callapp.framework.util.StringUtils;

public class ResultPopupActivity extends BaseTransparentActivity {
    private static void logBadPopup() {
        FeedbackManager.get().a("ResultPopupActivity got non ResultPopup instance");
    }

    @Override
    public void onActivityResult(int i, int i2, Intent intent) {
        super.onActivityResult(i, i2, intent);
        PopupManager popupManager = PopupManager.get();
        Popup popup = (Popup) popupManager.a.remove(Integer.valueOf(i));
        if (popup == null) {
            FeedbackManager.get().a("PopupManager.getPopup returning null");
            StringUtils.I(PopupManager.class);
            CLog.a();
        }
        if (!(popup instanceof ResultPopup)) {
            logBadPopup();
            finish();
        } else {
            try {
                ((ResultPopup) popup).h(this, i, i2, intent);
            } catch (RuntimeException unused) {
                StringUtils.I(popup.getClass());
                CLog.d();
            }
        }
    }

    @Override
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setKeyguardDismissAndScreenWindowFlags();
        onNewIntent(getIntent());
    }

    @Override
    public void onDestroy() {
        PopupManager.get().b(getIntent());
        super.onDestroy();
    }

    public void onNewIntent(Intent intent) {
        super/*androidx.activity.ComponentActivity*/.onNewIntent(intent);
        Popup b = PopupManager.get().b(intent);
        if (b instanceof ResultPopup) {
            ((ResultPopup) b).b(this);
        } else {
            logBadPopup();
            finish();
        }
    }

    @Override
    public boolean shouldAssertPermissions() {
        return false;
    }
}