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

Commit 741f7ace authored by burakov's avatar burakov Committed by Danny Burakov
Browse files

[flexiglass] Replace the assigned bugs on `emergencyCallButtonModel`.

Bug: 369767936
Bug: 298026988
Flag: com.android.systemui.scene_container
Test: N/A, this is a comment change.
Change-Id: I6a7e4a0f7c9c45a01b8d1de06396729fe3516bee
parent 7bd42135
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -103,7 +103,7 @@ constructor(
                prepareToPerformAction()
                returnToCall()
            },
            onLongClick = null
            onLongClick = null,
        )
    }

@@ -115,15 +115,15 @@ constructor(
                dozeLogger.logEmergencyCall()
                startEmergencyDialerActivity()
            },
            // TODO(b/308001302): The long click detector doesn't work properly, investigate.
            // TODO(b/369767936): The long click detector doesn't work properly, investigate.
            onLongClick = {
                if (emergencyAffordanceManager.needsEmergencyAffordance()) {
                    prepareToPerformAction()

                    // TODO(b/298026988): Check that !longPressWasDragged before invoking.
                    // TODO(b/369767936): Check that !longPressWasDragged before invoking.
                    emergencyAffordanceManager.performEmergencyCall()
                }
            }
            },
        )
    }

@@ -143,7 +143,7 @@ constructor(
            applicationContext.startActivityAsUser(
                this,
                ActivityOptions.makeCustomAnimation(applicationContext, 0, 0).toBundle(),
                UserHandle(selectedUserInteractor.getSelectedUserId())
                UserHandle(selectedUserInteractor.getSelectedUserId()),
            )
        }
    }