1
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-11-21 22:10:11 +01:00

Fixed variable name

This commit is contained in:
litetex 2021-12-29 18:49:37 +01:00
parent bebd2b449c
commit c5a06243a6

View File

@ -40,13 +40,13 @@ public class DebugSettingsFragment extends BasePreferenceFragment {
assert showErrorSnackbarPreference != null;
assert createErrorNotificationPreference != null;
final Optional<DebugSettingsBVLeakCanaryAPI> optPDLeakCanary = getBVLeakCanary();
final Optional<DebugSettingsBVLeakCanaryAPI> 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());