导航菜单

页面标题

页面副标题

Minits v4.9.3.32 - EditViewHyperSensorPortrait.java 源代码

正在查看: Minits v4.9.3.32 应用的 EditViewHyperSensorPortrait.java JAVA 源代码文件

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


package com.xone.android.framework.activities;

import android.annotation.SuppressLint;
import android.os.Bundle;
import android.view.OrientationEventListener;
import java.lang.ref.WeakReference;

@SuppressLint({"SourceLockedOrientationActivity", "InlinedApi"})
public final class EditViewHyperSensorPortrait extends EditViewHyperPortrait {
    public b h1;
    public a i1;

    public enum a {
        PORTRAIT,
        REVERSE_PORTRAIT
    }

    public static class b extends OrientationEventListener {
        public final WeakReference a;

        public b(EditViewHyperSensorPortrait editViewHyperSensorPortrait) {
            super(editViewHyperSensorPortrait);
            this.a = new WeakReference(editViewHyperSensorPortrait);
        }

        @Override
        public void onOrientationChanged(int i) {
            ?? r0;
            a aVar;
            if (i == -1 || (r0 = (EditViewHyperSensorPortrait) this.a.get()) == 0 || r0.c()) {
                return;
            }
            a k92 = r0.k9();
            if (i >= 315 || i <= 45) {
                a aVar2 = a.PORTRAIT;
                if (k92 != aVar2) {
                    r0.l9(aVar2);
                    r0.setRequestedOrientation(1);
                    return;
                }
                return;
            }
            if (i < 135 || i > 225 || k92 == (aVar = a.REVERSE_PORTRAIT)) {
                return;
            }
            r0.l9(aVar);
            r0.setRequestedOrientation(9);
        }
    }

    public a k9() {
        return this.i1;
    }

    public void l9(a aVar) {
        this.i1 = aVar;
    }

    @Override
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        this.h1 = new b(this);
    }

    @Override
    public void onPause() {
        super.onPause();
        b bVar = this.h1;
        if (bVar != null) {
            bVar.disable();
        }
    }

    @Override
    public void onResume() {
        super.onResume();
        b bVar = this.h1;
        if (bVar != null) {
            bVar.enable();
        }
    }
}