// Path: app/src/main/java/com/andfast/app/AndFastApplication.java
// public class AndFastApplication extends Application {
// 
//     private final static String TAG = "AndFastApplication";
//     private static Context mContext;
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         mContext = getApplicationContext();
//         StorageUtils.initExtDir(getApplicationContext());
//         initLog();
//         CrashHandler.getInstance().init(getApplicationContext());
//         LogUtils.i(TAG,"<><><><><><><><><>");
//         LogUtils.i(TAG," app is start!");
//         LogUtils.i(TAG,"<><><><><><><><><>");
//     }
// 
//     private void initLog() {
//         LogUtils.setRootTag("andfast");
//         LogUtils.setLogPath(StorageUtils.getLogDir());
//         LogUtils.setSaveRuntimeInfo(true);
//         LogUtils.setAutoSave(true);
//         LogUtils.setDebug(BuildConfig.LOG_DEBUG);
//     }
// 
//     public static Context getContext(){
//         return mContext;
//     }
// }


import android.app.Activity;
import android.content.Context;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.graphics.Point;
import android.os.Build;
import android.provider.Settings;
import android.util.DisplayMetrics;
import android.view.Display;
import android.view.Surface;
import android.view.View;
import android.view.WindowInsets;
import android.view.WindowManager;
import com.andfast.app.AndFastApplication;
import java.lang.reflect.Method;
package com.andfast.app.util;




/**
 * 屏幕属性获取
 *
 * @author: boyuma
 * @datetime: 2020/6/16
 */
public class ScreenUtil {

    private static final String NAVIGATION_GESTURE = "navigation_gesture_on";
    private static final int NAVIGATION_GESTURE_OFF = 0;
    private static final String XIAOMI_FULLSCREEN_GESTURE = "force_fsg_nav_bar";

    public static boolean sDeviceDataInit = false;
    private static float sDisplayMetricsDensity;
    static int sDisplayMetricsWidthPixels;
    static int sDisplayMetricsHeightPixels;
    private static int realScreenHeight = 0;
    private static float sDisplayRate = 0.f;

    public static void initDeviceData() {
        DisplayMetrics metric = new DisplayMetrics();
// Path: app/src/main/java/com/andfast/app/AndFastApplication.java
// public class AndFastApplication extends Application {
// 
//     private final static String TAG = "AndFastApplication";
//     private static Context mContext;
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         mContext = getApplicationContext();
//         StorageUtils.initExtDir(getApplicationContext());
//         initLog();
//         CrashHandler.getInstance().init(getApplicationContext());
//         LogUtils.i(TAG,"<><><><><><><><><>");
//         LogUtils.i(TAG," app is start!");
//         LogUtils.i(TAG,"<><><><><><><><><>");
//     }
// 
//     private void initLog() {
//         LogUtils.setRootTag("andfast");
//         LogUtils.setLogPath(StorageUtils.getLogDir());
//         LogUtils.setSaveRuntimeInfo(true);
//         LogUtils.setAutoSave(true);
//         LogUtils.setDebug(BuildConfig.LOG_DEBUG);
//     }
// 
//     public static Context getContext(){
//         return mContext;
//     }
// }


// Path: app/src/main/java/com/andfast/app/util/ScreenUtil.java
import android.app.Activity;
import android.content.Context;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.graphics.Point;
import android.os.Build;
import android.provider.Settings;
import android.util.DisplayMetrics;
import android.view.Display;
import android.view.Surface;
import android.view.View;
import android.view.WindowInsets;
import android.view.WindowManager;
import com.andfast.app.AndFastApplication;
import java.lang.reflect.Method;

package com.andfast.app.util;




/**
 * 屏幕属性获取
 *
 * @author: boyuma
 * @datetime: 2020/6/16
 */
public class ScreenUtil {

    private static final String NAVIGATION_GESTURE = "navigation_gesture_on";
    private static final int NAVIGATION_GESTURE_OFF = 0;
    private static final String XIAOMI_FULLSCREEN_GESTURE = "force_fsg_nav_bar";

    public static boolean sDeviceDataInit = false;
    private static float sDisplayMetricsDensity;
    static int sDisplayMetricsWidthPixels;
    static int sDisplayMetricsHeightPixels;
    private static int realScreenHeight = 0;
    private static float sDisplayRate = 0.f;

    public static void initDeviceData() {
        DisplayMetrics metric = new DisplayMetrics();
        WindowManager manager = (WindowManager) AndFastApplication