Cleanup some commits:

Revert "[SQUASHED] Custom Carrier Label & Carrier Label Placement [1/2]"

This reverts commit 69d6ea5f4a.

Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>

Revert "Cherish: Explain to the user why LS Blur is disabled"

This reverts commit 7d79cc9d06.

Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>

Revert "Cherish: Hide LS blur option if homescreen and LS wallpaper are different"

This reverts commit 8b8a6de242.

Revert "Cherish: Add lockscreen background blur [2/2]"

This reverts commit d979103998.

Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>

Revert "Cherish:Notifications background opacity [2/2]"

This reverts commit d05ae2705d.

Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
Hưng Phan
2021-07-19 17:18:20 +07:00
parent f1b6d9bf8b
commit a40ab20879
10 changed files with 5 additions and 345 deletions

View File

@@ -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();
}
}