package o;

import ir.devixor.app.MyApp;
import java.io.BufferedReader;
import java.io.File;
import java.io.InputStreamReader;
import org.json.JSONObject;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.tR, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final /* synthetic */ class C2522tR implements InterfaceC0707aL {
    public final /* synthetic */ int l;
    public final /* synthetic */ Object m;

    public /* synthetic */ C2522tR(int i, Object obj) {
        this.l = i;
        this.m = obj;
    }

    @Override // o.InterfaceC0707aL
    public final void f(InterfaceC0898cL interfaceC0898cL, UK uk) {
        int i = this.l;
        boolean zC = false;
        Object obj = this.m;
        switch (i) {
            case 0:
                MyApp myApp = (MyApp) obj;
                int i2 = MyApp.l;
                if (uk == UK.ON_STOP) {
                    File file = new File(myApp.getFilesDir(), "status_hide.txt");
                    if (!file.exists() || !F3.c(Za0.o0(AbstractC2008ny.J(file, AbstractC2355rh.a)).toString(), "hide")) {
                        try {
                            zC = F3.c(new JSONObject(As0.O(new BufferedReader(new InputStreamReader(myApp.getAssets().open("auto_hide.json"), AbstractC2355rh.a), 8192))).optString("auto_hide"), "on");
                        } catch (Exception unused) {
                        }
                        if (zC) {
                            C2468sq c2468sq = AbstractC1903ms.a;
                            AbstractC1692kh0.C(UD.l, ExecutorC1232fq.m, new D9(file, null, 7), 2);
                            break;
                        }
                    }
                }
                break;
            default:
                C1830m40 c1830m40 = (C1830m40) obj;
                if (uk != UK.ON_START) {
                    if (uk == UK.ON_STOP) {
                        c1830m40.h = false;
                        break;
                    }
                } else {
                    c1830m40.h = true;
                    break;
                }
                break;
        }
    }
}
