base: Fix NPE in GameManagerService

Change-Id: Id62b90dd37e6062792180cfdb19cb3a4fb371d3f
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Ghosuto <clash.raja10@gmail.com>
This commit is contained in:
Dhina17
2024-06-13 16:29:18 +05:30
committed by Ghosuto
parent 39a6e1df80
commit 562476a43b

View File

@@ -2410,6 +2410,7 @@ public final class GameManagerService extends IGameManagerService.Stub {
public void onChange(boolean selfChange, Uri uri) {
String newValue = Settings.Secure.getString(mContentResolver,
"game_overlay");
if (newValue == null) return;
// We write key and value of the device_config property as a single string
// from our GameSpace.
// ';;' is the separator betweeen key and value.