base: Fix gamespace on secondary users

Change-Id: I80c23dbfe900253510d027c891b2e6f441c45132
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:04:25 +05:30
committed by Ghosuto
parent 562476a43b
commit 23f092244e

View File

@@ -2408,8 +2408,8 @@ public final class GameManagerService extends IGameManagerService.Stub {
@Override
public void onChange(boolean selfChange, Uri uri) {
String newValue = Settings.Secure.getString(mContentResolver,
"game_overlay");
String newValue = Settings.Secure.getStringForUser(mContentResolver,
"game_overlay", UserHandle.USER_CURRENT);
if (newValue == null) return;
// We write key and value of the device_config property as a single string
// from our GameSpace.