YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.util.LogRefreshGate Class Reference

When the log viewer may change its text. More...

Collaboration diagram for de.yaacc.util.LogRefreshGate:
Collaboration graph

Static Public Member Functions

static boolean mayChangeText (long nowMillis, long lastInteractionMillis)
 

Static Public Attributes

static final long IDLE_MILLIS = 1500L
 How long after the last touch or scroll the view counts as at rest.
 

Detailed Description

When the log viewer may change its text.

Reading the log while the user touches or flings the view feeds itself: the scrolling makes the system write lines about the app's own scroll handling, those lines change the text, and the view jumped while the finger was still on it. The text is therefore only changed when the user has not touched or scrolled the view for a moment.

Member Function Documentation

◆ mayChangeText()

static boolean de.yaacc.util.LogRefreshGate.mayChangeText ( long nowMillis,
long lastInteractionMillis )
static
Parameters
nowMillisthe current time (a monotonic clock)
lastInteractionMilliswhen the user last touched or scrolled the view, or a negative value if never

The documentation for this class was generated from the following file: