From a085b585d7d8f8a28807857ca38d8d1894f110f0 Mon Sep 17 00:00:00 2001 From: codeworkx Date: Sun, 2 Dec 2012 16:24:54 +0100 Subject: i9100: update dock settings for mr1 Change-Id: Ia1bebcfd817bffeed89efb50b0fd18951d965dcb --- .../com/cyanogenmod/settings/device/DockFragmentActivity.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/DeviceSettings/src/com/cyanogenmod/settings/device/DockFragmentActivity.java b/DeviceSettings/src/com/cyanogenmod/settings/device/DockFragmentActivity.java index 4591825..4504dd7 100644 --- a/DeviceSettings/src/com/cyanogenmod/settings/device/DockFragmentActivity.java +++ b/DeviceSettings/src/com/cyanogenmod/settings/device/DockFragmentActivity.java @@ -21,6 +21,7 @@ import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; +import android.os.UserHandle; import android.preference.CheckBoxPreference; import android.preference.Preference; import android.preference.PreferenceActivity; @@ -42,7 +43,6 @@ public class DockFragmentActivity extends PreferenceFragment { addPreferencesFromResource(R.xml.dock_preferences); PreferenceScreen prefSet = getPreferenceScreen(); - } @Override @@ -57,9 +57,8 @@ public class DockFragmentActivity extends PreferenceFragment { boxValue = (((CheckBoxPreference)preference).isChecked() ? "1" : "0"); Intent i = new Intent("com.cyanogenmod.settings.SamsungDock"); i.putExtra("data", boxValue); - ActivityManagerNative.broadcastStickyIntent(i, null); + ActivityManagerNative.broadcastStickyIntent(i, null, UserHandle.USER_ALL); } - return true; } @@ -68,8 +67,6 @@ public class DockFragmentActivity extends PreferenceFragment { boolean dockAudio = sharedPrefs.getBoolean(DeviceSettings.KEY_USE_DOCK_AUDIO, false); Intent i = new Intent("com.cyanogenmod.settings.SamsungDock"); i.putExtra("data", (dockAudio? "1" : "0")); - ActivityManagerNative.broadcastStickyIntent(i, null); - + ActivityManagerNative.broadcastStickyIntent(i, null, UserHandle.USER_ALL); } - } -- cgit v1.1