package ඓ.㸾.K;

import android.app.Application;
import android.database.ContentObserver;
import android.os.Build;
import android.os.Handler;
import android.os.Looper;
import android.provider.Settings;
import java.util.ArrayList;
import java.util.Iterator;

/* renamed from: ඓ.㸾.K.ඓ  reason: contains not printable characters */
/* compiled from: EMUI3NavigationBarObserver */
public final class C1370 extends ContentObserver {

    /* renamed from: ʬ  reason: contains not printable characters */
    public Boolean f5228 = false;

    /* renamed from: ῲ  reason: contains not printable characters */
    public Application f5229;

    /* renamed from: K  reason: contains not printable characters */
    public ArrayList<AbstractRunnableC1377> f5230;

    /* renamed from: ඓ.㸾.K.ඓ$ῲ  reason: contains not printable characters */
    /* compiled from: EMUI3NavigationBarObserver */
    public static class C1371 {

        /* renamed from: K  reason: contains not printable characters */
        public static final C1370 f5231 = new C1370(null);
    }

    public /* synthetic */ C1370(C1372 k) {
        super(new Handler(Looper.getMainLooper()));
    }

    public void onChange(boolean z) {
        ArrayList<AbstractRunnableC1377> arrayList;
        super.onChange(z);
        int i = Build.VERSION.SDK_INT;
        Application application = this.f5229;
        if (application != null && application.getContentResolver() != null && (arrayList = this.f5230) != null && !arrayList.isEmpty()) {
            int i2 = Settings.System.getInt(this.f5229.getContentResolver(), "navigationbar_is_min", 0);
            Iterator<AbstractRunnableC1377> it2 = this.f5230.iterator();
            while (it2.hasNext()) {
                AbstractRunnableC1377 next = it2.next();
                boolean z2 = true;
                if (i2 == 1) {
                    z2 = false;
                }
                ((C1387) next).m3595(z2);
            }
        }
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public void m3562(AbstractRunnableC1377 r2) {
        ArrayList<AbstractRunnableC1377> arrayList;
        if (r2 != null && (arrayList = this.f5230) != null) {
            arrayList.remove(r2);
        }
    }

    /* renamed from: K  reason: contains not printable characters */
    public void m3563(AbstractRunnableC1377 r2) {
        if (r2 != null) {
            if (this.f5230 == null) {
                this.f5230 = new ArrayList<>();
            }
            if (!this.f5230.contains(r2)) {
                this.f5230.add(r2);
            }
        }
    }

    /* renamed from: K  reason: contains not printable characters */
    public static C1370 m3561() {
        return C1371.f5231;
    }
}
