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

Commit c756c6c1 authored by Josh Tsuji's avatar Josh Tsuji Committed by Android (Google) Code Review
Browse files

Merge "Make FlingInfos unique." into main

parents e5e275f2 5a881069
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -16,11 +16,16 @@

package com.android.systemui.shade.data.repository

import java.util.UUID

/**
 * Information about a fling on the shade: whether we're flinging expanded or collapsed, and the
 * velocity of the touch gesture that started the fling (if applicable).
 */
data class FlingInfo(
data class FlingInfo @JvmOverloads constructor(
    val expand: Boolean,
    val velocity: Float = 0f,

    /** Required to emit duplicate FlingInfo from StateFlow. */
    val id: UUID = UUID.randomUUID()
)