Skip to content

Commit 2c1b444

Browse files
Dhina17rmp22
authored andcommitted
base: Fix gamespace on secondary users
Change-Id: I80c23dbfe900253510d027c891b2e6f441c45132 Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
1 parent 2b267d8 commit 2c1b444

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

services/core/java/com/android/server/app/GameManagerService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2411,8 +2411,8 @@ class SettingsObserver extends ContentObserver {
24112411

24122412
@Override
24132413
public void onChange(boolean selfChange, Uri uri) {
2414-
String newValue = Settings.Secure.getString(mContentResolver,
2415-
"game_overlay");
2414+
String newValue = Settings.Secure.getStringForUser(mContentResolver,
2415+
"game_overlay", UserHandle.USER_CURRENT);
24162416
if (newValue == null) return;
24172417
// We write key and value of the device_config property as a single string
24182418
// from our GameSpace.

0 commit comments

Comments
 (0)