Fix memory leak in create payment fragment.
This commit is contained in:
parent
b47e5f2fa9
commit
b0c68b12ed
1 changed files with 14 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue