Cleanup some commits:
Revert "[SQUASHED] Custom Carrier Label & Carrier Label Placement [1/2]" This reverts commit69d6ea5f4a. Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com> Revert "Cherish: Explain to the user why LS Blur is disabled" This reverts commit7d79cc9d06. Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com> Revert "Cherish: Hide LS blur option if homescreen and LS wallpaper are different" This reverts commit8b8a6de242. Revert "Cherish: Add lockscreen background blur [2/2]" This reverts commitd979103998. Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com> Revert "Cherish:Notifications background opacity [2/2]" This reverts commitd05ae2705d. Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
@@ -19,23 +19,13 @@ package com.cherish.settings.utils;
|
||||
|
||||
import static android.os.UserHandle.USER_SYSTEM;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.ActivityManager;
|
||||
import android.content.ContentResolver;
|
||||
import android.content.Context;
|
||||
import android.content.pm.ActivityInfo;
|
||||
import android.content.om.IOverlayManager;
|
||||
import android.os.AsyncTask;
|
||||
import android.os.RemoteException;
|
||||
import android.widget.Toast;
|
||||
import android.os.Build;
|
||||
import android.os.SystemProperties;
|
||||
import android.provider.Settings;
|
||||
|
||||
import com.android.settings.R;
|
||||
import android.text.TextUtils;
|
||||
import android.view.KeyCharacterMap;
|
||||
import android.view.KeyEvent;
|
||||
import android.view.Surface;
|
||||
|
||||
public class Utils {
|
||||
|
||||
@@ -46,13 +36,5 @@ public class Utils {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
public static boolean isBlurSupported() {
|
||||
boolean blurSupportedSysProp = SystemProperties
|
||||
.getBoolean("ro.surface_flinger.supports_background_blur", false);
|
||||
boolean blurDisabledSysProp = SystemProperties
|
||||
.getBoolean("persist.sys.sf.disable_blurs", false);
|
||||
return blurSupportedSysProp && !blurDisabledSysProp && ActivityManager.isHighEndGfx();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user