APK反编译源代码展示 - 南明离火平台提供

应用版本信息
应用名称:MiXplorer
版本号:6.67.3
包名称:com.mixplorer

MD5 校验值:13e9f681f5bed77188ac69741746def0

反编译源代码说明

ne2.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。


package libs;

import android.content.SharedPreferences;
import android.graphics.drawable.Drawable;
import android.view.View;
import com.mixplorer.AppImpl;
import com.mixplorer.R;
import com.mixplorer.activities.ConfigServerActivity;
import com.mixplorer.activities.PreferenceActivity;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.concurrent.atomic.AtomicBoolean;

public final class ne2 extends j82 {
    public final int b;
    public final ArrayList c;
    public final zl1 d;
    public final PreferenceActivity e;

    public ne2(PreferenceActivity preferenceActivity, ArrayList arrayList, zl1 zl1Var, int i) {
        this.b = i;
        this.e = preferenceActivity;
        this.c = arrayList;
        this.d = zl1Var;
    }

    private final synchronized void O(View view, int i) {
        Drawable drawable;
        vc0 vc0Var = (vc0) this.c.get(i);
        try {
            int i2 = vc0Var.Z;
            boolean z = false;
            switch (i2) {
                case R.string.export:
                    PreferenceActivity.s0(this.e, 0, null, null);
                    this.d.dismiss();
                    return;
                case R.string.reset:
                    PreferenceActivity.j0(this.e);
                    this.d.dismiss();
                    return;
                case R.string.settings_full_wake_lock:
                    j53 j53Var = AppImpl.Z;
                    boolean z2 = !j53Var.n();
                    SharedPreferences.Editor editor = j53Var.Q0;
                    editor.putBoolean("full_wake_lock", z2);
                    editor.commit();
                    AtomicBoolean atomicBoolean = j53Var.k0;
                    if (atomicBoolean != null) {
                        atomicBoolean.set(z2);
                    }
                    z = AppImpl.Z.n();
                    break;
                case R.string.settings_keep_last_modified:
                    j53 j53Var2 = AppImpl.Z;
                    boolean z3 = !j53Var2.u0();
                    SharedPreferences.Editor editor2 = j53Var2.Q0;
                    editor2.putBoolean("keep_last_modified", z3);
                    editor2.commit();
                    AtomicBoolean atomicBoolean2 = j53Var2.o0;
                    if (atomicBoolean2 != null) {
                        atomicBoolean2.set(z3);
                    }
                    z = AppImpl.Z.u0();
                    break;
                case R.string.settings_merge_tasks:
                    j53 j53Var3 = AppImpl.Z;
                    boolean z4 = !j53Var3.p();
                    SharedPreferences.Editor editor3 = j53Var3.Q0;
                    editor3.putBoolean("merge_tasks", z4);
                    editor3.commit();
                    AtomicBoolean atomicBoolean3 = j53Var3.m0;
                    if (atomicBoolean3 != null) {
                        atomicBoolean3.set(z4);
                    }
                    z = AppImpl.Z.p();
                    break;
                default:
                    switch (i2) {
                        case R.string.settings_allow_root:
                            AppImpl.Z.C0(!r6.b());
                            z = AppImpl.Z.b();
                            PreferenceActivity preferenceActivity = this.e;
                            int i3 = preferenceActivity.v2 | 2052;
                            preferenceActivity.v2 = i3;
                            preferenceActivity.setResult(i3);
                            break;
                        case R.string.settings_allow_shizuku:
                            j53 j53Var4 = AppImpl.Z;
                            boolean z5 = !j53Var4.c();
                            SharedPreferences.Editor editor4 = j53Var4.Q0;
                            editor4.putBoolean("shizuku", z5);
                            editor4.commit();
                            AtomicBoolean atomicBoolean4 = j53Var4.g0;
                            if (atomicBoolean4 != null) {
                                atomicBoolean4.set(z5);
                            }
                            z = AppImpl.Z.c();
                            break;
                        case R.string.settings_animations:
                            j53 j53Var5 = AppImpl.Z;
                            boolean z6 = !j53Var5.a();
                            SharedPreferences.Editor editor5 = j53Var5.Q0;
                            editor5.putBoolean("animations", z6);
                            editor5.commit();
                            AtomicBoolean atomicBoolean5 = j53Var5.f0;
                            if (atomicBoolean5 != null) {
                                atomicBoolean5.set(z6);
                            }
                            z = AppImpl.Z.a();
                            d93.T();
                            PreferenceActivity preferenceActivity2 = this.e;
                            int i4 = preferenceActivity2.v2 | 4;
                            preferenceActivity2.v2 = i4;
                            preferenceActivity2.setResult(i4);
                            break;
                        case R.string.settings_auto_remount:
                            j53 j53Var6 = AppImpl.Z;
                            boolean z7 = !j53Var6.g();
                            SharedPreferences.Editor editor6 = j53Var6.Q0;
                            editor6.putBoolean("auto_remount", z7);
                            editor6.commit();
                            AtomicBoolean atomicBoolean6 = j53Var6.b0;
                            if (atomicBoolean6 != null) {
                                atomicBoolean6.set(z7);
                            }
                            z = AppImpl.Z.g();
                            PreferenceActivity preferenceActivity3 = this.e;
                            int i5 = preferenceActivity3.v2 | 2052;
                            preferenceActivity3.v2 = i5;
                            preferenceActivity3.setResult(i5);
                            break;
                        case R.string.settings_back_to_visited_folder:
                            j53 j53Var7 = AppImpl.Z;
                            boolean z8 = !j53Var7.i();
                            SharedPreferences.Editor editor7 = j53Var7.Q0;
                            editor7.putBoolean("back_to_visited_folder", z8);
                            editor7.commit();
                            AtomicBoolean atomicBoolean7 = j53Var7.n;
                            if (atomicBoolean7 != null) {
                                atomicBoolean7.set(z8);
                            }
                            z = AppImpl.Z.i();
                            break;
                        case R.string.settings_bottom_bar:
                            j53 j53Var8 = AppImpl.Z;
                            boolean z9 = !j53Var8.l0();
                            SharedPreferences.Editor editor8 = j53Var8.Q0;
                            editor8.putBoolean("bottom_bar", z9);
                            editor8.commit();
                            AtomicBoolean atomicBoolean8 = j53Var8.O;
                            if (atomicBoolean8 != null) {
                                atomicBoolean8.set(z9);
                            }
                            z = AppImpl.Z.l0();
                            this.e.J();
                            this.e.findViewById(R.id.main_page).invalidate();
                            AppImpl.X.i(14);
                            PreferenceActivity preferenceActivity4 = this.e;
                            int i6 = preferenceActivity4.v2 | 8;
                            preferenceActivity4.v2 = i6;
                            preferenceActivity4.setResult(i6);
                            break;
                        default:
                            switch (i2) {
                                case R.string.settings_can_undo:
                                    j53 j53Var9 = AppImpl.Z;
                                    boolean z10 = !j53Var9.e();
                                    SharedPreferences.Editor editor9 = j53Var9.Q0;
                                    editor9.putBoolean("can_undo", z10);
                                    editor9.commit();
                                    AtomicBoolean atomicBoolean9 = j53Var9.F0;
                                    if (atomicBoolean9 != null) {
                                        atomicBoolean9.set(z10);
                                    }
                                    z = AppImpl.Z.e();
                                    break;
                                case R.string.settings_custom_datetime:
                                    PreferenceActivity.h0(this.e);
                                    this.d.dismiss();
                                    return;
                                case R.string.settings_custom_otg:
                                    j53 j53Var10 = AppImpl.Z;
                                    boolean z11 = !j53Var10.m0();
                                    SharedPreferences.Editor editor10 = j53Var10.Q0;
                                    editor10.putBoolean("custom_otg", z11);
                                    editor10.commit();
                                    AtomicBoolean atomicBoolean10 = j53Var10.u;
                                    if (atomicBoolean10 != null) {
                                        atomicBoolean10.set(z11);
                                    }
                                    z = AppImpl.Z.m0();
                                    break;
                                case R.string.settings_data_folder_in_root:
                                    j53 j53Var11 = AppImpl.Z;
                                    boolean z12 = !j53Var11.w();
                                    SharedPreferences.Editor editor11 = j53Var11.Q0;
                                    editor11.putBoolean("data_folder_in_root", z12);
                                    editor11.commit();
                                    AtomicBoolean atomicBoolean11 = j53Var11.A;
                                    if (atomicBoolean11 != null) {
                                        atomicBoolean11.set(z12);
                                    }
                                    z = AppImpl.Z.w();
                                    break;
                                case R.string.settings_draw_tab_close:
                                    j53 j53Var12 = AppImpl.Z;
                                    boolean z13 = !j53Var12.l();
                                    SharedPreferences.Editor editor12 = j53Var12.Q0;
                                    editor12.putBoolean("draw_tab_close", z13);
                                    editor12.commit();
                                    AtomicBoolean atomicBoolean12 = j53Var12.w;
                                    if (atomicBoolean12 != null) {
                                        atomicBoolean12.set(z13);
                                    }
                                    z = AppImpl.Z.l();
                                    PreferenceActivity preferenceActivity5 = this.e;
                                    int i7 = preferenceActivity5.v2 | 32;
                                    preferenceActivity5.v2 = i7;
                                    preferenceActivity5.setResult(i7);
                                    break;
                                case R.string.settings_enable_logging:
                                    j53 j53Var13 = AppImpl.Z;
                                    boolean z14 = !j53Var13.r0();
                                    SharedPreferences.Editor editor13 = j53Var13.Q0;
                                    editor13.putBoolean("enable_logging", z14);
                                    editor13.commit();
                                    AtomicBoolean atomicBoolean13 = j53Var13.i0;
                                    if (atomicBoolean13 != null) {
                                        atomicBoolean13.set(z14);
                                    }
                                    z = AppImpl.Z.r0();
                                    if (z) {
                                        AppImpl.M1.O();
                                        PreferenceActivity.k0(this.e);
                                        break;
                                    } else {
                                        new yu1(new fy(12)).start();
                                        break;
                                    }
                                default:
                                    switch (i2) {
                                        case R.string.settings_open_archive:
                                            j53 j53Var14 = AppImpl.Z;
                                            boolean z15 = !j53Var14.s0();
                                            SharedPreferences.Editor editor14 = j53Var14.Q0;
                                            editor14.putBoolean("open_archive", z15);
                                            editor14.commit();
                                            AtomicBoolean atomicBoolean14 = j53Var14.h0;
                                            if (atomicBoolean14 != null) {
                                                atomicBoolean14.set(z15);
                                            }
                                            z = AppImpl.Z.s0();
                                            break;
                                        case R.string.settings_play_background:
                                            j53 j53Var15 = AppImpl.Z;
                                            boolean z16 = !j53Var15.r();
                                            SharedPreferences.Editor editor15 = j53Var15.Q0;
                                            editor15.putBoolean("play_background", z16);
                                            editor15.commit();
                                            AtomicBoolean atomicBoolean15 = j53Var15.N0;
                                            if (atomicBoolean15 != null) {
                                                atomicBoolean15.set(z16);
                                            }
                                            z = AppImpl.Z.r();
                                            break;
                                        case R.string.settings_remember_del_option:
                                            j53 j53Var16 = AppImpl.Z;
                                            boolean z17 = !j53Var16.w0();
                                            SharedPreferences.Editor editor16 = j53Var16.Q0;
                                            editor16.putBoolean("remember_delete_option", z17);
                                            editor16.commit();
                                            AtomicBoolean atomicBoolean16 = j53Var16.H0;
                                            if (atomicBoolean16 != null) {
                                                atomicBoolean16.set(z17);
                                            }
                                            z = AppImpl.Z.w0();
                                            break;
                                        case R.string.settings_select_by_icon:
                                            j53 j53Var17 = AppImpl.Z;
                                            boolean z18 = !j53Var17.t();
                                            SharedPreferences.Editor editor17 = j53Var17.Q0;
                                            editor17.putBoolean("select_by_icon", z18);
                                            editor17.commit();
                                            AtomicBoolean atomicBoolean17 = j53Var17.p;
                                            if (atomicBoolean17 != null) {
                                                atomicBoolean17.set(z18);
                                            }
                                            z = AppImpl.Z.t();
                                            break;
                                        case R.string.settings_show_breadcrumb:
                                            j53 j53Var18 = AppImpl.Z;
                                            boolean z19 = !j53Var18.N0();
                                            SharedPreferences.Editor editor18 = j53Var18.Q0;
                                            editor18.putBoolean("breadcrumb", z19);
                                            editor18.commit();
                                            AtomicBoolean atomicBoolean18 = j53Var18.e0;
                                            if (atomicBoolean18 != null) {
                                                atomicBoolean18.set(z19);
                                            }
                                            z = AppImpl.Z.N0();
                                            PreferenceActivity preferenceActivity6 = this.e;
                                            int i8 = preferenceActivity6.v2 | 32;
                                            preferenceActivity6.v2 = i8;
                                            preferenceActivity6.setResult(i8);
                                            break;
                                        case R.string.settings_show_tab_bar:
                                            j53 j53Var19 = AppImpl.Z;
                                            boolean z20 = !j53Var19.U0();
                                            SharedPreferences.Editor editor19 = j53Var19.Q0;
                                            editor19.putBoolean("show_tab_bar", z20);
                                            editor19.commit();
                                            AtomicBoolean atomicBoolean19 = j53Var19.V;
                                            if (atomicBoolean19 != null) {
                                                atomicBoolean19.set(z20);
                                            }
                                            z = AppImpl.Z.U0();
                                            PreferenceActivity preferenceActivity7 = this.e;
                                            int i9 = preferenceActivity7.v2 | 32;
                                            preferenceActivity7.v2 = i9;
                                            preferenceActivity7.setResult(i9);
                                            break;
                                        case R.string.settings_show_toast:
                                            j53 j53Var20 = AppImpl.Z;
                                            boolean z21 = !j53Var20.u();
                                            SharedPreferences.Editor editor20 = j53Var20.Q0;
                                            editor20.putBoolean("show_toasts", z21);
                                            editor20.commit();
                                            AtomicBoolean atomicBoolean20 = j53Var20.q;
                                            if (atomicBoolean20 != null) {
                                                atomicBoolean20.set(z21);
                                            }
                                            z = AppImpl.Z.u();
                                            break;
                                        case R.string.settings_show_tool_bar:
                                            j53 j53Var21 = AppImpl.Z;
                                            boolean z22 = !j53Var21.V0();
                                            SharedPreferences.Editor editor21 = j53Var21.Q0;
                                            editor21.putBoolean("show_tool_bar", z22);
                                            editor21.commit();
                                            AtomicBoolean atomicBoolean21 = j53Var21.d0;
                                            if (atomicBoolean21 != null) {
                                                atomicBoolean21.set(z22);
                                            }
                                            z = AppImpl.Z.V0();
                                            PreferenceActivity preferenceActivity8 = this.e;
                                            int i10 = preferenceActivity8.v2 | 64;
                                            preferenceActivity8.v2 = i10;
                                            preferenceActivity8.setResult(i10);
                                            break;
                                        default:
                                            switch (i2) {
                                                case R.string.settings_split_action_bar:
                                                    j53 j53Var22 = AppImpl.Z;
                                                    boolean z23 = !j53Var22.W0();
                                                    SharedPreferences.Editor editor22 = j53Var22.Q0;
                                                    editor22.putBoolean("split_action_bar", z23);
                                                    editor22.commit();
                                                    AtomicBoolean atomicBoolean22 = j53Var22.T;
                                                    if (atomicBoolean22 != null) {
                                                        atomicBoolean22.set(z23);
                                                    }
                                                    z = AppImpl.Z.W0();
                                                    PreferenceActivity preferenceActivity9 = this.e;
                                                    int i11 = preferenceActivity9.v2 | 4;
                                                    preferenceActivity9.v2 = i11;
                                                    preferenceActivity9.setResult(i11);
                                                    break;
                                                case R.string.settings_startup_lock:
                                                    j53 j53Var23 = AppImpl.Z;
                                                    boolean z24 = !j53Var23.f0();
                                                    SharedPreferences.Editor editor23 = j53Var23.Q0;
                                                    editor23.putBoolean("startup_password", z24);
                                                    editor23.commit();
                                                    AtomicBoolean atomicBoolean23 = j53Var23.k;
                                                    if (atomicBoolean23 != null) {
                                                        atomicBoolean23.set(z24);
                                                    }
                                                    z = AppImpl.Z.f0();
                                                    break;
                                                case R.string.settings_static_enc_key:
                                                    j53 j53Var24 = AppImpl.Z;
                                                    boolean z25 = !j53Var24.p0();
                                                    SharedPreferences.Editor editor24 = j53Var24.Q0;
                                                    editor24.putBoolean("fixed_enc_key", z25);
                                                    editor24.commit();
                                                    AtomicBoolean atomicBoolean24 = j53Var24.I0;
                                                    if (atomicBoolean24 != null) {
                                                        atomicBoolean24.set(z25);
                                                    }
                                                    z = AppImpl.Z.p0();
                                                    break;
                                                case R.string.settings_swipe_new_tab:
                                                    j53 j53Var25 = AppImpl.Z;
                                                    boolean z26 = !j53Var25.a0();
                                                    SharedPreferences.Editor editor25 = j53Var25.Q0;
                                                    editor25.putBoolean("swipe_new_tab", z26);
                                                    editor25.commit();
                                                    AtomicBoolean atomicBoolean25 = j53Var25.N;
                                                    if (atomicBoolean25 != null) {
                                                        atomicBoolean25.set(z26);
                                                    }
                                                    z = AppImpl.Z.a0();
                                                    break;
                                                case R.string.settings_tap_execute:
                                                    j53 j53Var26 = AppImpl.Z;
                                                    boolean z27 = !j53Var26.X0();
                                                    SharedPreferences.Editor editor26 = j53Var26.Q0;
                                                    editor26.putBoolean("tap_to_execute", z27);
                                                    editor26.commit();
                                                    AtomicBoolean atomicBoolean26 = j53Var26.n0;
                                                    if (atomicBoolean26 != null) {
                                                        atomicBoolean26.set(z27);
                                                    }
                                                    z = AppImpl.Z.X0();
                                                    break;
                                                case R.string.settings_trash:
                                                    j53 j53Var27 = AppImpl.Z;
                                                    boolean z28 = !j53Var27.d();
                                                    SharedPreferences.Editor editor27 = j53Var27.Q0;
                                                    editor27.putBoolean("can_trash", z28);
                                                    editor27.commit();
                                                    AtomicBoolean atomicBoolean27 = j53Var27.G0;
                                                    if (atomicBoolean27 != null) {
                                                        atomicBoolean27.set(z28);
                                                    }
                                                    z = AppImpl.Z.d();
                                                    break;
                                                case R.string.settings_update_media_store:
                                                    j53 j53Var28 = AppImpl.Z;
                                                    boolean z29 = !j53Var28.Z0();
                                                    SharedPreferences.Editor editor28 = j53Var28.Q0;
                                                    editor28.putBoolean("update_media_store", z29);
                                                    editor28.commit();
                                                    AtomicBoolean atomicBoolean28 = j53Var28.E0;
                                                    if (atomicBoolean28 != null) {
                                                        atomicBoolean28.set(z29);
                                                    }
                                                    z = AppImpl.Z.Z0();
                                                    break;
                                                case R.string.settings_updates:
                                                    if (d7.d()) {
                                                        j53 j53Var29 = AppImpl.Z;
                                                        boolean z30 = !j53Var29.h();
                                                        SharedPreferences.Editor editor29 = j53Var29.Q0;
                                                        editor29.putBoolean("auto_update", z30);
                                                        editor29.commit();
                                                        AtomicBoolean atomicBoolean29 = j53Var29.c0;
                                                        if (atomicBoolean29 != null) {
                                                            atomicBoolean29.set(z30);
                                                        }
                                                        boolean h = AppImpl.Z.h();
                                                        if (h) {
                                                            PreferenceActivity.m0(false, false);
                                                        }
                                                        z = h;
                                                        break;
                                                    }
                                                    break;
                                            }
                                    }
                            }
                    }
            }
            if (z) {
                drawable = this.e.w2;
            } else {
                drawable = this.e.x2;
            }
            vc0Var.M1 = drawable;
            vc0Var.setChecked(z);
            xo3.c(z);
        } catch (Throwable th) {
            xv1.h("PrefActivity", ui3.A(th));
            fw1.d(Integer.valueOf(R.string.failed));
        }
    }

