Skip to content
Commit 27cd0095 authored by Kevin Han's avatar Kevin Han
Browse files

Fix HibernationSettingStateLiveData NPE

NPE is because the package is uninstalled between the function
suspending and returning, causing the LightPackageInfo value to be null.
We instead store the value when it is non-null and use that throughout.

Stale package data is fine here as any API needs to robustly deal with
the package not being installed.

Bug: 227861199
Test: builds
Change-Id: I892fab5707816f540b3effaf6e725011cde3f66d
Merged-In: I892fab5707816f540b3effaf6e725011cde3f66d
parent cac8d031
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment