导航菜单

页面标题

页面副标题

Mitra Bukalapak v2.55.0 - EspressoActivity.java 源代码

正在查看: Mitra Bukalapak v2.55.0 应用的 EspressoActivity.java JAVA 源代码文件

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


package com.bukalapak.mitra.activity;

import android.app.Application;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.os.PersistableBundle;
import android.widget.Toast;
import com.bukalapak.mitra.debug.NeoToggleModifierScreen$Fragment;
import kotlin.Metadata;

@Metadata(d1 = {"\u0000D\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u000e\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0006\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b'\u0010(J\u001c\u0010\u0007\u001a\u00020\u00062\b\u0010\u0003\u001a\u0004\u0018\u00010\u00022\b\u0010\u0005\u001a\u0004\u0018\u00010\u0004H\u0016J\b\u0010\b\u001a\u00020\u0006H\u0016J\b\u0010\t\u001a\u00020\u0006H\u0016J\b\u0010\n\u001a\u00020\u0006H\u0016J\b\u0010\u000b\u001a\u00020\u0006H\u0016J\u0012\u0010\u000e\u001a\u00020\u00062\b\u0010\r\u001a\u0004\u0018\u00010\fH\u0016J\u0018\u0010\u0011\u001a\u00020\u00062\u0006\u0010\u000f\u001a\u00020\f2\u0006\u0010\u0010\u001a\u00020\fH\u0016J\b\u0010\u0012\u001a\u00020\u0006H\u0016R\u0014\u0010\u0016\u001a\u00020\u00138\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0014\u0010\u0015R\u0014\u0010\u001a\u001a\u00020\u00178\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0018\u0010\u0019R\"\u0010\"\u001a\u00020\u001b8\u0006@\u0006X\u0087.¢\u0006\u0012\n\u0004\b\u001c\u0010\u001d\u001a\u0004\b\u001e\u0010\u001f\"\u0004\b \u0010!R\u0014\u0010&\u001a\u00020#8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b$\u0010%¨\u0006)"}, d2 = {"Lcom/bukalapak/mitra/activity/EspressoActivity;", "Lcom/bukalapak/mitra/activity/a;", "Landroid/os/Bundle;", "savedInstanceState", "Landroid/os/PersistableBundle;", "persistentState", "Llm9;", "onCreate", "goToHome", "goToSetting", "goToDevOps", "goToNeoModifierScreen", "", "message", "createToast", "name", "value", "setSplitterExperiment", "setSplitterExperimentDisabled", "Landroid/app/Application;", "d", "Landroid/app/Application;", "app", "Lf4;", "e", "Lf4;", "accountNavigation", "Loq3;", "f", "Loq3;", "getHomeNavigation", "()Loq3;", "setHomeNavigation", "(Loq3;)V", "homeNavigation", "Landroid/content/SharedPreferences;", "g", "Landroid/content/SharedPreferences;", "splitterPref", "<init>", "()V", "base_app_release"}, k = 1, mv = {1, 8, 0})
public final class EspressoActivity extends a {

    private final Application app;

    private final f4 accountNavigation;

    public oq3 homeNavigation;

    private final SharedPreferences splitterPref;

    public EspressoActivity() {
        a aVar = uja.j;
        Application a = aVar.a();
        this.app = a;
        ok a2 = aVar.a();
        p64.f(a2, "null cannot be cast to non-null type com.bukalapak.mitra.lib.navigation.AppNavigationProvider");
        this.accountNavigation = a2.D();
        SharedPreferences sharedPreferences = a.getSharedPreferences(dn4.a.b(), 0);
        p64.g(sharedPreferences, "app.getSharedPreferences…ontext.MODE_PRIVATE\n    )");
        this.splitterPref = sharedPreferences;
    }

    public void createToast(String str) {
        Toast.makeText((Context) this, (CharSequence) str, 1).show();
    }

    public final oq3 getHomeNavigation() {
        oq3 oq3Var = this.homeNavigation;
        if (oq3Var != null) {
            return oq3Var;
        }
        p64.t("homeNavigation");
        return null;
    }

    public void goToDevOps() {
        hg5.a.d(this);
    }

    public void goToHome() {
        a.c(getHomeNavigation(), this, 0, (String) null, (String) null, (String) null, (Long) null, (String) null, false, true, (String) null, false, 1790, (Object) null);
    }

    public void goToNeoModifierScreen() {
        hg5.j(hg5.a, this, new NeoToggleModifierScreen$Fragment(), false, (Bundle) null, (gx2) null, 28, (Object) null);
    }

    public void goToSetting() {
        a.t(this.accountNavigation, this, (String) null, 0, (String) null, (String) null, 24, (Object) null);
    }

    public void onCreate(Bundle bundle, PersistableBundle persistableBundle) {
        super/*android.app.Activity*/.onCreate(bundle, persistableBundle);
        setContentView(ab7.c);
    }

    public final void setHomeNavigation(oq3 oq3Var) {
        p64.h(oq3Var, "<set-?>");
        this.homeNavigation = oq3Var;
    }

    public void setSplitterExperiment(String str, String str2) {
        p64.h(str, "name");
        p64.h(str2, "value");
        this.splitterPref.edit().putBoolean("devops_modifier_enabled", true).apply();
        this.splitterPref.edit().putString(str, str2).apply();
    }

    public void setSplitterExperimentDisabled() {
        this.splitterPref.edit().putBoolean("devops_modifier_enabled", false).apply();
    }
}