summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--DeviceSettings/src/com/cyanogenmod/settings/device/DockFragmentActivity.java9
1 files 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);
}
-
}