From 3c62fbf94b52dcd7306a292a1065dfc2c26526b3 Mon Sep 17 00:00:00 2001 From: Neel Doshi Date: Tue, 11 Jun 2024 11:49:54 +0530 Subject: [PATCH] Update PostSettingsInputDialogFragment.java --- .../android/ui/posts/PostSettingsInputDialogFragment.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/WordPress/src/main/java/org/wordpress/android/ui/posts/PostSettingsInputDialogFragment.java b/WordPress/src/main/java/org/wordpress/android/ui/posts/PostSettingsInputDialogFragment.java index ee287072e4a2..ad082d278e91 100644 --- a/WordPress/src/main/java/org/wordpress/android/ui/posts/PostSettingsInputDialogFragment.java +++ b/WordPress/src/main/java/org/wordpress/android/ui/posts/PostSettingsInputDialogFragment.java @@ -152,4 +152,10 @@ public void afterTextChanged(Editable editable) { mDialog.getButton(Dialog.BUTTON_POSITIVE).setEnabled(!disabled); } } + + @Override + public void onDestroy() { + super.onDestroy(); + mBinding = null; // ensures binding reference gets null on fragment destroy + } }