Fixed variable name
This commit is contained in:
parent
31a9718c50
commit
54f1fbbe32
1 changed files with 5 additions and 5 deletions
|
|
@ -40,13 +40,13 @@ public class DebugSettingsFragment extends BasePreferenceFragment {
|
||||||
assert showErrorSnackbarPreference != null;
|
assert showErrorSnackbarPreference != null;
|
||||||
assert createErrorNotificationPreference != null;
|
assert createErrorNotificationPreference != null;
|
||||||
|
|
||||||
final Optional<DebugSettingsBVLeakCanaryAPI> optPDLeakCanary = getBVLeakCanary();
|
final Optional<DebugSettingsBVLeakCanaryAPI> optBVLeakCanary = getBVLeakCanary();
|
||||||
|
|
||||||
allowHeapDumpingPreference.setEnabled(optPDLeakCanary.isPresent());
|
allowHeapDumpingPreference.setEnabled(optBVLeakCanary.isPresent());
|
||||||
showMemoryLeaksPreference.setEnabled(optPDLeakCanary.isPresent());
|
showMemoryLeaksPreference.setEnabled(optBVLeakCanary.isPresent());
|
||||||
|
|
||||||
if (optPDLeakCanary.isPresent()) {
|
if (optBVLeakCanary.isPresent()) {
|
||||||
final DebugSettingsBVLeakCanaryAPI pdLeakCanary = optPDLeakCanary.get();
|
final DebugSettingsBVLeakCanaryAPI pdLeakCanary = optBVLeakCanary.get();
|
||||||
|
|
||||||
showMemoryLeaksPreference.setOnPreferenceClickListener(preference -> {
|
showMemoryLeaksPreference.setOnPreferenceClickListener(preference -> {
|
||||||
startActivity(pdLeakCanary.getNewLeakDisplayActivityIntent());
|
startActivity(pdLeakCanary.getNewLeakDisplayActivityIntent());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue