Skip to content

Commit

Permalink
Revert "Disable recents blur by default"
Browse files Browse the repository at this point in the history
This reverts commit 6f3b266.
  • Loading branch information
Arman-ATI authored and janakniraula committed Feb 5, 2025
1 parent 13b8d2a commit e88d38f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion res/xml/launcher_misc_preferences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
android:max="175"
android:min="0"
settings:units="px"
android:defaultValue="0" />
android:defaultValue="23" />

<androidx.preference.PreferenceScreen
android:persistent="false"
Expand Down
5 changes: 3 additions & 2 deletions src/com/android/launcher3/Utilities.java
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,7 @@ public static int getLauncher() {
}

public static int getRecentsOpacity(Context context) {
return getLauncher() == 2 ? 100 : 50;
return getLauncher() == 2 ? 100 : 40;
}

public static int getAllAppsOpacity(Context context) {
Expand All @@ -1144,7 +1144,8 @@ public static int getAllAppsOpacity(Context context) {

public static int getBlurRadius(Context context) {
SharedPreferences prefs = LauncherPrefs.getPrefs(context.getApplicationContext());
return prefs.getInt(KEY_BLUR_DEPTH, 0);
return prefs.getInt(KEY_BLUR_DEPTH,
(int) context.getResources().getDimension(R.dimen.max_depth_blur_radius));
}

public static boolean isShortParallax(Context context) {
Expand Down

0 comments on commit e88d38f

Please sign in to comment.