mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-23 12:38:33 +00:00
Fix memory leak in create payment fragment.
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
package org.thoughtcrime.securesms.payments.create;
|
package org.thoughtcrime.securesms.payments.create;
|
||||||
|
|
||||||
import android.app.AlertDialog;
|
|
||||||
import android.graphics.drawable.Drawable;
|
import android.graphics.drawable.Drawable;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.text.TextUtils;
|
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) {
|
private void goBack(View v) {
|
||||||
if (!Navigation.findNavController(v).popBackStack()) {
|
if (!Navigation.findNavController(v).popBackStack()) {
|
||||||
requireActivity().finish();
|
requireActivity().finish();
|
||||||
|
|||||||
Reference in New Issue
Block a user