Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ee922128 authored by Kevin Chyn's avatar Kevin Chyn
Browse files

Check for null before invoking finish()

Fixes: 124406109

Test: manual
Change-Id: Idee87c060ffd84395355ccdc5248166f1a6aeaf0
parent cd15971f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -58,7 +58,9 @@ public class FaceSettings extends DashboardFragment {
    private FaceSettingsAttentionPreferenceController mAttentionController;

    private final FaceSettingsRemoveButtonPreferenceController.Listener mRemovalListener = () -> {
        if (getActivity() != null) {
            getActivity().finish();
        }
    };

    public static boolean isAvailable(Context context) {