Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix NPE in DepthController #3371

Merged
merged 6 commits into from Mar 17, 2023

Conversation

Goooler
Copy link
Member

@Goooler Goooler commented Mar 13, 2023

Description

Fixes #3111

Type of change

❌ General change (non-breaking change that doesn't fit the below categories like copyediting)
✅ Bug fix (non-breaking change which fixes an issue)
❌ New feature (non-breaking change which adds functionality)
❌ Breaking change (fix or feature that would cause existing functionality to not work as expected)

@Goooler
Copy link
Member Author

Goooler commented Mar 17, 2023

CC @liu-wanshun

Preference<Boolean, Boolean, ?> depthPref = PreferenceManager2.getInstance(l).getWallpaperDepthEffect();
// TODO: No need to use app context here after merging Android 13 branch.
// https://cs.android.com/android/platform/superproject/+/master:packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/QuickstepLauncher.java;drc=eef0b1640bbc8c26c824836271a71b929726e895;l=175
Preference<Boolean, Boolean, ?> depthPref = PreferenceManager2.getInstance(LawnchairApp.getInstance()).getWallpaperDepthEffect();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Goooler Goooler changed the title Fix NPE in MainThreadInitializedObject#get Fix NPE in DepthController Mar 17, 2023
@Goooler Goooler merged commit 0a029d9 into 12.1-dev Mar 17, 2023
3 checks passed
@Goooler Goooler deleted the gl/0313/fix_npe_in_MainThreadInitializedObject branch March 17, 2023 03:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] NPE in PrefenceMananger2$Companion.getInstance
4 participants