导航菜单

页面标题

页面副标题

Rilo v2.0.21 - AgentAccountFragment.java 源代码

正在查看: Rilo v2.0.21 应用的 AgentAccountFragment.java JAVA 源代码文件

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


package app.callpe.ui.home;

import android.app.Dialog;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;
import androidx.activity.result.ActivityResult;
import androidx.activity.result.ActivityResultCallback;
import androidx.activity.result.ActivityResultLauncher;
import androidx.activity.result.contract.ActivityResultContract;
import androidx.activity.result.contract.ActivityResultContracts;
import androidx.appcompat.app.AlertDialog;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentViewModelLazyKt;
import androidx.lifecycle.HasDefaultViewModelProviderFactory;
import androidx.lifecycle.LifecycleOwner;
import androidx.lifecycle.LifecycleOwnerKt;
import androidx.lifecycle.ViewModelProvider;
import androidx.lifecycle.ViewModelStore;
import androidx.lifecycle.ViewModelStoreOwner;
import androidx.lifecycle.viewmodel.CreationExtras;
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout;
import app.callpe.common.utils.Helper;
import app.callpe.data.model.Balance;
import app.callpe.data.model.KycData;
import app.callpe.data.model.User;
import app.callpe.databinding.FragmentAgentAccountBinding;
import app.callpe.databinding.ReferralCodeInputLayoutBinding;
import app.callpe.ui.chat.AgentBroadcastChatActivity;
import app.callpe.ui.chat.NotificationChatActivity;
import app.callpe.ui.chat.StreamerBroadcastChatActivity;
import app.callpe.ui.chat.SupportChatActivity;
import app.callpe.ui.misc.SettingsActivity;
import app.callpe.ui.user.AgentLevelDetailsActivity;
import app.callpe.ui.user.KycSubmitActivity;
import com.google.android.material.dialog.MaterialAlertDialogBuilder;
import dagger.hilt.android.AndroidEntryPoint;
import kotlin.Lazy;
import kotlin.LazyKt;
import kotlin.LazyThreadSafetyMode;
import kotlin.Metadata;
import kotlin.coroutines.CoroutineContext;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Reflection;
import kotlinx.coroutines.BuildersKt;
import kotlinx.coroutines.CoroutineStart;
import kotlinx.coroutines.Job;

@Metadata(d1 = {"\u0000~\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\n\n\u0002\u0010\u000b\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\b\u0007\u0018\u0000 N2\u00020\u0001:\u0001NB\u0005¢\u0006\u0002\u0010\u0002J\u0010\u0010&\u001a\u00020'2\u0006\u0010(\u001a\u00020)H\u0002J\u0010\u0010*\u001a\u00020'2\u0006\u0010(\u001a\u00020)H\u0002J\u0010\u0010+\u001a\u00020'2\u0006\u0010(\u001a\u00020)H\u0002J\u0010\u0010,\u001a\u00020'2\u0006\u0010(\u001a\u00020)H\u0002J\u0010\u0010-\u001a\u00020'2\u0006\u0010.\u001a\u00020/H\u0002J\u0010\u00100\u001a\u00020'2\u0006\u00101\u001a\u00020/H\u0002J\u0010\u00102\u001a\u00020'2\u0006\u00103\u001a\u00020\u0018H\u0002J\b\u00104\u001a\u000205H\u0002J\b\u00106\u001a\u00020'H\u0002J$\u00107\u001a\u0002082\u0006\u00109\u001a\u00020:2\b\u0010;\u001a\u0004\u0018\u00010<2\b\u0010=\u001a\u0004\u0018\u00010>H\u0016J\b\u0010?\u001a\u00020'H\u0016J\b\u0010@\u001a\u00020'H\u0016J\u001a\u0010A\u001a\u00020'2\u0006\u0010B\u001a\u0002082\b\u0010=\u001a\u0004\u0018\u00010>H\u0016J\b\u0010C\u001a\u00020'H\u0002J\b\u0010D\u001a\u00020'H\u0002J\u0010\u0010E\u001a\u00020'2\u0006\u0010F\u001a\u00020GH\u0002J\u0010\u0010H\u001a\u00020'2\u0006\u0010I\u001a\u00020JH\u0002J\u0010\u0010K\u001a\u00020'2\u0006\u0010I\u001a\u00020JH\u0002J\b\u0010L\u001a\u00020'H\u0002J\b\u0010M\u001a\u00020'H\u0002R \u0010\u0003\u001a\b\u0012\u0004\u0012\u00020\u00050\u0004X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0006\u0010\u0007\"\u0004\b\b\u0010\tR\u000e\u0010\n\u001a\u00020\u000bX\u0082.¢\u0006\u0002\n\u0000R\u000e\u0010\f\u001a\u00020\rX\u0082.¢\u0006\u0002\n\u0000R \u0010\u000e\u001a\b\u0012\u0004\u0012\u00020\u00050\u0004X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u000f\u0010\u0007\"\u0004\b\u0010\u0010\tR \u0010\u0011\u001a\b\u0012\u0004\u0012\u00020\u00050\u0004X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0012\u0010\u0007\"\u0004\b\u0013\u0010\tR \u0010\u0014\u001a\b\u0012\u0004\u0012\u00020\u00050\u0004X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0015\u0010\u0007\"\u0004\b\u0016\u0010\tR\u001a\u0010\u0017\u001a\u00020\u0018X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0019\u0010\u001a\"\u0004\b\u001b\u0010\u001cR \u0010\u001d\u001a\b\u0012\u0004\u0012\u00020\u00050\u0004X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u001e\u0010\u0007\"\u0004\b\u001f\u0010\tR\u001b\u0010 \u001a\u00020!8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b$\u0010%\u001a\u0004\b\"\u0010#¨\u0006O"}, d2 = {"Lapp/callpe/ui/home/AgentAccountFragment;", "Landroidx/fragment/app/Fragment;", "()V", "agentChatLauncher", "Landroidx/activity/result/ActivityResultLauncher;", "Landroid/content/Intent;", "getAgentChatLauncher", "()Landroidx/activity/result/ActivityResultLauncher;", "setAgentChatLauncher", "(Landroidx/activity/result/ActivityResultLauncher;)V", "alertDialog", "Landroid/app/Dialog;", "binding", "Lapp/callpe/databinding/FragmentAgentAccountBinding;", "chatLauncher", "getChatLauncher", "setChatLauncher", "importantChatLauncher", "getImportantChatLauncher", "setImportantChatLauncher", "launcher", "getLauncher", "setLauncher", "resume", "", "getResume", "()Z", "setResume", "(Z)V", "supportChatLauncher", "getSupportChatLauncher", "setSupportChatLauncher", "viewModel", "Lapp/callpe/ui/home/AccountViewModel;", "getViewModel", "()Lapp/callpe/ui/home/AccountViewModel;", "viewModel$delegate", "Lkotlin/Lazy;", "handleAgentBroadcastChat", "", "listModel", "Lapp/callpe/data/model/GroupListModel;", "handleAgentImportantMessage", "handleAgentSupportMessage", "handleBroadcastChat", "handleKyc", "metadata", "Lapp/callpe/data/model/Metadata;", "handleUi", "data", "kycClick", "allow", "observeEvent", "Lkotlinx/coroutines/Job;", "onClicks", "onCreateView", "Landroid/view/View;", "inflater", "Landroid/view/LayoutInflater;", "container", "Landroid/view/ViewGroup;", "savedInstanceState", "Landroid/os/Bundle;", "onDestroy", "onResume", "onViewCreated", "view", "openAgencyDialog", "refresh", "setBalance", "balance", "Lapp/callpe/data/model/Balance;", "setReferralCode", "user", "Lapp/callpe/data/model/User;", "setUserId", "setupRv", "swipe", "Companion", "app_riloRelease"}, k = 1, mv = {1, 8, 0}, xi = 48)
@AndroidEntryPoint
public final class AgentAccountFragment extends Hilt_AgentAccountFragment {

