From c5a06243a6ed6982bcac663f40543df820803402 Mon Sep 17 00:00:00 2001 From: litetex <40789489+litetex@users.noreply.github.com> Date: Wed, 29 Dec 2021 18:49:37 +0100 Subject: [PATCH] Fixed variable name --- .../schabi/newpipe/settings/DebugSettingsFragment.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/settings/DebugSettingsFragment.java b/app/src/main/java/org/schabi/newpipe/settings/DebugSettingsFragment.java index a42d47313..3e28a6065 100644 --- a/app/src/main/java/org/schabi/newpipe/settings/DebugSettingsFragment.java +++ b/app/src/main/java/org/schabi/newpipe/settings/DebugSettingsFragment.java @@ -40,13 +40,13 @@ public class DebugSettingsFragment extends BasePreferenceFragment { assert showErrorSnackbarPreference != null; assert createErrorNotificationPreference != null; - final Optional optPDLeakCanary = getBVLeakCanary(); + final Optional optBVLeakCanary = getBVLeakCanary(); - allowHeapDumpingPreference.setEnabled(optPDLeakCanary.isPresent()); - showMemoryLeaksPreference.setEnabled(optPDLeakCanary.isPresent()); + allowHeapDumpingPreference.setEnabled(optBVLeakCanary.isPresent()); + showMemoryLeaksPreference.setEnabled(optBVLeakCanary.isPresent()); - if (optPDLeakCanary.isPresent()) { - final DebugSettingsBVLeakCanaryAPI pdLeakCanary = optPDLeakCanary.get(); + if (optBVLeakCanary.isPresent()) { + final DebugSettingsBVLeakCanaryAPI pdLeakCanary = optBVLeakCanary.get(); showMemoryLeaksPreference.setOnPreferenceClickListener(preference -> { startActivity(pdLeakCanary.getNewLeakDisplayActivityIntent());