Follow change in load average service.

Change-Id: I7d415a140598ef582842f1babdbc88b0e7be3ea9
This commit is contained in:
Dianne Hackborn
2011-07-14 17:23:58 -07:00
parent 6c21377ff7
commit c5ec5be6e4

View File

@@ -250,7 +250,7 @@ public class DevelopmentSettings extends PreferenceFragment
Settings.System.putInt(getActivity().getContentResolver(), Settings.System.putInt(getActivity().getContentResolver(),
Settings.System.SHOW_PROCESSES, value ? 1 : 0); Settings.System.SHOW_PROCESSES, value ? 1 : 0);
Intent service = (new Intent()) Intent service = (new Intent())
.setClassName("android", "com.android.server.LoadAverageService"); .setClassName("com.android.systemui", "com.android.systemui.LoadAverageService");
if (value) { if (value) {
getActivity().startService(service); getActivity().startService(service);
} else { } else {
@@ -298,6 +298,7 @@ public class DevelopmentSettings extends PreferenceFragment
try { try {
float scale = Float.parseFloat(newValue.toString()); float scale = Float.parseFloat(newValue.toString());
mWindowManager.setAnimationScale(which, scale); mWindowManager.setAnimationScale(which, scale);
updateAnimationScaleValue(which, pref);
} catch (RemoteException e) { } catch (RemoteException e) {
} }
} }
@@ -324,6 +325,7 @@ public class DevelopmentSettings extends PreferenceFragment
try { try {
int limit = Integer.parseInt(newValue.toString()); int limit = Integer.parseInt(newValue.toString());
ActivityManagerNative.getDefault().setProcessLimit(limit); ActivityManagerNative.getDefault().setProcessLimit(limit);
updateAppProcessLimitOptions();
} catch (RemoteException e) { } catch (RemoteException e) {
} }
} }