    public static final Companion INSTANCE = new Companion(null);
    private static boolean refreshScreen;
    private ActivityResultLauncher<Intent> agentChatLauncher;
    private Dialog alertDialog;
    private FragmentAgentAccountBinding binding;
    private ActivityResultLauncher<Intent> chatLauncher;
    private ActivityResultLauncher<Intent> importantChatLauncher;
    private ActivityResultLauncher<Intent> launcher;
    private boolean resume;
    private ActivityResultLauncher<Intent> supportChatLauncher;

    private final Lazy viewModel;

    private final void setupRv() {
    }

    public AgentAccountFragment() {
        ActivityResultLauncher<Intent> registerForActivityResult = registerForActivityResult((ActivityResultContract) new ActivityResultContracts.StartActivityForResult(), new ActivityResultCallback() {
            public final void onActivityResult(Object obj) {
                AgentAccountFragment.launcher$lambda$0(AgentAccountFragment.this, (ActivityResult) obj);
            }
        });
        Intrinsics.checkNotNullExpressionValue(registerForActivityResult, "registerForActivityResul…Details()\n        }\n    }");
        this.launcher = registerForActivityResult;
        ActivityResultLauncher<Intent> registerForActivityResult2 = registerForActivityResult((ActivityResultContract) new ActivityResultContracts.StartActivityForResult(), new ActivityResultCallback() {
            public final void onActivityResult(Object obj) {
                AgentAccountFragment.chatLauncher$lambda$1(AgentAccountFragment.this, (ActivityResult) obj);
            }
        });
        Intrinsics.checkNotNullExpressionValue(registerForActivityResult2, "registerForActivityResul….getBroadcastChat()\n    }");
        this.chatLauncher = registerForActivityResult2;
        ActivityResultLauncher<Intent> registerForActivityResult3 = registerForActivityResult((ActivityResultContract) new ActivityResultContracts.StartActivityForResult(), new ActivityResultCallback() {
            public final void onActivityResult(Object obj) {
                AgentAccountFragment.agentChatLauncher$lambda$2(AgentAccountFragment.this, (ActivityResult) obj);
            }
        });
        Intrinsics.checkNotNullExpressionValue(registerForActivityResult3, "registerForActivityResul…gentBroadcastChat()\n    }");
        this.agentChatLauncher = registerForActivityResult3;
        ActivityResultLauncher<Intent> registerForActivityResult4 = registerForActivityResult((ActivityResultContract) new ActivityResultContracts.StartActivityForResult(), new ActivityResultCallback() {
            public final void onActivityResult(Object obj) {
                AgentAccountFragment.importantChatLauncher$lambda$3(AgentAccountFragment.this, (ActivityResult) obj);
            }
        });
        Intrinsics.checkNotNullExpressionValue(registerForActivityResult4, "registerForActivityResul…rtantNotification()\n    }");
        this.importantChatLauncher = registerForActivityResult4;
        ActivityResultLauncher<Intent> registerForActivityResult5 = registerForActivityResult((ActivityResultContract) new ActivityResultContracts.StartActivityForResult(), new ActivityResultCallback() {
            public final void onActivityResult(Object obj) {
                AgentAccountFragment.supportChatLauncher$lambda$4(AgentAccountFragment.this, (ActivityResult) obj);
            }
        });
        Intrinsics.checkNotNullExpressionValue(registerForActivityResult5, "registerForActivityResul…pportNotification()\n    }");
        this.supportChatLauncher = registerForActivityResult5;
        final AgentAccountFragment agentAccountFragment = this;
        final Function0<Fragment> function0 = new Function0<Fragment>() {
            {
                super(0);
            }

            public final Fragment m1323invoke() {
                return agentAccountFragment;
            }
        };
        final Lazy lazy = LazyKt.lazy(LazyThreadSafetyMode.NONE, new Function0<ViewModelStoreOwner>() {
            {
                super(0);
            }

            public final ViewModelStoreOwner m1324invoke() {
                return (ViewModelStoreOwner) function0.invoke();
            }
        });
        final Function0 function02 = null;
        this.viewModel = FragmentViewModelLazyKt.createViewModelLazy(agentAccountFragment, Reflection.getOrCreateKotlinClass(AccountViewModel.class), new Function0<ViewModelStore>() {
            {
                super(0);
            }

            public final ViewModelStore m1325invoke() {
                ViewModelStore viewModelStore = FragmentViewModelLazyKt.access$viewModels$lambda-1(lazy).getViewModelStore();
                Intrinsics.checkNotNullExpressionValue(viewModelStore, "owner.viewModelStore");
                return viewModelStore;
            }
        }, new Function0<CreationExtras>() {
            {
                super(0);
            }

            public final CreationExtras m1326invoke() {
                CreationExtras creationExtras;
                Function0 function03 = function02;
                if (function03 != null && (creationExtras = (CreationExtras) function03.invoke()) != null) {
                    return creationExtras;
                }
                HasDefaultViewModelProviderFactory hasDefaultViewModelProviderFactory = FragmentViewModelLazyKt.access$viewModels$lambda-1(lazy);
                HasDefaultViewModelProviderFactory hasDefaultViewModelProviderFactory2 = hasDefaultViewModelProviderFactory instanceof HasDefaultViewModelProviderFactory ? hasDefaultViewModelProviderFactory : null;
                CreationExtras defaultViewModelCreationExtras = hasDefaultViewModelProviderFactory2 != null ? hasDefaultViewModelProviderFactory2.getDefaultViewModelCreationExtras() : null;
                return defaultViewModelCreationExtras == null ? CreationExtras.Empty.INSTANCE : defaultViewModelCreationExtras;
            }
        }, new Function0<ViewModelProvider.Factory>() {
            {
                super(0);
            }

            public final ViewModelProvider.Factory m1327invoke() {
                ViewModelProvider.Factory defaultViewModelProviderFactory;
                HasDefaultViewModelProviderFactory hasDefaultViewModelProviderFactory = FragmentViewModelLazyKt.access$viewModels$lambda-1(lazy);
                HasDefaultViewModelProviderFactory hasDefaultViewModelProviderFactory2 = hasDefaultViewModelProviderFactory instanceof HasDefaultViewModelProviderFactory ? hasDefaultViewModelProviderFactory : null;
                if (hasDefaultViewModelProviderFactory2 == null || (defaultViewModelProviderFactory = hasDefaultViewModelProviderFactory2.getDefaultViewModelProviderFactory()) == null) {
                    defaultViewModelProviderFactory = agentAccountFragment.getDefaultViewModelProviderFactory();
                }
                Intrinsics.checkNotNullExpressionValue(defaultViewModelProviderFactory, "(owner as? HasDefaultVie…tViewModelProviderFactory");
                return defaultViewModelProviderFactory;
            }
        });
        this.resume = true;
    }

