Skip to content

Commit

Permalink
Fixed variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
litetex committed Jan 24, 2022
1 parent bebd2b4 commit c5a0624
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ public void onCreatePreferences(final Bundle savedInstanceState, final String ro
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());
Expand Down

0 comments on commit c5a0624

Please sign in to comment.