    private final synchronized void P(View view, int i) {
        boolean z;
        AtomicBoolean atomicBoolean;
        AtomicBoolean atomicBoolean2;
        boolean z2;
        AtomicBoolean atomicBoolean3;
        AtomicBoolean atomicBoolean4;
        AtomicBoolean atomicBoolean5;
        AtomicBoolean atomicBoolean6;
        AtomicBoolean atomicBoolean7;
        AtomicBoolean atomicBoolean8;
        AtomicBoolean atomicBoolean9;
        AtomicBoolean atomicBoolean10;
        AtomicBoolean atomicBoolean11;
        AtomicBoolean atomicBoolean12;
        AtomicBoolean atomicBoolean13;
        AtomicBoolean atomicBoolean14;
        AtomicBoolean atomicBoolean15;
        AtomicBoolean atomicBoolean16;
        boolean z3;
        AtomicBoolean atomicBoolean17;
        AtomicBoolean atomicBoolean18;
        AtomicBoolean atomicBoolean19;
        AtomicBoolean atomicBoolean20;
        AtomicBoolean atomicBoolean21;
        AtomicBoolean atomicBoolean22;
        AtomicBoolean atomicBoolean23;
        AtomicBoolean atomicBoolean24;
        AtomicBoolean atomicBoolean25;
        AtomicBoolean atomicBoolean26;
        j53 j53Var;
        AtomicBoolean atomicBoolean27;
        AtomicBoolean atomicBoolean28;
        AtomicBoolean atomicBoolean29;
        AtomicBoolean atomicBoolean30;
        AtomicBoolean atomicBoolean31;
        boolean z4;
        AtomicBoolean atomicBoolean32;
        AtomicBoolean atomicBoolean33;
        AtomicBoolean atomicBoolean34;
        AtomicBoolean atomicBoolean35;
        AtomicBoolean atomicBoolean36;
        AtomicBoolean atomicBoolean37;
        AtomicBoolean atomicBoolean38;
        AtomicBoolean atomicBoolean39;
        AtomicBoolean atomicBoolean40;
        AtomicBoolean atomicBoolean41;
        AtomicBoolean atomicBoolean42;
        AtomicBoolean atomicBoolean43;
        j53 j53Var2;
        Iterator<String> it;
        boolean hasNext;
        try {
            switch (((vc0) this.c.get(i)).Z) {
                case R.string.all:
                    new yu1(new fy(13)).start();
                    AppImpl.X.a(null, false, null, false);
                    j53 j53Var3 = AppImpl.Z;
                    SharedPreferences.Editor editor = j53Var3.Q0;
                    editor.putBoolean("swipe_new_tab", true);
                    editor.commit();
                    AtomicBoolean atomicBoolean44 = j53Var3.N;
                    if (atomicBoolean44 != null) {
                        atomicBoolean44.set(true);
                    }
                    j53 j53Var4 = AppImpl.Z;
                    SharedPreferences.Editor editor2 = j53Var4.Q0;
                    editor2.putBoolean("merge_tasks", false);
                    editor2.commit();
                    AtomicBoolean atomicBoolean45 = j53Var4.m0;
                    if (atomicBoolean45 != null) {
                        atomicBoolean45.set(false);
                    }
                    j53 j53Var5 = AppImpl.Z;
                    SharedPreferences.Editor editor3 = j53Var5.Q0;
                    editor3.putBoolean("tap_to_execute", false);
                    editor3.commit();
                    AtomicBoolean atomicBoolean46 = j53Var5.n0;
                    if (atomicBoolean46 != null) {
                        atomicBoolean46.set(false);
                    }
                    AppImpl.Z.L0(true);
                    j53 j53Var6 = AppImpl.Z;
                    SharedPreferences.Editor editor4 = j53Var6.Q0;
                    editor4.putBoolean("split_action_bar", false);
                    editor4.commit();
                    AtomicBoolean atomicBoolean47 = j53Var6.T;
                    if (atomicBoolean47 != null) {
                        atomicBoolean47.set(false);
                    }
                    j53 j53Var7 = AppImpl.Z;
                    SharedPreferences.Editor editor5 = j53Var7.Q0;
                    editor5.putBoolean("startup_password", false);
                    editor5.commit();
                    AtomicBoolean atomicBoolean48 = j53Var7.k;
                    if (atomicBoolean48 != null) {
                        atomicBoolean48.set(false);
                    }
                    j53 j53Var8 = AppImpl.Z;
                    SharedPreferences.Editor editor6 = j53Var8.Q0;
                    editor6.putBoolean("bottom_bar", false);
                    editor6.commit();
                    AtomicBoolean atomicBoolean49 = j53Var8.O;
                    if (atomicBoolean49 != null) {
                        atomicBoolean49.set(false);
                    }
                    j53 j53Var9 = AppImpl.Z;
                    SharedPreferences.Editor editor7 = j53Var9.Q0;
                    editor7.putBoolean("only_folder_name", false);
                    editor7.commit();
                    AtomicBoolean atomicBoolean50 = j53Var9.R;
                    if (atomicBoolean50 != null) {
                        atomicBoolean50.set(false);
                    }
                    j53 j53Var10 = AppImpl.Z;
                    SharedPreferences.Editor editor8 = j53Var10.Q0;
                    editor8.putBoolean("show_tab_bar", true);
                    editor8.commit();
                    AtomicBoolean atomicBoolean51 = j53Var10.V;
                    if (atomicBoolean51 != null) {
                        atomicBoolean51.set(true);
                    }
                    j53 j53Var11 = AppImpl.Z;
                    if (!vf3.o() && !AppImpl.b2) {
                        z = false;
                        SharedPreferences.Editor editor9 = j53Var11.Q0;
                        editor9.putBoolean("breadcrumb", z);
                        editor9.commit();
                        atomicBoolean = j53Var11.e0;
                        if (atomicBoolean != null) {
                            atomicBoolean.set(z);
                        }
                        j53 j53Var12 = AppImpl.Z;
                        SharedPreferences.Editor editor10 = j53Var12.Q0;
                        editor10.putBoolean("show_tool_bar", true);
                        editor10.commit();
                        atomicBoolean2 = j53Var12.d0;
                        if (atomicBoolean2 != null) {
                            atomicBoolean2.set(true);
                        }
                        j53 j53Var13 = AppImpl.Z;
                        if (!d7.c() && !d7.d()) {
                            z2 = false;
                            j53Var13.C0(z2);
                            j53 j53Var14 = AppImpl.Z;
                            SharedPreferences.Editor editor11 = j53Var14.Q0;
                            editor11.putBoolean("auto_remount", true);
                            editor11.commit();
                            atomicBoolean3 = j53Var14.b0;
                            if (atomicBoolean3 != null) {
                                atomicBoolean3.set(true);
                            }
                            j53 j53Var15 = AppImpl.Z;
                            SharedPreferences.Editor editor12 = j53Var15.Q0;
                            editor12.putBoolean("auto_update", false);
                            editor12.commit();
                            atomicBoolean4 = j53Var15.c0;
                            if (atomicBoolean4 != null) {
                                atomicBoolean4.set(false);
                            }
                            j53 j53Var16 = AppImpl.Z;
                            SharedPreferences.Editor editor13 = j53Var16.Q0;
                            editor13.putBoolean("root_direct_copy", false);
                            editor13.commit();
                            atomicBoolean5 = j53Var16.W;
                            if (atomicBoolean5 != null) {
                                atomicBoolean5.set(false);
                            }
                            j53 j53Var17 = AppImpl.Z;
                            SharedPreferences.Editor editor14 = j53Var17.Q0;
                            editor14.putBoolean("swipe_to_refresh", true);
                            editor14.commit();
                            atomicBoolean6 = j53Var17.J0;
                            if (atomicBoolean6 != null) {
                                atomicBoolean6.set(true);
                            }
                            j53 j53Var18 = AppImpl.Z;
                            SharedPreferences.Editor editor15 = j53Var18.Q0;
                            editor15.putBoolean("save_tabs_on_exit", false);
                            editor15.commit();
                            atomicBoolean7 = j53Var18.L0;
                            if (atomicBoolean7 != null) {
                                atomicBoolean7.set(false);
                            }
                            j53 j53Var19 = AppImpl.Z;
                            SharedPreferences.Editor editor16 = j53Var19.Q0;
                            editor16.putBoolean("draw_tab_close", true);
                            editor16.commit();
                            atomicBoolean8 = j53Var19.w;
                            if (atomicBoolean8 != null) {
                                atomicBoolean8.set(true);
                            }
                            j53 j53Var20 = AppImpl.Z;
                            boolean v = vf3.v();
                            SharedPreferences.Editor editor17 = j53Var20.Q0;
                            editor17.putBoolean("data_folder_in_root", v);
                            editor17.commit();
                            atomicBoolean9 = j53Var20.A;
                            if (atomicBoolean9 != null) {
                                atomicBoolean9.set(v);
                            }
                            j53 j53Var21 = AppImpl.Z;
                            SharedPreferences.Editor editor18 = j53Var21.Q0;
                            editor18.putBoolean("custom_otg", true);
                            editor18.commit();
                            atomicBoolean10 = j53Var21.u;
                            if (atomicBoolean10 != null) {
                                atomicBoolean10.set(true);
                            }
                            j53 j53Var22 = AppImpl.Z;
                            SharedPreferences.Editor editor19 = j53Var22.Q0;
                            editor19.putBoolean("select_by_icon", true);
                            editor19.commit();
                            atomicBoolean11 = j53Var22.p;
                            if (atomicBoolean11 != null) {
                                atomicBoolean11.set(true);
                            }
                            j53 j53Var23 = AppImpl.Z;
                            SharedPreferences.Editor editor20 = j53Var23.Q0;
                            editor20.putBoolean("keep_last_modified", false);
                            editor20.commit();
                            atomicBoolean12 = j53Var23.o0;
                            if (atomicBoolean12 != null) {
                                atomicBoolean12.set(false);
                            }
                            AppImpl.Z.M0(true);
                            j53 j53Var24 = AppImpl.Z;
                            SharedPreferences.Editor editor21 = j53Var24.Q0;
                            editor21.putString("date_pattern", "");
                            editor21.commit();
                            j53Var24.r = "";
                            j53Var24.R0 = null;
                            j53 j53Var25 = AppImpl.Z;
                            SharedPreferences.Editor editor22 = j53Var25.Q0;
                            editor22.putBoolean("open_archive", true);
                            editor22.commit();
                            atomicBoolean13 = j53Var25.h0;
                            if (atomicBoolean13 != null) {
                                atomicBoolean13.set(true);
                            }
                            j53 j53Var26 = AppImpl.Z;
                            SharedPreferences.Editor editor23 = j53Var26.Q0;
                            editor23.putBoolean("show_toasts", true);
                            editor23.commit();
                            atomicBoolean14 = j53Var26.q;
                            if (atomicBoolean14 != null) {
                                atomicBoolean14.set(true);
                            }
                            j53 j53Var27 = AppImpl.Z;
                            SharedPreferences.Editor editor24 = j53Var27.Q0;
                            editor24.putBoolean("full_wake_lock", true);
                            editor24.commit();
                            atomicBoolean15 = j53Var27.k0;
                            if (atomicBoolean15 != null) {
                                atomicBoolean15.set(true);
                            }
                            j53 j53Var28 = AppImpl.Z;
                            boolean c = d7.c();
                            SharedPreferences.Editor editor25 = j53Var28.Q0;
                            editor25.putBoolean("enable_logging", c);
                            editor25.commit();
                            atomicBoolean16 = j53Var28.i0;
                            if (atomicBoolean16 != null) {
                                atomicBoolean16.set(c);
                            }
                            j53 j53Var29 = AppImpl.Z;
                            if (!vf3.o() && tw0.a >= 4) {
                                z3 = true;
                            } else {
                                z3 = false;
                            }
                            SharedPreferences.Editor editor26 = j53Var29.Q0;
                            editor26.putBoolean("animations", z3);
                            editor26.commit();
                            atomicBoolean17 = j53Var29.f0;
                            if (atomicBoolean17 != null) {
                                atomicBoolean17.set(z3);
                            }
                            j53 j53Var30 = AppImpl.Z;
                            boolean x = vf3.x();
                            SharedPreferences.Editor editor27 = j53Var30.Q0;
                            editor27.putBoolean("shizuku", x);
                            editor27.commit();
                            atomicBoolean18 = j53Var30.g0;
                            if (atomicBoolean18 != null) {
                                atomicBoolean18.set(x);
                            }
                            j53 j53Var31 = AppImpl.Z;
                            SharedPreferences.Editor editor28 = j53Var31.Q0;
                            editor28.putBoolean("update_media_store", true);
                            editor28.commit();
                            atomicBoolean19 = j53Var31.E0;
                            if (atomicBoolean19 != null) {
                                atomicBoolean19.set(true);
                            }
                            j53 j53Var32 = AppImpl.Z;
                            SharedPreferences.Editor editor29 = j53Var32.Q0;
                            editor29.putBoolean("can_undo", true);
                            editor29.commit();
                            atomicBoolean20 = j53Var32.F0;
                            if (atomicBoolean20 != null) {
                                atomicBoolean20.set(true);
                            }
                            j53 j53Var33 = AppImpl.Z;
                            SharedPreferences.Editor editor30 = j53Var33.Q0;
                            editor30.putBoolean("can_trash", true);
                            editor30.commit();
                            atomicBoolean21 = j53Var33.G0;
                            if (atomicBoolean21 != null) {
                                atomicBoolean21.set(true);
                            }
                            j53 j53Var34 = AppImpl.Z;
                            SharedPreferences.Editor editor31 = j53Var34.Q0;
                            editor31.putBoolean("remember_delete_option", false);
                            editor31.commit();
                            atomicBoolean22 = j53Var34.H0;
                            if (atomicBoolean22 != null) {
                                atomicBoolean22.set(false);
                            }
                            j53 j53Var35 = AppImpl.Z;
                            SharedPreferences.Editor editor32 = j53Var35.Q0;
                            editor32.putBoolean("fixed_enc_key", true);
                            editor32.commit();
                            atomicBoolean23 = j53Var35.I0;
                            if (atomicBoolean23 != null) {
                                atomicBoolean23.set(true);
                            }
                            j53 j53Var36 = AppImpl.Z;
                            SharedPreferences.Editor editor33 = j53Var36.Q0;
                            editor33.putBoolean("play_background", false);
                            editor33.commit();
                            atomicBoolean24 = j53Var36.N0;
                            if (atomicBoolean24 != null) {
                                atomicBoolean24.set(false);
                            }
                            AppImpl.Z.F0(null);
                            j53 j53Var37 = AppImpl.Z;
                            SharedPreferences.Editor editor34 = j53Var37.Q0;
                            editor34.putString("custom_key_AUTO_TASKS", "");
                            editor34.commit();
                            j53Var37.C0 = "";
                            j53 j53Var38 = AppImpl.Z;
                            SharedPreferences.Editor editor35 = j53Var38.Q0;
                            editor35.putString("night_skin", "");
                            editor35.commit();
                            j53Var38.A0 = "";
                            j53 j53Var39 = AppImpl.Z;
                            SharedPreferences.Editor editor36 = j53Var39.Q0;
                            editor36.putString("home_folder", null);
                            editor36.commit();
                            j53Var39.d = null;
                            j53 j53Var40 = AppImpl.Z;
                            SharedPreferences.Editor editor37 = j53Var40.Q0;
                            editor37.putBoolean("notify_pkg_update", false);
                            editor37.commit();
                            atomicBoolean25 = j53Var40.m;
                            if (atomicBoolean25 != null) {
                                atomicBoolean25.set(false);
                            }
                            j53 j53Var41 = AppImpl.Z;
                            SharedPreferences.Editor editor38 = j53Var41.Q0;
                            editor38.putBoolean("back_to_visited_folder", true);
                            editor38.commit();
                            atomicBoolean26 = j53Var41.n;
                            if (atomicBoolean26 != null) {
                                atomicBoolean26.set(true);
                            }
                            j53Var = AppImpl.Z;
                            SharedPreferences.Editor editor39 = j53Var.Q0;
                            editor39.putInt("grid_columns", 0);
                            editor39.commit();
                            if (j53Var.j != null) {
                                j53Var.j = 0;
                            }
                            j53 j53Var42 = AppImpl.Z;
                            SharedPreferences.Editor editor40 = j53Var42.Q0;
                            editor40.putBoolean("custom_app_title", true);
                            editor40.commit();
                            atomicBoolean27 = j53Var42.l0;
                            if (atomicBoolean27 != null) {
                                atomicBoolean27.set(true);
                            }
                            j53 j53Var43 = AppImpl.Z;
                            SharedPreferences.Editor editor41 = j53Var43.Q0;
                            editor41.putBoolean("pinch_to_zoom", true);
                            editor41.commit();
                            atomicBoolean28 = j53Var43.y;
                            if (atomicBoolean28 != null) {
                                atomicBoolean28.set(true);
                            }
                            AppImpl.Z.M0(true);
                            AppImpl.Z.H0(true);
                            j53 j53Var44 = AppImpl.Z;
                            SharedPreferences.Editor editor42 = j53Var44.Q0;
                            editor42.putBoolean("drag_and_drop", true);
                            editor42.commit();
                            atomicBoolean29 = j53Var44.B;
                            if (atomicBoolean29 != null) {
                                atomicBoolean29.set(true);
                            }
                            AppImpl.Z.L0(!AppImpl.b2);
                            j53 j53Var45 = AppImpl.Z;
                            SharedPreferences.Editor editor43 = j53Var45.Q0;
                            editor43.putBoolean("swipe_to_show_hide", false);
                            editor43.commit();
                            atomicBoolean30 = j53Var45.K0;
                            if (atomicBoolean30 != null) {
                                atomicBoolean30.set(false);
                            }
                            j53 j53Var46 = AppImpl.Z;
                            boolean t = vf3.t();
                            SharedPreferences.Editor editor44 = j53Var46.Q0;
                            editor44.putBoolean("detailed_view_extra", t);
                            editor44.commit();
                            atomicBoolean31 = j53Var46.C;
                            if (atomicBoolean31 != null) {
                                atomicBoolean31.set(t);
                            }
                            j53 j53Var47 = AppImpl.Z;
                            if (tw0.a > 2) {
                                z4 = true;
                            } else {
                                z4 = false;
                            }
                            SharedPreferences.Editor editor45 = j53Var47.Q0;
                            editor45.putBoolean("pause_thumb_loader", z4);
                            editor45.commit();
                            atomicBoolean32 = j53Var47.q0;
                            if (atomicBoolean32 != null) {
                                atomicBoolean32.set(z4);
                            }
                            j53 j53Var48 = AppImpl.Z;
                            SharedPreferences.Editor editor46 = j53Var48.Q0;
                            editor46.putBoolean("cache_thumbs", true);
                            editor46.commit();
                            atomicBoolean33 = j53Var48.j0;
                            if (atomicBoolean33 != null) {
                                atomicBoolean33.set(true);
                            }
                            j53 j53Var49 = AppImpl.Z;
                            SharedPreferences.Editor editor47 = j53Var49.Q0;
                            editor47.putBoolean("highlight_visited", true);
                            editor47.commit();
                            atomicBoolean34 = j53Var49.S;
                            if (atomicBoolean34 != null) {
                                atomicBoolean34.set(true);
                            }
                            j53 j53Var50 = AppImpl.Z;
                            SharedPreferences.Editor editor48 = j53Var50.Q0;
                            editor48.putBoolean("file_extension", true);
                            editor48.commit();
                            atomicBoolean35 = j53Var50.D;
                            if (atomicBoolean35 != null) {
                                atomicBoolean35.set(true);
                            }
                            j53 j53Var51 = AppImpl.Z;
                            SharedPreferences.Editor editor49 = j53Var51.Q0;
                            editor49.putBoolean("full_filename", false);
                            editor49.commit();
                            atomicBoolean36 = j53Var51.r0;
                            if (atomicBoolean36 != null) {
                                atomicBoolean36.set(false);
                            }
                            j53 j53Var52 = AppImpl.Z;
                            SharedPreferences.Editor editor50 = j53Var52.Q0;
                            editor50.putBoolean("dual_panel", false);
                            editor50.commit();
                            atomicBoolean37 = j53Var52.F;
                            if (atomicBoolean37 != null) {
                                atomicBoolean37.set(false);
                            }
                            j53 j53Var53 = AppImpl.Z;
                            SharedPreferences.Editor editor51 = j53Var53.Q0;
                            editor51.putBoolean("full_view_thumb", false);
                            editor51.commit();
                            atomicBoolean38 = j53Var53.G;
                            if (atomicBoolean38 != null) {
                                atomicBoolean38.set(false);
                            }
                            j53 j53Var54 = AppImpl.Z;
                            SharedPreferences.Editor editor52 = j53Var54.Q0;
                            editor52.putBoolean("full_dual_panel", false);
                            editor52.commit();
                            atomicBoolean39 = j53Var54.I;
                            if (atomicBoolean39 != null) {
                                atomicBoolean39.set(false);
                            }
                            j53 j53Var55 = AppImpl.Z;
                            SharedPreferences.Editor editor53 = j53Var55.Q0;
                            editor53.putBoolean("auto_folder_preview", true);
                            editor53.commit();
                            atomicBoolean40 = j53Var55.P;
                            if (atomicBoolean40 != null) {
                                atomicBoolean40.set(true);
                            }
                            j53 j53Var56 = AppImpl.Z;
                            SharedPreferences.Editor editor54 = j53Var56.Q0;
                            editor54.putBoolean("folder_symbols", true);
                            editor54.commit();
                            atomicBoolean41 = j53Var56.Q;
                            if (atomicBoolean41 != null) {
                                atomicBoolean41.set(true);
                            }
                            j53 j53Var57 = AppImpl.Z;
                            SharedPreferences.Editor editor55 = j53Var57.Q0;
                            editor55.putBoolean("no_thumbnail", false);
                            editor55.commit();
                            atomicBoolean42 = j53Var57.K;
                            if (atomicBoolean42 != null) {
                                atomicBoolean42.set(false);
                            }
                            j53 j53Var58 = AppImpl.Z;
                            SharedPreferences.Editor editor56 = j53Var58.Q0;
                            editor56.putBoolean("change_view_globally", false);
                            editor56.commit();
                            atomicBoolean43 = j53Var58.l;
                            if (atomicBoolean43 != null) {
                                atomicBoolean43.set(false);
                            }
                            AppImpl.Z.G0(new HashMap());
                            j53Var2 = AppImpl.Z;
                            it = j53Var2.P0.getAll().keySet().iterator();
                            while (true) {
                                hasNext = it.hasNext();
                                SharedPreferences.Editor editor57 = j53Var2.Q0;
                                if (!hasNext) {
                                    String next = it.next();
                                    if (next.startsWith("custom_key_") || next.startsWith("RADIO_")) {
                                        editor57.remove(next);
                                    }
                                } else {
                                    editor57.commit();
                                    AppImpl.Z.I0(null);
                                    boolean z5 = ConfigServerActivity.S2;
                                    SharedPreferences W = j53.W("ServersConfig");
                                    if (W != null) {
                                        SharedPreferences.Editor edit = W.edit();
                                        edit.clear();
                                        edit.commit();
                                    }
                                    PreferenceActivity.I0("en");
                                    fp2.G0(d93.Q());
                                    this.e.O0();
                                    PreferenceActivity preferenceActivity = this.e;
                                    int i2 = preferenceActivity.v2 | 126;
                                    preferenceActivity.v2 = i2;
                                    preferenceActivity.setResult(i2);
                                    break;
                                }
                            }
                        }
                        z2 = true;
                        j53Var13.C0(z2);
                        j53 j53Var142 = AppImpl.Z;
                        SharedPreferences.Editor editor112 = j53Var142.Q0;
                        editor112.putBoolean("auto_remount", true);
                        editor112.commit();
                        atomicBoolean3 = j53Var142.b0;
                        if (atomicBoolean3 != null) {
                        }
                        j53 j53Var152 = AppImpl.Z;
                        SharedPreferences.Editor editor122 = j53Var152.Q0;
                        editor122.putBoolean("auto_update", false);
                        editor122.commit();
                        atomicBoolean4 = j53Var152.c0;
                        if (atomicBoolean4 != null) {
                        }
                        j53 j53Var162 = AppImpl.Z;
                        SharedPreferences.Editor editor132 = j53Var162.Q0;
                        editor132.putBoolean("root_direct_copy", false);
                        editor132.commit();
                        atomicBoolean5 = j53Var162.W;
                        if (atomicBoolean5 != null) {
                        }
                        j53 j53Var172 = AppImpl.Z;
                        SharedPreferences.Editor editor142 = j53Var172.Q0;
                        editor142.putBoolean("swipe_to_refresh", true);
                        editor142.commit();
                        atomicBoolean6 = j53Var172.J0;
                        if (atomicBoolean6 != null) {
                        }
                        j53 j53Var182 = AppImpl.Z;
                        SharedPreferences.Editor editor152 = j53Var182.Q0;
                        editor152.putBoolean("save_tabs_on_exit", false);
                        editor152.commit();
                        atomicBoolean7 = j53Var182.L0;
                        if (atomicBoolean7 != null) {
                        }
                        j53 j53Var192 = AppImpl.Z;
                        SharedPreferences.Editor editor162 = j53Var192.Q0;
                        editor162.putBoolean("draw_tab_close", true);
                        editor162.commit();
                        atomicBoolean8 = j53Var192.w;
                        if (atomicBoolean8 != null) {
                        }
                        j53 j53Var202 = AppImpl.Z;
                        boolean v2 = vf3.v();
                        SharedPreferences.Editor editor172 = j53Var202.Q0;
                        editor172.putBoolean("data_folder_in_root", v2);
                        editor172.commit();
                        atomicBoolean9 = j53Var202.A;
                        if (atomicBoolean9 != null) {
                        }
                        j53 j53Var212 = AppImpl.Z;
                        SharedPreferences.Editor editor182 = j53Var212.Q0;
                        editor182.putBoolean("custom_otg", true);
                        editor182.commit();
                        atomicBoolean10 = j53Var212.u;
                        if (atomicBoolean10 != null) {
                        }
                        j53 j53Var222 = AppImpl.Z;
                        SharedPreferences.Editor editor192 = j53Var222.Q0;
                        editor192.putBoolean("select_by_icon", true);
                        editor192.commit();
                        atomicBoolean11 = j53Var222.p;
                        if (atomicBoolean11 != null) {
                        }
                        j53 j53Var232 = AppImpl.Z;
                        SharedPreferences.Editor editor202 = j53Var232.Q0;
                        editor202.putBoolean("keep_last_modified", false);
                        editor202.commit();
                        atomicBoolean12 = j53Var232.o0;
                        if (atomicBoolean12 != null) {
                        }
                        AppImpl.Z.M0(true);
                        j53 j53Var242 = AppImpl.Z;
                        SharedPreferences.Editor editor212 = j53Var242.Q0;
                        editor212.putString("date_pattern", "");
                        editor212.commit();
                        j53Var242.r = "";
                        j53Var242.R0 = null;
                        j53 j53Var252 = AppImpl.Z;
                        SharedPreferences.Editor editor222 = j53Var252.Q0;
                        editor222.putBoolean("open_archive", true);
                        editor222.commit();
                        atomicBoolean13 = j53Var252.h0;
                        if (atomicBoolean13 != null) {
                        }
                        j53 j53Var262 = AppImpl.Z;
                        SharedPreferences.Editor editor232 = j53Var262.Q0;
                        editor232.putBoolean("show_toasts", true);
                        editor232.commit();
                        atomicBoolean14 = j53Var262.q;
                        if (atomicBoolean14 != null) {
                        }
                        j53 j53Var272 = AppImpl.Z;
                        SharedPreferences.Editor editor242 = j53Var272.Q0;
                        editor242.putBoolean("full_wake_lock", true);
                        editor242.commit();
                        atomicBoolean15 = j53Var272.k0;
                        if (atomicBoolean15 != null) {
                        }
                        j53 j53Var282 = AppImpl.Z;
                        boolean c2 = d7.c();
                        SharedPreferences.Editor editor252 = j53Var282.Q0;
                        editor252.putBoolean("enable_logging", c2);
                        editor252.commit();
                        atomicBoolean16 = j53Var282.i0;
                        if (atomicBoolean16 != null) {
                        }
                        j53 j53Var292 = AppImpl.Z;
                        if (!vf3.o()) {
                        }
                        z3 = false;
                        SharedPreferences.Editor editor262 = j53Var292.Q0;
                        editor262.putBoolean("animations", z3);
                        editor262.commit();
                        atomicBoolean17 = j53Var292.f0;
                        if (atomicBoolean17 != null) {
                        }
                        j53 j53Var302 = AppImpl.Z;
                        boolean x2 = vf3.x();
                        SharedPreferences.Editor editor272 = j53Var302.Q0;
                        editor272.putBoolean("shizuku", x2);
                        editor272.commit();
                        atomicBoolean18 = j53Var302.g0;
                        if (atomicBoolean18 != null) {
                        }
                        j53 j53Var312 = AppImpl.Z;
                        SharedPreferences.Editor editor282 = j53Var312.Q0;
                        editor282.putBoolean("update_media_store", true);
                        editor282.commit();
                        atomicBoolean19 = j53Var312.E0;
                        if (atomicBoolean19 != null) {
                        }
                        j53 j53Var322 = AppImpl.Z;
                        SharedPreferences.Editor editor292 = j53Var322.Q0;
                        editor292.putBoolean("can_undo", true);
                        editor292.commit();
                        atomicBoolean20 = j53Var322.F0;
                        if (atomicBoolean20 != null) {
                        }
                        j53 j53Var332 = AppImpl.Z;
                        SharedPreferences.Editor editor302 = j53Var332.Q0;
                        editor302.putBoolean("can_trash", true);
                        editor302.commit();
                        atomicBoolean21 = j53Var332.G0;
                        if (atomicBoolean21 != null) {
                        }
                        j53 j53Var342 = AppImpl.Z;
                        SharedPreferences.Editor editor312 = j53Var342.Q0;
                        editor312.putBoolean("remember_delete_option", false);
                        editor312.commit();
                        atomicBoolean22 = j53Var342.H0;
                        if (atomicBoolean22 != null) {
                        }
                        j53 j53Var352 = AppImpl.Z;
                        SharedPreferences.Editor editor322 = j53Var352.Q0;
                        editor322.putBoolean("fixed_enc_key", true);
                        editor322.commit();
                        atomicBoolean23 = j53Var352.I0;
                        if (atomicBoolean23 != null) {
                        }
                        j53 j53Var362 = AppImpl.Z;
                        SharedPreferences.Editor editor332 = j53Var362.Q0;
                        editor332.putBoolean("play_background", false);
                        editor332.commit();
                        atomicBoolean24 = j53Var362.N0;
                        if (atomicBoolean24 != null) {
                        }
                        AppImpl.Z.F0(null);
                        j53 j53Var372 = AppImpl.Z;
                        SharedPreferences.Editor editor342 = j53Var372.Q0;
                        editor342.putString("custom_key_AUTO_TASKS", "");
                        editor342.commit();
                        j53Var372.C0 = "";
                        j53 j53Var382 = AppImpl.Z;
                        SharedPreferences.Editor editor352 = j53Var382.Q0;
                        editor352.putString("night_skin", "");
                        editor352.commit();
                        j53Var382.A0 = "";
                        j53 j53Var392 = AppImpl.Z;
                        SharedPreferences.Editor editor362 = j53Var392.Q0;
                        editor362.putString("home_folder", null);
                        editor362.commit();
                        j53Var392.d = null;
                        j53 j53Var402 = AppImpl.Z;
                        SharedPreferences.Editor editor372 = j53Var402.Q0;
                        editor372.putBoolean("notify_pkg_update", false);
                        editor372.commit();
                        atomicBoolean25 = j53Var402.m;
                        if (atomicBoolean25 != null) {
                        }
                        j53 j53Var412 = AppImpl.Z;
                        SharedPreferences.Editor editor382 = j53Var412.Q0;
                        editor382.putBoolean("back_to_visited_folder", true);
                        editor382.commit();
                        atomicBoolean26 = j53Var412.n;
                        if (atomicBoolean26 != null) {
                        }
                        j53Var = AppImpl.Z;
                        SharedPreferences.Editor editor392 = j53Var.Q0;
                        editor392.putInt("grid_columns", 0);
                        editor392.commit();
                        if (j53Var.j != null) {
                        }
                        j53 j53Var422 = AppImpl.Z;
                        SharedPreferences.Editor editor402 = j53Var422.Q0;
                        editor402.putBoolean("custom_app_title", true);
                        editor402.commit();
                        atomicBoolean27 = j53Var422.l0;
                        if (atomicBoolean27 != null) {
                        }
                        j53 j53Var432 = AppImpl.Z;
                        SharedPreferences.Editor editor412 = j53Var432.Q0;
                        editor412.putBoolean("pinch_to_zoom", true);
                        editor412.commit();
                        atomicBoolean28 = j53Var432.y;
                        if (atomicBoolean28 != null) {
                        }
                        AppImpl.Z.M0(true);
                        AppImpl.Z.H0(true);
                        j53 j53Var442 = AppImpl.Z;
                        SharedPreferences.Editor editor422 = j53Var442.Q0;
                        editor422.putBoolean("drag_and_drop", true);
                        editor422.commit();
                        atomicBoolean29 = j53Var442.B;
                        if (atomicBoolean29 != null) {
                        }
                        AppImpl.Z.L0(!AppImpl.b2);
                        j53 j53Var452 = AppImpl.Z;
                        SharedPreferences.Editor editor432 = j53Var452.Q0;
                        editor432.putBoolean("swipe_to_show_hide", false);
                        editor432.commit();
                        atomicBoolean30 = j53Var452.K0;
                        if (atomicBoolean30 != null) {
                        }
                        j53 j53Var462 = AppImpl.Z;
                        boolean t2 = vf3.t();
                        SharedPreferences.Editor editor442 = j53Var462.Q0;
                        editor442.putBoolean("detailed_view_extra", t2);
                        editor442.commit();
                        atomicBoolean31 = j53Var462.C;
                        if (atomicBoolean31 != null) {
                        }
                        j53 j53Var472 = AppImpl.Z;
                        if (tw0.a > 2) {
                        }
                        SharedPreferences.Editor editor452 = j53Var472.Q0;
                        editor452.putBoolean("pause_thumb_loader", z4);
                        editor452.commit();
                        atomicBoolean32 = j53Var472.q0;
                        if (atomicBoolean32 != null) {
                        }
                        j53 j53Var482 = AppImpl.Z;
                        SharedPreferences.Editor editor462 = j53Var482.Q0;
                        editor462.putBoolean("cache_thumbs", true);
                        editor462.commit();
                        atomicBoolean33 = j53Var482.j0;
                        if (atomicBoolean33 != null) {
                        }
                        j53 j53Var492 = AppImpl.Z;
                        SharedPreferences.Editor editor472 = j53Var492.Q0;
                        editor472.putBoolean("highlight_visited", true);
                        editor472.commit();
                        atomicBoolean34 = j53Var492.S;
                        if (atomicBoolean34 != null) {
                        }
                        j53 j53Var502 = AppImpl.Z;
                        SharedPreferences.Editor editor482 = j53Var502.Q0;
                        editor482.putBoolean("file_extension", true);
                        editor482.commit();
                        atomicBoolean35 = j53Var502.D;
                        if (atomicBoolean35 != null) {
                        }
                        j53 j53Var512 = AppImpl.Z;
                        SharedPreferences.Editor editor492 = j53Var512.Q0;
                        editor492.putBoolean("full_filename", false);
                        editor492.commit();
                        atomicBoolean36 = j53Var512.r0;
                        if (atomicBoolean36 != null) {
                        }
                        j53 j53Var522 = AppImpl.Z;
                        SharedPreferences.Editor editor502 = j53Var522.Q0;
                        editor502.putBoolean("dual_panel", false);
                        editor502.commit();
                        atomicBoolean37 = j53Var522.F;
                        if (atomicBoolean37 != null) {
                        }
                        j53 j53Var532 = AppImpl.Z;
                        SharedPreferences.Editor editor512 = j53Var532.Q0;
                        editor512.putBoolean("full_view_thumb", false);
                        editor512.commit();
                        atomicBoolean38 = j53Var532.G;
                        if (atomicBoolean38 != null) {
                        }
                        j53 j53Var542 = AppImpl.Z;
                        SharedPreferences.Editor editor522 = j53Var542.Q0;
                        editor522.putBoolean("full_dual_panel", false);
                        editor522.commit();
                        atomicBoolean39 = j53Var542.I;
                        if (atomicBoolean39 != null) {
                        }
                        j53 j53Var552 = AppImpl.Z;
                        SharedPreferences.Editor editor532 = j53Var552.Q0;
                        editor532.putBoolean("auto_folder_preview", true);
                        editor532.commit();
                        atomicBoolean40 = j53Var552.P;
                        if (atomicBoolean40 != null) {
                        }
                        j53 j53Var562 = AppImpl.Z;
                        SharedPreferences.Editor editor542 = j53Var562.Q0;
                        editor542.putBoolean("folder_symbols", true);
                        editor542.commit();
                        atomicBoolean41 = j53Var562.Q;
                        if (atomicBoolean41 != null) {
                        }
                        j53 j53Var572 = AppImpl.Z;
                        SharedPreferences.Editor editor552 = j53Var572.Q0;
                        editor552.putBoolean("no_thumbnail", false);
                        editor552.commit();
                        atomicBoolean42 = j53Var572.K;
                        if (atomicBoolean42 != null) {
                        }
                        j53 j53Var582 = AppImpl.Z;
                        SharedPreferences.Editor editor562 = j53Var582.Q0;
                        editor562.putBoolean("change_view_globally", false);
                        editor562.commit();
                        atomicBoolean43 = j53Var582.l;
                        if (atomicBoolean43 != null) {
                        }
                        AppImpl.Z.G0(new HashMap());
                        j53Var2 = AppImpl.Z;
                        it = j53Var2.P0.getAll().keySet().iterator();
                        while (true) {
                            hasNext = it.hasNext();
                            SharedPreferences.Editor editor572 = j53Var2.Q0;
                            if (!hasNext) {
                            }
                        }
                    }
                    z = true;
                    SharedPreferences.Editor editor92 = j53Var11.Q0;
                    editor92.putBoolean("breadcrumb", z);
                    editor92.commit();
                    atomicBoolean = j53Var11.e0;
                    if (atomicBoolean != null) {
                    }
                    j53 j53Var122 = AppImpl.Z;
                    SharedPreferences.Editor editor102 = j53Var122.Q0;
                    editor102.putBoolean("show_tool_bar", true);
                    editor102.commit();
                    atomicBoolean2 = j53Var122.d0;
                    if (atomicBoolean2 != null) {
                    }
                    j53 j53Var132 = AppImpl.Z;
                    if (!d7.c()) {
                        z2 = false;
                        j53Var132.C0(z2);
                        j53 j53Var1422 = AppImpl.Z;
                        SharedPreferences.Editor editor1122 = j53Var1422.Q0;
                        editor1122.putBoolean("auto_remount", true);
                        editor1122.commit();
                        atomicBoolean3 = j53Var1422.b0;
                        if (atomicBoolean3 != null) {
                        }
                        j53 j53Var1522 = AppImpl.Z;
                        SharedPreferences.Editor editor1222 = j53Var1522.Q0;
                        editor1222.putBoolean("auto_update", false);
                        editor1222.commit();
                        atomicBoolean4 = j53Var1522.c0;
                        if (atomicBoolean4 != null) {
                        }
                        j53 j53Var1622 = AppImpl.Z;
                        SharedPreferences.Editor editor1322 = j53Var1622.Q0;
                        editor1322.putBoolean("root_direct_copy", false);
                        editor1322.commit();
                        atomicBoolean5 = j53Var1622.W;
                        if (atomicBoolean5 != null) {
                        }
                        j53 j53Var1722 = AppImpl.Z;
                        SharedPreferences.Editor editor1422 = j53Var1722.Q0;
                        editor1422.putBoolean("swipe_to_refresh", true);
                        editor1422.commit();
                        atomicBoolean6 = j53Var1722.J0;
                        if (atomicBoolean6 != null) {
                        }
                        j53 j53Var1822 = AppImpl.Z;
                        SharedPreferences.Editor editor1522 = j53Var1822.Q0;
                        editor1522.putBoolean("save_tabs_on_exit", false);
                        editor1522.commit();
                        atomicBoolean7 = j53Var1822.L0;
                        if (atomicBoolean7 != null) {
                        }
                        j53 j53Var1922 = AppImpl.Z;
                        SharedPreferences.Editor editor1622 = j53Var1922.Q0;
                        editor1622.putBoolean("draw_tab_close", true);
                        editor1622.commit();
                        atomicBoolean8 = j53Var1922.w;
                        if (atomicBoolean8 != null) {
                        }
                        j53 j53Var2022 = AppImpl.Z;
                        boolean v22 = vf3.v();
                        SharedPreferences.Editor editor1722 = j53Var2022.Q0;
                        editor1722.putBoolean("data_folder_in_root", v22);
                        editor1722.commit();
                        atomicBoolean9 = j53Var2022.A;
                        if (atomicBoolean9 != null) {
                        }
                        j53 j53Var2122 = AppImpl.Z;
                        SharedPreferences.Editor editor1822 = j53Var2122.Q0;
                        editor1822.putBoolean("custom_otg", true);
                        editor1822.commit();
                        atomicBoolean10 = j53Var2122.u;
                        if (atomicBoolean10 != null) {
                        }
                        j53 j53Var2222 = AppImpl.Z;
                        SharedPreferences.Editor editor1922 = j53Var2222.Q0;
                        editor1922.putBoolean("select_by_icon", true);
                        editor1922.commit();
                        atomicBoolean11 = j53Var2222.p;
                        if (atomicBoolean11 != null) {
                        }
                        j53 j53Var2322 = AppImpl.Z;
                        SharedPreferences.Editor editor2022 = j53Var2322.Q0;
                        editor2022.putBoolean("keep_last_modified", false);
                        editor2022.commit();
                        atomicBoolean12 = j53Var2322.o0;
                        if (atomicBoolean12 != null) {
                        }
                        AppImpl.Z.M0(true);
                        j53 j53Var2422 = AppImpl.Z;
                        SharedPreferences.Editor editor2122 = j53Var2422.Q0;
                        editor2122.putString("date_pattern", "");
                        editor2122.commit();
                        j53Var2422.r = "";
                        j53Var2422.R0 = null;
                        j53 j53Var2522 = AppImpl.Z;
                        SharedPreferences.Editor editor2222 = j53Var2522.Q0;
                        editor2222.putBoolean("open_archive", true);
                        editor2222.commit();
                        atomicBoolean13 = j53Var2522.h0;
                        if (atomicBoolean13 != null) {
                        }
                        j53 j53Var2622 = AppImpl.Z;
                        SharedPreferences.Editor editor2322 = j53Var2622.Q0;
                        editor2322.putBoolean("show_toasts", true);
                        editor2322.commit();
                        atomicBoolean14 = j53Var2622.q;
                        if (atomicBoolean14 != null) {
                        }
                        j53 j53Var2722 = AppImpl.Z;
                        SharedPreferences.Editor editor2422 = j53Var2722.Q0;
                        editor2422.putBoolean("full_wake_lock", true);
                        editor2422.commit();
                        atomicBoolean15 = j53Var2722.k0;
                        if (atomicBoolean15 != null) {
                        }
                        j53 j53Var2822 = AppImpl.Z;
                        boolean c22 = d7.c();
                        SharedPreferences.Editor editor2522 = j53Var2822.Q0;
                        editor2522.putBoolean("enable_logging", c22);
                        editor2522.commit();
                        atomicBoolean16 = j53Var2822.i0;
                        if (atomicBoolean16 != null) {
                        }
                        j53 j53Var2922 = AppImpl.Z;
                        if (!vf3.o()) {
                        }
                        z3 = false;
                        SharedPreferences.Editor editor2622 = j53Var2922.Q0;
                        editor2622.putBoolean("animations", z3);
                        editor2622.commit();
                        atomicBoolean17 = j53Var2922.f0;
                        if (atomicBoolean17 != null) {
                        }
                        j53 j53Var3022 = AppImpl.Z;
                        boolean x22 = vf3.x();
                        SharedPreferences.Editor editor2722 = j53Var3022.Q0;
                        editor2722.putBoolean("shizuku", x22);
                        editor2722.commit();
                        atomicBoolean18 = j53Var3022.g0;
                        if (atomicBoolean18 != null) {
                        }
                        j53 j53Var3122 = AppImpl.Z;
                        SharedPreferences.Editor editor2822 = j53Var3122.Q0;
                        editor2822.putBoolean("update_media_store", true);
                        editor2822.commit();
                        atomicBoolean19 = j53Var3122.E0;
                        if (atomicBoolean19 != null) {
                        }
                        j53 j53Var3222 = AppImpl.Z;
                        SharedPreferences.Editor editor2922 = j53Var3222.Q0;
                        editor2922.putBoolean("can_undo", true);
                        editor2922.commit();
                        atomicBoolean20 = j53Var3222.F0;
                        if (atomicBoolean20 != null) {
                        }
                        j53 j53Var3322 = AppImpl.Z;
                        SharedPreferences.Editor editor3022 = j53Var3322.Q0;
                        editor3022.putBoolean("can_trash", true);
                        editor3022.commit();
                        atomicBoolean21 = j53Var3322.G0;
                        if (atomicBoolean21 != null) {
                        }
                        j53 j53Var3422 = AppImpl.Z;
                        SharedPreferences.Editor editor3122 = j53Var3422.Q0;
                        editor3122.putBoolean("remember_delete_option", false);
                        editor3122.commit();
                        atomicBoolean22 = j53Var3422.H0;
                        if (atomicBoolean22 != null) {
                        }
                        j53 j53Var3522 = AppImpl.Z;
                        SharedPreferences.Editor editor3222 = j53Var3522.Q0;
                        editor3222.putBoolean("fixed_enc_key", true);
                        editor3222.commit();
                        atomicBoolean23 = j53Var3522.I0;
                        if (atomicBoolean23 != null) {
                        }
                        j53 j53Var3622 = AppImpl.Z;
                        SharedPreferences.Editor editor3322 = j53Var3622.Q0;
                        editor3322.putBoolean("play_background", false);
                        editor3322.commit();
                        atomicBoolean24 = j53Var3622.N0;
                        if (atomicBoolean24 != null) {
                        }
                        AppImpl.Z.F0(null);
                        j53 j53Var3722 = AppImpl.Z;
                        SharedPreferences.Editor editor3422 = j53Var3722.Q0;
                        editor3422.putString("custom_key_AUTO_TASKS", "");
                        editor3422.commit();
                        j53Var3722.C0 = "";
                        j53 j53Var3822 = AppImpl.Z;
                        SharedPreferences.Editor editor3522 = j53Var3822.Q0;
                        editor3522.putString("night_skin", "");
                        editor3522.commit();
                        j53Var3822.A0 = "";
                        j53 j53Var3922 = AppImpl.Z;
                        SharedPreferences.Editor editor3622 = j53Var3922.Q0;
                        editor3622.putString("home_folder", null);
                        editor3622.commit();
                        j53Var3922.d = null;
                        j53 j53Var4022 = AppImpl.Z;
                        SharedPreferences.Editor editor3722 = j53Var4022.Q0;
                        editor3722.putBoolean("notify_pkg_update", false);
                        editor3722.commit();
                        atomicBoolean25 = j53Var4022.m;
                        if (atomicBoolean25 != null) {
                        }
                        j53 j53Var4122 = AppImpl.Z;
                        SharedPreferences.Editor editor3822 = j53Var4122.Q0;
                        editor3822.putBoolean("back_to_visited_folder", true);
                        editor3822.commit();
                        atomicBoolean26 = j53Var4122.n;
                        if (atomicBoolean26 != null) {
                        }
                        j53Var = AppImpl.Z;
                        SharedPreferences.Editor editor3922 = j53Var.Q0;
                        editor3922.putInt("grid_columns", 0);
                        editor3922.commit();
                        if (j53Var.j != null) {
                        }
                        j53 j53Var4222 = AppImpl.Z;
                        SharedPreferences.Editor editor4022 = j53Var4222.Q0;
                        editor4022.putBoolean("custom_app_title", true);
                        editor4022.commit();
                        atomicBoolean27 = j53Var4222.l0;
                        if (atomicBoolean27 != null) {
                        }
                        j53 j53Var4322 = AppImpl.Z;
                        SharedPreferences.Editor editor4122 = j53Var4322.Q0;
                        editor4122.putBoolean("pinch_to_zoom", true);
                        editor4122.commit();
                        atomicBoolean28 = j53Var4322.y;
                        if (atomicBoolean28 != null) {
                        }
                        AppImpl.Z.M0(true);
                        AppImpl.Z.H0(true);
                        j53 j53Var4422 = AppImpl.Z;
                        SharedPreferences.Editor editor4222 = j53Var4422.Q0;
                        editor4222.putBoolean("drag_and_drop", true);
                        editor4222.commit();
                        atomicBoolean29 = j53Var4422.B;
                        if (atomicBoolean29 != null) {
                        }
                        AppImpl.Z.L0(!AppImpl.b2);
                        j53 j53Var4522 = AppImpl.Z;
                        SharedPreferences.Editor editor4322 = j53Var4522.Q0;
                        editor4322.putBoolean("swipe_to_show_hide", false);
                        editor4322.commit();
                        atomicBoolean30 = j53Var4522.K0;
                        if (atomicBoolean30 != null) {
                        }
                        j53 j53Var4622 = AppImpl.Z;
                        boolean t22 = vf3.t();
                        SharedPreferences.Editor editor4422 = j53Var4622.Q0;
                        editor4422.putBoolean("detailed_view_extra", t22);
                        editor4422.commit();
                        atomicBoolean31 = j53Var4622.C;
                        if (atomicBoolean31 != null) {
                        }
                        j53 j53Var4722 = AppImpl.Z;
                        if (tw0.a > 2) {
                        }
                        SharedPreferences.Editor editor4522 = j53Var4722.Q0;
                        editor4522.putBoolean("pause_thumb_loader", z4);
                        editor4522.commit();
                        atomicBoolean32 = j53Var4722.q0;
                        if (atomicBoolean32 != null) {
                        }
                        j53 j53Var4822 = AppImpl.Z;
                        SharedPreferences.Editor editor4622 = j53Var4822.Q0;
                        editor4622.putBoolean("cache_thumbs", true);
                        editor4622.commit();
                        atomicBoolean33 = j53Var4822.j0;
                        if (atomicBoolean33 != null) {
                        }
                        j53 j53Var4922 = AppImpl.Z;
                        SharedPreferences.Editor editor4722 = j53Var4922.Q0;
                        editor4722.putBoolean("highlight_visited", true);
                        editor4722.commit();
                        atomicBoolean34 = j53Var4922.S;
                        if (atomicBoolean34 != null) {
                        }
                        j53 j53Var5022 = AppImpl.Z;
                        SharedPreferences.Editor editor4822 = j53Var5022.Q0;
                        editor4822.putBoolean("file_extension", true);
                        editor4822.commit();
                        atomicBoolean35 = j53Var5022.D;
                        if (atomicBoolean35 != null) {
                        }
                        j53 j53Var5122 = AppImpl.Z;
                        SharedPreferences.Editor editor4922 = j53Var5122.Q0;
                        editor4922.putBoolean("full_filename", false);
                        editor4922.commit();
                        atomicBoolean36 = j53Var5122.r0;
                        if (atomicBoolean36 != null) {
                        }
                        j53 j53Var5222 = AppImpl.Z;
                        SharedPreferences.Editor editor5022 = j53Var5222.Q0;
                        editor5022.putBoolean("dual_panel", false);
                        editor5022.commit();
                        atomicBoolean37 = j53Var5222.F;
                        if (atomicBoolean37 != null) {
                        }
                        j53 j53Var5322 = AppImpl.Z;
                        SharedPreferences.Editor editor5122 = j53Var5322.Q0;
                        editor5122.putBoolean("full_view_thumb", false);
                        editor5122.commit();
                        atomicBoolean38 = j53Var5322.G;
                        if (atomicBoolean38 != null) {
                        }
                        j53 j53Var5422 = AppImpl.Z;
                        SharedPreferences.Editor editor5222 = j53Var5422.Q0;
                        editor5222.putBoolean("full_dual_panel", false);
                        editor5222.commit();
                        atomicBoolean39 = j53Var5422.I;
                        if (atomicBoolean39 != null) {
                        }
                        j53 j53Var5522 = AppImpl.Z;
                        SharedPreferences.Editor editor5322 = j53Var5522.Q0;
                        editor5322.putBoolean("auto_folder_preview", true);
                        editor5322.commit();
                        atomicBoolean40 = j53Var5522.P;
                        if (atomicBoolean40 != null) {
                        }
                        j53 j53Var5622 = AppImpl.Z;
                        SharedPreferences.Editor editor5422 = j53Var5622.Q0;
                        editor5422.putBoolean("folder_symbols", true);
                        editor5422.commit();
                        atomicBoolean41 = j53Var5622.Q;
                        if (atomicBoolean41 != null) {
                        }
                        j53 j53Var5722 = AppImpl.Z;
                        SharedPreferences.Editor editor5522 = j53Var5722.Q0;
                        editor5522.putBoolean("no_thumbnail", false);
                        editor5522.commit();
                        atomicBoolean42 = j53Var5722.K;
                        if (atomicBoolean42 != null) {
                        }
                        j53 j53Var5822 = AppImpl.Z;
                        SharedPreferences.Editor editor5622 = j53Var5822.Q0;
                        editor5622.putBoolean("change_view_globally", false);
                        editor5622.commit();
                        atomicBoolean43 = j53Var5822.l;
                        if (atomicBoolean43 != null) {
                        }
                        AppImpl.Z.G0(new HashMap());
                        j53Var2 = AppImpl.Z;
                        it = j53Var2.P0.getAll().keySet().iterator();
                        while (true) {
                            hasNext = it.hasNext();
                            SharedPreferences.Editor editor5722 = j53Var2.Q0;
                            if (!hasNext) {
                            }
                        }
                    }
                    z2 = true;
                    j53Var132.C0(z2);
                    j53 j53Var14222 = AppImpl.Z;
                    SharedPreferences.Editor editor11222 = j53Var14222.Q0;
                    editor11222.putBoolean("auto_remount", true);
                    editor11222.commit();
                    atomicBoolean3 = j53Var14222.b0;
                    if (atomicBoolean3 != null) {
                    }
                    j53 j53Var15222 = AppImpl.Z;
                    SharedPreferences.Editor editor12222 = j53Var15222.Q0;
                    editor12222.putBoolean("auto_update", false);
                    editor12222.commit();
                    atomicBoolean4 = j53Var15222.c0;
                    if (atomicBoolean4 != null) {
                    }
                    j53 j53Var16222 = AppImpl.Z;
                    SharedPreferences.Editor editor13222 = j53Var16222.Q0;
                    editor13222.putBoolean("root_direct_copy", false);
                    editor13222.commit();
                    atomicBoolean5 = j53Var16222.W;
                    if (atomicBoolean5 != null) {
                    }
                    j53 j53Var17222 = AppImpl.Z;
                    SharedPreferences.Editor editor14222 = j53Var17222.Q0;
                    editor14222.putBoolean("swipe_to_refresh", true);
                    editor14222.commit();
                    atomicBoolean6 = j53Var17222.J0;
                    if (atomicBoolean6 != null) {
                    }
                    j53 j53Var18222 = AppImpl.Z;
                    SharedPreferences.Editor editor15222 = j53Var18222.Q0;
                    editor15222.putBoolean("save_tabs_on_exit", false);
                    editor15222.commit();
                    atomicBoolean7 = j53Var18222.L0;
                    if (atomicBoolean7 != null) {
                    }
                    j53 j53Var19222 = AppImpl.Z;
                    SharedPreferences.Editor editor16222 = j53Var19222.Q0;
                    editor16222.putBoolean("draw_tab_close", true);
                    editor16222.commit();
                    atomicBoolean8 = j53Var19222.w;
                    if (atomicBoolean8 != null) {
                    }
                    j53 j53Var20222 = AppImpl.Z;
                    boolean v222 = vf3.v();
                    SharedPreferences.Editor editor17222 = j53Var20222.Q0;
                    editor17222.putBoolean("data_folder_in_root", v222);
                    editor17222.commit();
                    atomicBoolean9 = j53Var20222.A;
                    if (atomicBoolean9 != null) {
                    }
                    j53 j53Var21222 = AppImpl.Z;
                    SharedPreferences.Editor editor18222 = j53Var21222.Q0;
                    editor18222.putBoolean("custom_otg", true);
                    editor18222.commit();
                    atomicBoolean10 = j53Var21222.u;
                    if (atomicBoolean10 != null) {
                    }
                    j53 j53Var22222 = AppImpl.Z;
                    SharedPreferences.Editor editor19222 = j53Var22222.Q0;
                    editor19222.putBoolean("select_by_icon", true);
                    editor19222.commit();
                    atomicBoolean11 = j53Var22222.p;
                    if (atomicBoolean11 != null) {
                    }
                    j53 j53Var23222 = AppImpl.Z;
                    SharedPreferences.Editor editor20222 = j53Var23222.Q0;
                    editor20222.putBoolean("keep_last_modified", false);
                    editor20222.commit();
                    atomicBoolean12 = j53Var23222.o0;
                    if (atomicBoolean12 != null) {
                    }
                    AppImpl.Z.M0(true);
                    j53 j53Var24222 = AppImpl.Z;
                    SharedPreferences.Editor editor21222 = j53Var24222.Q0;
                    editor21222.putString("date_pattern", "");
                    editor21222.commit();
                    j53Var24222.r = "";
                    j53Var24222.R0 = null;
                    j53 j53Var25222 = AppImpl.Z;
                    SharedPreferences.Editor editor22222 = j53Var25222.Q0;
                    editor22222.putBoolean("open_archive", true);
                    editor22222.commit();
                    atomicBoolean13 = j53Var25222.h0;
                    if (atomicBoolean13 != null) {
                    }
                    j53 j53Var26222 = AppImpl.Z;
                    SharedPreferences.Editor editor23222 = j53Var26222.Q0;
                    editor23222.putBoolean("show_toasts", true);
                    editor23222.commit();
                    atomicBoolean14 = j53Var26222.q;
                    if (atomicBoolean14 != null) {
                    }
                    j53 j53Var27222 = AppImpl.Z;
                    SharedPreferences.Editor editor24222 = j53Var27222.Q0;
                    editor24222.putBoolean("full_wake_lock", true);
                    editor24222.commit();
                    atomicBoolean15 = j53Var27222.k0;
                    if (atomicBoolean15 != null) {
                    }
                    j53 j53Var28222 = AppImpl.Z;
                    boolean c222 = d7.c();
                    SharedPreferences.Editor editor25222 = j53Var28222.Q0;
                    editor25222.putBoolean("enable_logging", c222);
                    editor25222.commit();
                    atomicBoolean16 = j53Var28222.i0;
                    if (atomicBoolean16 != null) {
                    }
                    j53 j53Var29222 = AppImpl.Z;
                    if (!vf3.o()) {
                    }
                    z3 = false;
                    SharedPreferences.Editor editor26222 = j53Var29222.Q0;
                    editor26222.putBoolean("animations", z3);
                    editor26222.commit();
                    atomicBoolean17 = j53Var29222.f0;
                    if (atomicBoolean17 != null) {
                    }
                    j53 j53Var30222 = AppImpl.Z;
                    boolean x222 = vf3.x();
                    SharedPreferences.Editor editor27222 = j53Var30222.Q0;
                    editor27222.putBoolean("shizuku", x222);
                    editor27222.commit();
                    atomicBoolean18 = j53Var30222.g0;
                    if (atomicBoolean18 != null) {
                    }
                    j53 j53Var31222 = AppImpl.Z;
                    SharedPreferences.Editor editor28222 = j53Var31222.Q0;
                    editor28222.putBoolean("update_media_store", true);
                    editor28222.commit();
                    atomicBoolean19 = j53Var31222.E0;
                    if (atomicBoolean19 != null) {
                    }
                    j53 j53Var32222 = AppImpl.Z;
                    SharedPreferences.Editor editor29222 = j53Var32222.Q0;
                    editor29222.putBoolean("can_undo", true);
                    editor29222.commit();
                    atomicBoolean20 = j53Var32222.F0;
                    if (atomicBoolean20 != null) {
                    }
                    j53 j53Var33222 = AppImpl.Z;
                    SharedPreferences.Editor editor30222 = j53Var33222.Q0;
                    editor30222.putBoolean("can_trash", true);
                    editor30222.commit();
                    atomicBoolean21 = j53Var33222.G0;
                    if (atomicBoolean21 != null) {
                    }
                    j53 j53Var34222 = AppImpl.Z;
                    SharedPreferences.Editor editor31222 = j53Var34222.Q0;
                    editor31222.putBoolean("remember_delete_option", false);
                    editor31222.commit();
                    atomicBoolean22 = j53Var34222.H0;
                    if (atomicBoolean22 != null) {
                    }
                    j53 j53Var35222 = AppImpl.Z;
                    SharedPreferences.Editor editor32222 = j53Var35222.Q0;
                    editor32222.putBoolean("fixed_enc_key", true);
                    editor32222.commit();
                    atomicBoolean23 = j53Var35222.I0;
                    if (atomicBoolean23 != null) {
                    }
                    j53 j53Var36222 = AppImpl.Z;
                    SharedPreferences.Editor editor33222 = j53Var36222.Q0;
                    editor33222.putBoolean("play_background", false);
                    editor33222.commit();
                    atomicBoolean24 = j53Var36222.N0;
                    if (atomicBoolean24 != null) {
                    }
                    AppImpl.Z.F0(null);
                    j53 j53Var37222 = AppImpl.Z;
                    SharedPreferences.Editor editor34222 = j53Var37222.Q0;
                    editor34222.putString("custom_key_AUTO_TASKS", "");
                    editor34222.commit();
                    j53Var37222.C0 = "";
                    j53 j53Var38222 = AppImpl.Z;
                    SharedPreferences.Editor editor35222 = j53Var38222.Q0;
                    editor35222.putString("night_skin", "");
                    editor35222.commit();
                    j53Var38222.A0 = "";
                    j53 j53Var39222 = AppImpl.Z;
                    SharedPreferences.Editor editor36222 = j53Var39222.Q0;
                    editor36222.putString("home_folder", null);
                    editor36222.commit();
                    j53Var39222.d = null;
                    j53 j53Var40222 = AppImpl.Z;
                    SharedPreferences.Editor editor37222 = j53Var40222.Q0;
                    editor37222.putBoolean("notify_pkg_update", false);
                    editor37222.commit();
                    atomicBoolean25 = j53Var40222.m;
                    if (atomicBoolean25 != null) {
                    }
                    j53 j53Var41222 = AppImpl.Z;
                    SharedPreferences.Editor editor38222 = j53Var41222.Q0;
                    editor38222.putBoolean("back_to_visited_folder", true);
                    editor38222.commit();
                    atomicBoolean26 = j53Var41222.n;
                    if (atomicBoolean26 != null) {
                    }
                    j53Var = AppImpl.Z;
                    SharedPreferences.Editor editor39222 = j53Var.Q0;
                    editor39222.putInt("grid_columns", 0);
                    editor39222.commit();
                    if (j53Var.j != null) {
                    }
                    j53 j53Var42222 = AppImpl.Z;
                    SharedPreferences.Editor editor40222 = j53Var42222.Q0;
                    editor40222.putBoolean("custom_app_title", true);
                    editor40222.commit();
                    atomicBoolean27 = j53Var42222.l0;
                    if (atomicBoolean27 != null) {
                    }
                    j53 j53Var43222 = AppImpl.Z;
                    SharedPreferences.Editor editor41222 = j53Var43222.Q0;
                    editor41222.putBoolean("pinch_to_zoom", true);
                    editor41222.commit();
                    atomicBoolean28 = j53Var43222.y;
                    if (atomicBoolean28 != null) {
                    }
                    AppImpl.Z.M0(true);
                    AppImpl.Z.H0(true);
                    j53 j53Var44222 = AppImpl.Z;
                    SharedPreferences.Editor editor42222 = j53Var44222.Q0;
                    editor42222.putBoolean("drag_and_drop", true);
                    editor42222.commit();
                    atomicBoolean29 = j53Var44222.B;
                    if (atomicBoolean29 != null) {
                    }
                    AppImpl.Z.L0(!AppImpl.b2);
                    j53 j53Var45222 = AppImpl.Z;
                    SharedPreferences.Editor editor43222 = j53Var45222.Q0;
                    editor43222.putBoolean("swipe_to_show_hide", false);
                    editor43222.commit();
                    atomicBoolean30 = j53Var45222.K0;
                    if (atomicBoolean30 != null) {
                    }
                    j53 j53Var46222 = AppImpl.Z;
                    boolean t222 = vf3.t();
                    SharedPreferences.Editor editor44222 = j53Var46222.Q0;
                    editor44222.putBoolean("detailed_view_extra", t222);
                    editor44222.commit();
                    atomicBoolean31 = j53Var46222.C;
                    if (atomicBoolean31 != null) {
                    }
                    j53 j53Var47222 = AppImpl.Z;
                    if (tw0.a > 2) {
                    }
                    SharedPreferences.Editor editor45222 = j53Var47222.Q0;
                    editor45222.putBoolean("pause_thumb_loader", z4);
                    editor45222.commit();
                    atomicBoolean32 = j53Var47222.q0;
                    if (atomicBoolean32 != null) {
                    }
                    j53 j53Var48222 = AppImpl.Z;
                    SharedPreferences.Editor editor46222 = j53Var48222.Q0;
                    editor46222.putBoolean("cache_thumbs", true);
                    editor46222.commit();
                    atomicBoolean33 = j53Var48222.j0;
                    if (atomicBoolean33 != null) {
                    }
                    j53 j53Var49222 = AppImpl.Z;
                    SharedPreferences.Editor editor47222 = j53Var49222.Q0;
                    editor47222.putBoolean("highlight_visited", true);
                    editor47222.commit();
                    atomicBoolean34 = j53Var49222.S;
                    if (atomicBoolean34 != null) {
                    }
                    j53 j53Var50222 = AppImpl.Z;
                    SharedPreferences.Editor editor48222 = j53Var50222.Q0;
                    editor48222.putBoolean("file_extension", true);
                    editor48222.commit();
                    atomicBoolean35 = j53Var50222.D;
                    if (atomicBoolean35 != null) {
                    }
                    j53 j53Var51222 = AppImpl.Z;
                    SharedPreferences.Editor editor49222 = j53Var51222.Q0;
                    editor49222.putBoolean("full_filename", false);
                    editor49222.commit();
                    atomicBoolean36 = j53Var51222.r0;
                    if (atomicBoolean36 != null) {
                    }
                    j53 j53Var52222 = AppImpl.Z;
                    SharedPreferences.Editor editor50222 = j53Var52222.Q0;
                    editor50222.putBoolean("dual_panel", false);
                    editor50222.commit();
                    atomicBoolean37 = j53Var52222.F;
                    if (atomicBoolean37 != null) {
                    }
                    j53 j53Var53222 = AppImpl.Z;
                    SharedPreferences.Editor editor51222 = j53Var53222.Q0;
                    editor51222.putBoolean("full_view_thumb", false);
                    editor51222.commit();
                    atomicBoolean38 = j53Var53222.G;
                    if (atomicBoolean38 != null) {
                    }
                    j53 j53Var54222 = AppImpl.Z;
                    SharedPreferences.Editor editor52222 = j53Var54222.Q0;
                    editor52222.putBoolean("full_dual_panel", false);
                    editor52222.commit();
                    atomicBoolean39 = j53Var54222.I;
                    if (atomicBoolean39 != null) {
                    }
                    j53 j53Var55222 = AppImpl.Z;
                    SharedPreferences.Editor editor53222 = j53Var55222.Q0;
                    editor53222.putBoolean("auto_folder_preview", true);
                    editor53222.commit();
                    atomicBoolean40 = j53Var55222.P;
                    if (atomicBoolean40 != null) {
                    }
                    j53 j53Var56222 = AppImpl.Z;
                    SharedPreferences.Editor editor54222 = j53Var56222.Q0;
                    editor54222.putBoolean("folder_symbols", true);
                    editor54222.commit();
                    atomicBoolean41 = j53Var56222.Q;
                    if (atomicBoolean41 != null) {
                    }
                    j53 j53Var57222 = AppImpl.Z;
                    SharedPreferences.Editor editor55222 = j53Var57222.Q0;
                    editor55222.putBoolean("no_thumbnail", false);
                    editor55222.commit();
                    atomicBoolean42 = j53Var57222.K;
                    if (atomicBoolean42 != null) {
                    }
                    j53 j53Var58222 = AppImpl.Z;
                    SharedPreferences.Editor editor56222 = j53Var58222.Q0;
                    editor56222.putBoolean("change_view_globally", false);
                    editor56222.commit();
                    atomicBoolean43 = j53Var58222.l;
                    if (atomicBoolean43 != null) {
                    }
                    AppImpl.Z.G0(new HashMap());
                    j53Var2 = AppImpl.Z;
                    it = j53Var2.P0.getAll().keySet().iterator();
                    while (true) {
                        hasNext = it.hasNext();
                        SharedPreferences.Editor editor57222 = j53Var2.Q0;
                        if (!hasNext) {
                        }
                    }
                    break;
                case R.string.password:
                    AppImpl.Z.I0(null);
                    break;
                case R.string.remember:
                    AppImpl.Z.x0();
                    AppImpl.X.getClass();
                    sa0.f("packages", null, null);
                    break;
                case R.string.servers:
                    boolean z6 = ConfigServerActivity.S2;
                    SharedPreferences W2 = j53.W("ServersConfig");
                    if (W2 != null) {
                        SharedPreferences.Editor edit2 = W2.edit();
                        edit2.clear();
                        edit2.commit();
                        break;
                    }
                    break;
                case R.string.theme:
                    PreferenceActivity preferenceActivity2 = this.e;
                    boolean z7 = PreferenceActivity.E2;
                    preferenceActivity2.getClass();
                    fp2.G0(d93.Q());
                    preferenceActivity2.O0();
                    break;
            }
            this.d.dismiss();
            fw1.d(Integer.valueOf(R.string.done));
        } catch (Throwable th) {
            xv1.j("PrefActivity", "RESET", ui3.A(th));
            fw1.d(Integer.valueOf(R.string.failed));
        }
    }

    @Override
    public final synchronized void E(View view, int i) {
        switch (this.b) {
            case 0:
                O(view, i);
                return;
            default:
                P(view, i);
                return;
        }
    }
}