summaryrefslogtreecommitdiffstats
path: root/DeviceSettings
diff options
context:
space:
mode:
authorcodeworkx <codeworkx@cyanogenmod.org>2012-12-02 16:24:54 +0100
committerAndrew Dodd <atd7@cornell.edu>2012-12-02 16:09:54 -0500
commitf32c5297d9d5bb601fced60369034b5f4251681d (patch)
tree7cd973c0b7e59e99f4b137b797aae992ec0bce13 /DeviceSettings
parent35f3e185d3f27ee6421fef767213e2d5ca0f431e (diff)
downloaddevice_samsung_n7000-f32c5297d9d5bb601fced60369034b5f4251681d.zip
device_samsung_n7000-f32c5297d9d5bb601fced60369034b5f4251681d.tar.gz
device_samsung_n7000-f32c5297d9d5bb601fced60369034b5f4251681d.tar.bz2
n7000: update dock settings for mr1
Change-Id: Ia1bebcfd817bffeed89efb50b0fd18951d965dcb
Diffstat (limited to 'DeviceSettings')
-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);
}
-
}