Fix memory leak in create payment fragment.

This commit is contained in:
Varsha 2022-11-14 13:55:05 -08:00 committed by Alex Hart
parent b47e5f2fa9
commit b0c68b12ed

View file

@ -1,6 +1,5 @@
package org.thoughtcrime.securesms.payments.create;
import android.app.AlertDialog;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.text.TextUtils;
@ -158,6 +157,20 @@ public class CreatePaymentFragment extends LoggingFragment {
});
}
@Override
public void onDestroyView() {
super.onDestroyView();
constraintLayout = null;
addNote = null;
balance = null;
amount = null;
exchange = null;
request = null;
toggle = null;
note = null;
pay = null;
}
private void goBack(View v) {
if (!Navigation.findNavController(v).popBackStack()) {
requireActivity().finish();