    public final ActivityResultLauncher<Intent> getLauncher() {
        return this.launcher;
    }

    public final void setLauncher(ActivityResultLauncher<Intent> activityResultLauncher) {
        Intrinsics.checkNotNullParameter(activityResultLauncher, "<set-?>");
        this.launcher = activityResultLauncher;
    }

    public static final void launcher$lambda$0(AgentAccountFragment agentAccountFragment, ActivityResult activityResult) {
        Intrinsics.checkNotNullParameter(agentAccountFragment, "this$0");
        Intrinsics.checkNotNullParameter(activityResult, "result");
        if (activityResult.getResultCode() == -1) {
            AccountViewModel.getUserDetails$default(agentAccountFragment.getViewModel(), false, false, 3, null);
        }
    }

    public final ActivityResultLauncher<Intent> getChatLauncher() {
        return this.chatLauncher;
    }

    public final void setChatLauncher(ActivityResultLauncher<Intent> activityResultLauncher) {
        Intrinsics.checkNotNullParameter(activityResultLauncher, "<set-?>");
        this.chatLauncher = activityResultLauncher;
    }

    public static final void chatLauncher$lambda$1(AgentAccountFragment agentAccountFragment, ActivityResult activityResult) {
        Intrinsics.checkNotNullParameter(agentAccountFragment, "this$0");
        agentAccountFragment.getViewModel().getBroadcastChat();
    }

    public final ActivityResultLauncher<Intent> getAgentChatLauncher() {
        return this.agentChatLauncher;
    }

    public final void setAgentChatLauncher(ActivityResultLauncher<Intent> activityResultLauncher) {
        Intrinsics.checkNotNullParameter(activityResultLauncher, "<set-?>");
        this.agentChatLauncher = activityResultLauncher;
    }

    public static final void agentChatLauncher$lambda$2(AgentAccountFragment agentAccountFragment, ActivityResult activityResult) {
        Intrinsics.checkNotNullParameter(agentAccountFragment, "this$0");
        agentAccountFragment.getViewModel().getAgentBroadcastChat();
    }

    public final ActivityResultLauncher<Intent> getImportantChatLauncher() {
        return this.importantChatLauncher;
    }

    public final void setImportantChatLauncher(ActivityResultLauncher<Intent> activityResultLauncher) {
        Intrinsics.checkNotNullParameter(activityResultLauncher, "<set-?>");
        this.importantChatLauncher = activityResultLauncher;
    }

