YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.browser.BrowserLayoutSwitch Class Reference

The resume-time decision shared by both browser activities: relaunch into the other layout when the effective layout differs from the one this activity renders. More...

Collaboration diagram for de.yaacc.browser.BrowserLayoutSwitch:
Collaboration graph

Static Public Member Functions

static boolean shouldRelaunch (Layout own, Layout effective)
 

Detailed Description

The resume-time decision shared by both browser activities: relaunch into the other layout when the effective layout differs from the one this activity renders.

The caller combines it with RelaunchGuard#tryRelaunch() so a wrong decision cannot loop. Plain Java.

Member Function Documentation

◆ shouldRelaunch()

static boolean de.yaacc.browser.BrowserLayoutSwitch.shouldRelaunch ( Layout own,
Layout effective )
static
Parameters
ownthe layout the calling activity renders
effectivethe layout BrowserLauncher#effectiveLayout reports now
Returns
true if the calling activity should start BrowserLauncher#targetClass and finish

Referenced by de.yaacc.browser.BrowserLauncher.relaunchIfOtherLayout().

Here is the caller graph for this function:

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