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

Commit 5fa5c737 authored by Julia Reynolds's avatar Julia Reynolds
Browse files

Fix NPE when launching feedback from guts

The 'guts' doesn't exist at bind time, but it does at
click time

Test: manual
Fixes: 434604284
Flag: com.android.systemui.notification_bundle_ui
Change-Id: Id7f16de7df670a89c565b78890efbc4b0eb6589f
parent 4b03c792
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -806,17 +806,14 @@ public class NotificationMenuRow implements NotificationMenuRowPlugin, View.OnCl
     */
    @VisibleForTesting
    void initializeBundleHeaderGutsContent(BundleHeaderGutsContent gutsContent) {

        NotificationGuts guts = mParent.getGuts();

        Function0<Unit> onSettingsClicked = () -> {
            guts.resetFalsingCheck();
            mParent.getGuts().resetFalsingCheck();
            startBundleSettingsActivity(0, mParent);
            return Unit.INSTANCE;
        };

        Function0<Unit> onDismissBundle = () -> {
            guts.resetFalsingCheck();
            mParent.getGuts().resetFalsingCheck();
            mParent.getDismissButtonOnClickListener().onClick(gutsContent.getContentView());
            return Unit.INSTANCE;
        };