    public static final void importantChatLauncher$lambda$3(AgentAccountFragment agentAccountFragment, ActivityResult activityResult) {
        Intrinsics.checkNotNullParameter(agentAccountFragment, "this$0");
        agentAccountFragment.getViewModel().getAgentImportantNotification();
    }

    public final ActivityResultLauncher<Intent> getSupportChatLauncher() {
        return this.supportChatLauncher;
    }

    public final void setSupportChatLauncher(ActivityResultLauncher<Intent> activityResultLauncher) {
        Intrinsics.checkNotNullParameter(activityResultLauncher, "<set-?>");
        this.supportChatLauncher = activityResultLauncher;
    }

    public static final void supportChatLauncher$lambda$4(AgentAccountFragment agentAccountFragment, ActivityResult activityResult) {
        Intrinsics.checkNotNullParameter(agentAccountFragment, "this$0");
        agentAccountFragment.getViewModel().getAgentSupportNotification();
    }

    public final AccountViewModel getViewModel() {
        return (AccountViewModel) this.viewModel.getValue();
    }

    public final boolean getResume() {
        return this.resume;
    }

    public final void setResume(boolean z) {
        this.resume = z;
    }

    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        Intrinsics.checkNotNullParameter(inflater, "inflater");
        FragmentAgentAccountBinding inflate = FragmentAgentAccountBinding.inflate(getLayoutInflater());
        Intrinsics.checkNotNullExpressionValue(inflate, "inflate(layoutInflater)");
        this.binding = inflate;
        if (inflate == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
            inflate = null;
        }
        View root = inflate.getRoot();
        Intrinsics.checkNotNullExpressionValue(root, "binding.root");
        return root;
    }

    public void onViewCreated(View view, Bundle savedInstanceState) {
        Intrinsics.checkNotNullParameter(view, "view");
        super.onViewCreated(view, savedInstanceState);
        setupRv();
        observeEvent();
        onClicks();
        swipe();
    }

    public final void refresh() {
        AccountViewModel.getUserDetails$default(getViewModel(), false, false, 3, null);
    }

    private final void swipe() {
        FragmentAgentAccountBinding fragmentAgentAccountBinding = this.binding;
        if (fragmentAgentAccountBinding == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
            fragmentAgentAccountBinding = null;
        }
        fragmentAgentAccountBinding.swipeRefresh.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {
            public final void onRefresh() {
                AgentAccountFragment.swipe$lambda$5(AgentAccountFragment.this);
            }
        });
    }

    public static final void swipe$lambda$5(AgentAccountFragment agentAccountFragment) {
        Intrinsics.checkNotNullParameter(agentAccountFragment, "this$0");
        FragmentAgentAccountBinding fragmentAgentAccountBinding = agentAccountFragment.binding;
        if (fragmentAgentAccountBinding == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
            fragmentAgentAccountBinding = null;
        }
        fragmentAgentAccountBinding.swipeRefresh.setRefreshing(false);
        agentAccountFragment.refresh();
    }

    private final void onClicks() {
        FragmentAgentAccountBinding fragmentAgentAccountBinding = this.binding;
        FragmentAgentAccountBinding fragmentAgentAccountBinding2 = null;
        if (fragmentAgentAccountBinding == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
            fragmentAgentAccountBinding = null;
        }
        fragmentAgentAccountBinding.settingBtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                AgentAccountFragment.onClicks$lambda$7(AgentAccountFragment.this, view);
            }
        });
        FragmentAgentAccountBinding fragmentAgentAccountBinding3 = this.binding;
        if (fragmentAgentAccountBinding3 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
            fragmentAgentAccountBinding3 = null;
        }
        fragmentAgentAccountBinding3.myEarningBtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                AgentAccountFragment.onClicks$lambda$9(AgentAccountFragment.this, view);
            }
        });
        FragmentAgentAccountBinding fragmentAgentAccountBinding4 = this.binding;
        if (fragmentAgentAccountBinding4 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
            fragmentAgentAccountBinding4 = null;
        }
        fragmentAgentAccountBinding4.myWithdrawBtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                AgentAccountFragment.onClicks$lambda$11(AgentAccountFragment.this, view);
            }
        });
        FragmentAgentAccountBinding fragmentAgentAccountBinding5 = this.binding;
        if (fragmentAgentAccountBinding5 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
            fragmentAgentAccountBinding5 = null;
        }
        fragmentAgentAccountBinding5.myRefCode.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                AgentAccountFragment.onClicks$lambda$12(AgentAccountFragment.this, view);
            }
        });
        FragmentAgentAccountBinding fragmentAgentAccountBinding6 = this.binding;
        if (fragmentAgentAccountBinding6 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
            fragmentAgentAccountBinding6 = null;
        }
        fragmentAgentAccountBinding6.myStreamerBtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                AgentAccountFragment.onClicks$lambda$14(AgentAccountFragment.this, view);
            }
        });
        FragmentAgentAccountBinding fragmentAgentAccountBinding7 = this.binding;
        if (fragmentAgentAccountBinding7 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
            fragmentAgentAccountBinding7 = null;
        }
        fragmentAgentAccountBinding7.myAgentBtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                AgentAccountFragment.onClicks$lambda$16(AgentAccountFragment.this, view);
            }
        });
        FragmentAgentAccountBinding fragmentAgentAccountBinding8 = this.binding;
        if (fragmentAgentAccountBinding8 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
            fragmentAgentAccountBinding8 = null;
        }
        fragmentAgentAccountBinding8.myReferrals.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                AgentAccountFragment.onClicks$lambda$18(AgentAccountFragment.this, view);
            }
        });
        FragmentAgentAccountBinding fragmentAgentAccountBinding9 = this.binding;
        if (fragmentAgentAccountBinding9 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
            fragmentAgentAccountBinding9 = null;
        }
        fragmentAgentAccountBinding9.broadcastBtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                AgentAccountFragment.onClicks$lambda$19(AgentAccountFragment.this, view);
            }
        });
        FragmentAgentAccountBinding fragmentAgentAccountBinding10 = this.binding;
        if (fragmentAgentAccountBinding10 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
            fragmentAgentAccountBinding10 = null;
        }
        fragmentAgentAccountBinding10.agentBroadcastBtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                AgentAccountFragment.onClicks$lambda$20(AgentAccountFragment.this, view);
            }
        });
        FragmentAgentAccountBinding fragmentAgentAccountBinding11 = this.binding;
        if (fragmentAgentAccountBinding11 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
            fragmentAgentAccountBinding11 = null;
        }
        fragmentAgentAccountBinding11.importantNotificationBtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                AgentAccountFragment.onClicks$lambda$21(AgentAccountFragment.this, view);
            }
        });
        FragmentAgentAccountBinding fragmentAgentAccountBinding12 = this.binding;
        if (fragmentAgentAccountBinding12 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
            fragmentAgentAccountBinding12 = null;
        }
        fragmentAgentAccountBinding12.supportNotificationBtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                AgentAccountFragment.onClicks$lambda$22(AgentAccountFragment.this, view);
            }
        });
        FragmentAgentAccountBinding fragmentAgentAccountBinding13 = this.binding;
        if (fragmentAgentAccountBinding13 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
            fragmentAgentAccountBinding13 = null;
        }
        fragmentAgentAccountBinding13.myRefEarn.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                AgentAccountFragment.onClicks$lambda$24(AgentAccountFragment.this, view);
            }
        });
        FragmentAgentAccountBinding fragmentAgentAccountBinding14 = this.binding;
        if (fragmentAgentAccountBinding14 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
            fragmentAgentAccountBinding14 = null;
        }
        fragmentAgentAccountBinding14.bindAgency.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                AgentAccountFragment.onClicks$lambda$25(AgentAccountFragment.this, view);
            }
        });
        FragmentAgentAccountBinding fragmentAgentAccountBinding15 = this.binding;
        if (fragmentAgentAccountBinding15 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
            fragmentAgentAccountBinding15 = null;
        }
        fragmentAgentAccountBinding15.userId.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                AgentAccountFragment.onClicks$lambda$27(AgentAccountFragment.this, view);
            }
        });
        FragmentAgentAccountBinding fragmentAgentAccountBinding16 = this.binding;
        if (fragmentAgentAccountBinding16 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
        } else {
            fragmentAgentAccountBinding2 = fragmentAgentAccountBinding16;
        }
        fragmentAgentAccountBinding2.levelBtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                AgentAccountFragment.onClicks$lambda$29(AgentAccountFragment.this, view);
            }
        });
    }

    public static final void onClicks$lambda$7(AgentAccountFragment agentAccountFragment, View view) {
        Intrinsics.checkNotNullParameter(agentAccountFragment, "this$0");
        agentAccountFragment.startActivity(new Intent(agentAccountFragment.requireContext(), (Class<?>) SettingsActivity.class));
    }

    public static final void onClicks$lambda$9(AgentAccountFragment agentAccountFragment, View view) {
        Intrinsics.checkNotNullParameter(agentAccountFragment, "this$0");
        agentAccountFragment.startActivity(new Intent(agentAccountFragment.requireContext(), (Class<?>) MyEarningActivity.class));
    }

    public static final void onClicks$lambda$11(AgentAccountFragment agentAccountFragment, View view) {
        Intrinsics.checkNotNullParameter(agentAccountFragment, "this$0");
        agentAccountFragment.startActivity(new Intent(agentAccountFragment.requireContext(), (Class<?>) WithdrawActivity.class));
    }

    public static final void onClicks$lambda$12(AgentAccountFragment agentAccountFragment, View view) {
        Intrinsics.checkNotNullParameter(agentAccountFragment, "this$0");
        Context requireContext = agentAccountFragment.requireContext();
        Intrinsics.checkNotNullExpressionValue(requireContext, "requireContext()");
        FragmentAgentAccountBinding fragmentAgentAccountBinding = agentAccountFragment.binding;
        if (fragmentAgentAccountBinding == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
            fragmentAgentAccountBinding = null;
        }
        Helper.copyToClipboard(requireContext, fragmentAgentAccountBinding.referralCode.getText().toString());
    }

    public static final void onClicks$lambda$14(AgentAccountFragment agentAccountFragment, View view) {
        Intrinsics.checkNotNullParameter(agentAccountFragment, "this$0");
        agentAccountFragment.startActivity(new Intent(agentAccountFragment.requireContext(), (Class<?>) MyStreamerActivity.class));
    }

    public static final void onClicks$lambda$16(AgentAccountFragment agentAccountFragment, View view) {
        Intrinsics.checkNotNullParameter(agentAccountFragment, "this$0");
        agentAccountFragment.startActivity(new Intent(agentAccountFragment.requireContext(), (Class<?>) MySubAgentActivity.class));
    }

    public static final void onClicks$lambda$18(AgentAccountFragment agentAccountFragment, View view) {
        Intrinsics.checkNotNullParameter(agentAccountFragment, "this$0");
        agentAccountFragment.startActivity(new Intent(agentAccountFragment.requireContext(), (Class<?>) StreamerAgentReferralForAgentsActivity.class));
    }

    public static final void onClicks$lambda$19(AgentAccountFragment agentAccountFragment, View view) {
        Intrinsics.checkNotNullParameter(agentAccountFragment, "this$0");
        agentAccountFragment.chatLauncher.launch(new Intent(agentAccountFragment.getContext(), (Class<?>) StreamerBroadcastChatActivity.class));
    }

    public static final void onClicks$lambda$20(AgentAccountFragment agentAccountFragment, View view) {
        Intrinsics.checkNotNullParameter(agentAccountFragment, "this$0");
        agentAccountFragment.agentChatLauncher.launch(new Intent(agentAccountFragment.getContext(), (Class<?>) AgentBroadcastChatActivity.class));
    }

    public static final void onClicks$lambda$21(AgentAccountFragment agentAccountFragment, View view) {
        Intrinsics.checkNotNullParameter(agentAccountFragment, "this$0");
        agentAccountFragment.importantChatLauncher.launch(new Intent(agentAccountFragment.getContext(), (Class<?>) NotificationChatActivity.class));
    }

    public static final void onClicks$lambda$22(AgentAccountFragment agentAccountFragment, View view) {
        Intrinsics.checkNotNullParameter(agentAccountFragment, "this$0");
        agentAccountFragment.supportChatLauncher.launch(new Intent(agentAccountFragment.getContext(), (Class<?>) SupportChatActivity.class));
    }

    public static final void onClicks$lambda$24(AgentAccountFragment agentAccountFragment, View view) {
        Intrinsics.checkNotNullParameter(agentAccountFragment, "this$0");
        agentAccountFragment.startActivity(new Intent(agentAccountFragment.requireContext(), (Class<?>) MyReferralActivity.class));
    }

    public static final void onClicks$lambda$25(AgentAccountFragment agentAccountFragment, View view) {
        Intrinsics.checkNotNullParameter(agentAccountFragment, "this$0");
        agentAccountFragment.openAgencyDialog();
    }

    public static final void onClicks$lambda$27(AgentAccountFragment agentAccountFragment, View view) {
        Intrinsics.checkNotNullParameter(agentAccountFragment, "this$0");
        long userId = agentAccountFragment.getViewModel().getUserId();
        if (userId != -1) {
            Context requireContext = agentAccountFragment.requireContext();
            Intrinsics.checkNotNullExpressionValue(requireContext, "requireContext()");
            Helper.copyToClipboard(requireContext, String.valueOf(userId));
        }
    }

    public static final void onClicks$lambda$29(AgentAccountFragment agentAccountFragment, View view) {
        Intrinsics.checkNotNullParameter(agentAccountFragment, "this$0");
        agentAccountFragment.startActivity(new Intent(agentAccountFragment.requireContext(), (Class<?>) AgentLevelDetailsActivity.class));
    }

    private final void openAgencyDialog() {
        final ReferralCodeInputLayoutBinding inflate = ReferralCodeInputLayoutBinding.inflate(getLayoutInflater());
        Intrinsics.checkNotNullExpressionValue(inflate, "inflate(layoutInflater)");
        MaterialAlertDialogBuilder materialAlertDialogBuilder = new MaterialAlertDialogBuilder(requireContext());
        materialAlertDialogBuilder.setView(inflate.getRoot());
        final AlertDialog create = materialAlertDialogBuilder.create();
        Intrinsics.checkNotNullExpressionValue(create, "builder.create()");
        try {
            Window window = create.getWindow();
            if (window != null) {
                window.setSoftInputMode(4);
            }
            inflate.code.requestFocus();
        } catch (Exception e) {
            e.printStackTrace();
        }
        inflate.submit.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                AgentAccountFragment.openAgencyDialog$lambda$30(ReferralCodeInputLayoutBinding.this, this, create, view);
            }
        });
        inflate.cancel.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                AgentAccountFragment.openAgencyDialog$lambda$31(create, view);
            }
        });
        create.show();
    }

    public static final void openAgencyDialog$lambda$30(ReferralCodeInputLayoutBinding referralCodeInputLayoutBinding, AgentAccountFragment agentAccountFragment, AlertDialog alertDialog, View view) {
        Intrinsics.checkNotNullParameter(referralCodeInputLayoutBinding, "$dialogBinding");
        Intrinsics.checkNotNullParameter(agentAccountFragment, "this$0");
        Intrinsics.checkNotNullParameter(alertDialog, "$dialog");
        String valueOf = String.valueOf(referralCodeInputLayoutBinding.code.getText());
        String str = valueOf;
        if (!(str == null || str.length() == 0)) {
            agentAccountFragment.getViewModel().sendReferrer("usercode=" + valueOf);
            alertDialog.dismiss();
            return;
        }
        Toast.makeText(agentAccountFragment.requireContext(), "Agency referral code can't be empty", 0).show();
    }

    public static final void openAgencyDialog$lambda$31(AlertDialog alertDialog, View view) {
        Intrinsics.checkNotNullParameter(alertDialog, "$dialog");
        alertDialog.dismiss();
    }

    private final Job observeEvent() {
        return BuildersKt.launch$default(LifecycleOwnerKt.getLifecycleScope((LifecycleOwner) this), (CoroutineContext) null, (CoroutineStart) null, new AgentAccountFragment$observeEvent$1(this, null), 3, (Object) null);
    }

    public final void handleBroadcastChat(app.callpe.data.model.GroupListModel r13) {
        throw new UnsupportedOperationException("Method not decompiled: app.callpe.ui.home.AgentAccountFragment.handleBroadcastChat(app.callpe.data.model.GroupListModel):void");
    }

    public final void handleAgentImportantMessage(app.callpe.data.model.GroupListModel r13) {
        throw new UnsupportedOperationException("Method not decompiled: app.callpe.ui.home.AgentAccountFragment.handleAgentImportantMessage(app.callpe.data.model.GroupListModel):void");
    }

    public final void handleAgentSupportMessage(app.callpe.data.model.GroupListModel r13) {
        throw new UnsupportedOperationException("Method not decompiled: app.callpe.ui.home.AgentAccountFragment.handleAgentSupportMessage(app.callpe.data.model.GroupListModel):void");
    }

    public final void handleAgentBroadcastChat(app.callpe.data.model.GroupListModel r13) {
        throw new UnsupportedOperationException("Method not decompiled: app.callpe.ui.home.AgentAccountFragment.handleAgentBroadcastChat(app.callpe.data.model.GroupListModel):void");
    }

    public final void handleUi(app.callpe.data.model.Metadata data) {
        FragmentAgentAccountBinding fragmentAgentAccountBinding = this.binding;
        if (fragmentAgentAccountBinding == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
            fragmentAgentAccountBinding = null;
        }
        View view = fragmentAgentAccountBinding.levelBtn;
        Intrinsics.checkNotNullExpressionValue(view, "binding.levelBtn");
        view.setVisibility(data.getAgencyLevelEnabled() ? 0 : 8);
    }

    public final void setReferralCode(User user) {
        String referralCode = user.getReferralCode();
        FragmentAgentAccountBinding fragmentAgentAccountBinding = null;
        if (referralCode != null) {
            FragmentAgentAccountBinding fragmentAgentAccountBinding2 = this.binding;
            if (fragmentAgentAccountBinding2 == null) {
                Intrinsics.throwUninitializedPropertyAccessException("binding");
                fragmentAgentAccountBinding2 = null;
            }
            fragmentAgentAccountBinding2.referralCode.setText(referralCode);
        }
        FragmentAgentAccountBinding fragmentAgentAccountBinding3 = this.binding;
        if (fragmentAgentAccountBinding3 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
        } else {
            fragmentAgentAccountBinding = fragmentAgentAccountBinding3;
        }
        View view = fragmentAgentAccountBinding.bindAgency;
        Intrinsics.checkNotNullExpressionValue(view, "binding.bindAgency");
        View view2 = view;
        String referredBy = user.getReferredBy();
        view2.setVisibility(referredBy == null || referredBy.length() == 0 ? 0 : 8);
    }

    public final void setUserId(User user) {
        getViewModel().setUserId(user.getId());
        String str = getString(2131952136) + ':' + user.getId();
        FragmentAgentAccountBinding fragmentAgentAccountBinding = this.binding;
        FragmentAgentAccountBinding fragmentAgentAccountBinding2 = null;
        if (fragmentAgentAccountBinding == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
            fragmentAgentAccountBinding = null;
        }
        fragmentAgentAccountBinding.userId.setText(str);
        FragmentAgentAccountBinding fragmentAgentAccountBinding3 = this.binding;
        if (fragmentAgentAccountBinding3 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
            fragmentAgentAccountBinding3 = null;
        }
        TextView textView = fragmentAgentAccountBinding3.userId;
        FragmentAgentAccountBinding fragmentAgentAccountBinding4 = this.binding;
        if (fragmentAgentAccountBinding4 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
        } else {
            fragmentAgentAccountBinding2 = fragmentAgentAccountBinding4;
        }
        textView.setPaintFlags(fragmentAgentAccountBinding2.userId.getPaintFlags() | 8);
    }

    private final void handleKyc(app.callpe.data.model.Metadata metadata) {
        KycData kycData = metadata.getUser().getKycData();
        FragmentAgentAccountBinding fragmentAgentAccountBinding = null;
        String kycStatus = kycData != null ? kycData.getKycStatus() : null;
        if (kycStatus != null) {
            switch (kycStatus.hashCode()) {
                case -1159694117:
                    if (kycStatus.equals("SUBMITTED")) {
                        FragmentAgentAccountBinding fragmentAgentAccountBinding2 = this.binding;
                        if (fragmentAgentAccountBinding2 == null) {
                            Intrinsics.throwUninitializedPropertyAccessException("binding");
                            fragmentAgentAccountBinding2 = null;
                        }
                        View view = fragmentAgentAccountBinding2.kycParent;
                        Intrinsics.checkNotNullExpressionValue(view, "binding.kycParent");
                        view.setVisibility(0);
                        FragmentAgentAccountBinding fragmentAgentAccountBinding3 = this.binding;
                        if (fragmentAgentAccountBinding3 == null) {
                            Intrinsics.throwUninitializedPropertyAccessException("binding");
                            fragmentAgentAccountBinding3 = null;
                        }
                        ImageView imageView = fragmentAgentAccountBinding3.kycForwardClick;
                        Intrinsics.checkNotNullExpressionValue(imageView, "binding.kycForwardClick");
                        imageView.setVisibility(8);
                        FragmentAgentAccountBinding fragmentAgentAccountBinding4 = this.binding;
                        if (fragmentAgentAccountBinding4 == null) {
                            Intrinsics.throwUninitializedPropertyAccessException("binding");
                        } else {
                            fragmentAgentAccountBinding = fragmentAgentAccountBinding4;
                        }
                        fragmentAgentAccountBinding.kycStatus.setText(getString(2131952936));
                        kycClick(false);
                        return;
                    }
                    return;
                case 174130302:
                    if (kycStatus.equals("REJECTED")) {
                        FragmentAgentAccountBinding fragmentAgentAccountBinding5 = this.binding;
                        if (fragmentAgentAccountBinding5 == null) {
                            Intrinsics.throwUninitializedPropertyAccessException("binding");
                            fragmentAgentAccountBinding5 = null;
                        }
                        fragmentAgentAccountBinding5.kycStatus.setText(getString(2131952517));
                        FragmentAgentAccountBinding fragmentAgentAccountBinding6 = this.binding;
                        if (fragmentAgentAccountBinding6 == null) {
                            Intrinsics.throwUninitializedPropertyAccessException("binding");
                            fragmentAgentAccountBinding6 = null;
                        }
                        View view2 = fragmentAgentAccountBinding6.kycParent;
                        Intrinsics.checkNotNullExpressionValue(view2, "binding.kycParent");
                        view2.setVisibility(0);
                        FragmentAgentAccountBinding fragmentAgentAccountBinding7 = this.binding;
                        if (fragmentAgentAccountBinding7 == null) {
                            Intrinsics.throwUninitializedPropertyAccessException("binding");
                        } else {
                            fragmentAgentAccountBinding = fragmentAgentAccountBinding7;
                        }
                        ImageView imageView2 = fragmentAgentAccountBinding.kycForwardClick;
                        Intrinsics.checkNotNullExpressionValue(imageView2, "binding.kycForwardClick");
                        imageView2.setVisibility(0);
                        kycClick(true);
                        return;
                    }
                    return;
                case 1746537160:
                    if (!kycStatus.equals("CREATED")) {
                        return;
                    }
                    break;
                case 1967871671:
                    if (kycStatus.equals("APPROVED")) {
                        FragmentAgentAccountBinding fragmentAgentAccountBinding8 = this.binding;
                        if (fragmentAgentAccountBinding8 == null) {
                            Intrinsics.throwUninitializedPropertyAccessException("binding");
                            fragmentAgentAccountBinding8 = null;
                        }
                        View view3 = fragmentAgentAccountBinding8.kycParent;
                        Intrinsics.checkNotNullExpressionValue(view3, "binding.kycParent");
                        view3.setVisibility(8);
                        FragmentAgentAccountBinding fragmentAgentAccountBinding9 = this.binding;
                        if (fragmentAgentAccountBinding9 == null) {
                            Intrinsics.throwUninitializedPropertyAccessException("binding");
                        } else {
                            fragmentAgentAccountBinding = fragmentAgentAccountBinding9;
                        }
                        ImageView imageView3 = fragmentAgentAccountBinding.kycForwardClick;
                        Intrinsics.checkNotNullExpressionValue(imageView3, "binding.kycForwardClick");
                        imageView3.setVisibility(8);
                        kycClick(false);
                        return;
                    }
                    return;
                default:
                    return;
            }
        }
        FragmentAgentAccountBinding fragmentAgentAccountBinding10 = this.binding;
        if (fragmentAgentAccountBinding10 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
            fragmentAgentAccountBinding10 = null;
        }
        View view4 = fragmentAgentAccountBinding10.kycParent;
        Intrinsics.checkNotNullExpressionValue(view4, "binding.kycParent");
        view4.setVisibility(0);
        FragmentAgentAccountBinding fragmentAgentAccountBinding11 = this.binding;
        if (fragmentAgentAccountBinding11 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
            fragmentAgentAccountBinding11 = null;
        }
        ImageView imageView4 = fragmentAgentAccountBinding11.kycForwardClick;
        Intrinsics.checkNotNullExpressionValue(imageView4, "binding.kycForwardClick");
        imageView4.setVisibility(0);
        FragmentAgentAccountBinding fragmentAgentAccountBinding12 = this.binding;
        if (fragmentAgentAccountBinding12 == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
        } else {
            fragmentAgentAccountBinding = fragmentAgentAccountBinding12;
        }
        fragmentAgentAccountBinding.kycStatus.setText(getString(2131952418));
        kycClick(true);
    }

    private final void kycClick(final boolean allow) {
        FragmentAgentAccountBinding fragmentAgentAccountBinding = this.binding;
        if (fragmentAgentAccountBinding == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
            fragmentAgentAccountBinding = null;
        }
        fragmentAgentAccountBinding.kycParent.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                AgentAccountFragment.kycClick$lambda$34(allow, this, view);
            }
        });
    }

    public static final void kycClick$lambda$34(boolean z, AgentAccountFragment agentAccountFragment, View view) {
        Intrinsics.checkNotNullParameter(agentAccountFragment, "this$0");
        if (z) {
            Intent intent = new Intent(agentAccountFragment.requireContext(), (Class<?>) KycSubmitActivity.class);
            intent.putExtra("edit", true);
            intent.putExtra("isAgent", true);
            agentAccountFragment.launcher.launch(intent);
        }
    }

    public final void setBalance(Balance balance) {
        int beans = balance.getBeans();
        FragmentAgentAccountBinding fragmentAgentAccountBinding = this.binding;
        if (fragmentAgentAccountBinding == null) {
            Intrinsics.throwUninitializedPropertyAccessException("binding");
            fragmentAgentAccountBinding = null;
        }
        fragmentAgentAccountBinding.myEarnings.setText(String.valueOf(beans));
    }

    public void onResume() {
        super.onResume();
        if (this.resume) {
            refresh();
            this.resume = false;
            refreshScreen = false;
        }
        if (refreshScreen) {
            refresh();
            refreshScreen = false;
        }
    }

    public void onDestroy() {
        super.onDestroy();
        Dialog dialog = this.alertDialog;
        if (dialog != null) {
            if (dialog == null) {
                Intrinsics.throwUninitializedPropertyAccessException("alertDialog");
                dialog = null;
            }
            dialog.dismiss();
        }
    }

    @Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0005\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u001a\u0010\u0003\u001a\u00020\u0004X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0005\u0010\u0006\"\u0004\b\u0007\u0010\b¨\u0006\t"}, d2 = {"Lapp/callpe/ui/home/AgentAccountFragment$Companion;", "", "()V", "refreshScreen", "", "getRefreshScreen", "()Z", "setRefreshScreen", "(Z)V", "app_riloRelease"}, k = 1, mv = {1, 8, 0}, xi = 48)
    public static final class Companion {
        public Companion(DefaultConstructorMarker defaultConstructorMarker) {
            this();
        }

        private Companion() {
        }

        public final boolean getRefreshScreen() {
            return AgentAccountFragment.refreshScreen;
        }

        public final void setRefreshScreen(boolean z) {
            AgentAccountFragment.refreshScreen = z;
        }
    }
}