summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcodeworkx <codeworkx@cyanogenmod.org>2012-12-02 16:24:54 +0100
committercodeworkx <codeworkx@cyanogenmod.org>2012-12-02 16:24:54 +0100
commita085b585d7d8f8a28807857ca38d8d1894f110f0 (patch)
tree9e341ca9747757c7bc45a0048e15362a04a5c2cb
parent5366c68670140bc311b06ab77c26a7e628a7bf8c (diff)
downloaddevice_samsung_i9100-a085b585d7d8f8a28807857ca38d8d1894f110f0.zip
device_samsung_i9100-a085b585d7d8f8a28807857ca38d8d1894f110f0.tar.gz
device_samsung_i9100-a085b585d7d8f8a28807857ca38d8d1894f110f0.tar.bz2
i9100: update dock settings for mr1
Change-Id: Ia1bebcfd817bffeed89efb50b0fd18951d965dcb
-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);
}
-
}