Follow change in load average service.
Change-Id: I7d415a140598ef582842f1babdbc88b0e7be3ea9
This commit is contained in:
@@ -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) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user