Settings: Disable automatic system server heap dumps by default

Change-Id: I83534dfb3f84f9c4a986cf071dd60b5bf057575e
Signed-off-by: minaripenguin <minaripenguin@users.noreply.github.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
This commit is contained in:
minaripenguin
2023-08-27 11:18:17 +08:00
committed by Joey
parent 3caaab1fdc
commit 90eb22a7e0

View File

@@ -70,7 +70,7 @@ public class AutomaticSystemServerHeapDumpPreferenceController extends
@Override
public void updateState(Preference preference) {
final int mode = Settings.Secure.getInt(mContext.getContentResolver(),
Settings.Global.ENABLE_AUTOMATIC_SYSTEM_SERVER_HEAP_DUMPS, SETTING_VALUE_ON);
Settings.Global.ENABLE_AUTOMATIC_SYSTEM_SERVER_HEAP_DUMPS, SETTING_VALUE_OFF);
((TwoStatePreference) mPreference).setChecked(mode != SETTING_VALUE_OFF);
}