mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-27 22:37:15 +00:00
Mobile media page integration which can be enabled/disabled via
experimental feature flag
This commit is contained in:
1 parent
9c9ae35e39
commit
fc4d26a197
4 files changed
+25
-2
No files matched your search
+8
-1
@@ -5,8 +5,10 @@ import com.sap.sailing.gwt.home.client.place.event.AbstractEventPlace;
|
||||
import com.sap.sailing.gwt.home.client.place.event.EventContext;
|
||||
import com.sap.sailing.gwt.home.client.place.event.EventPrefixes;
|
||||
import com.sap.sailing.gwt.home.client.place.event.multiregatta.AbstractMultiregattaEventPlace;
|
||||
import com.sap.sailing.gwt.home.shared.ExperimentalFeatures;
|
||||
import com.sap.sailing.gwt.home.shared.app.MobileSupport;
|
||||
|
||||
public class MultiregattaMediaPlace extends AbstractMultiregattaEventPlace {
|
||||
public class MultiregattaMediaPlace extends AbstractMultiregattaEventPlace implements MobileSupport {
|
||||
public MultiregattaMediaPlace(String id) {
|
||||
super(id);
|
||||
}
|
||||
@@ -22,4 +24,9 @@ public class MultiregattaMediaPlace extends AbstractMultiregattaEventPlace {
|
||||
return new MultiregattaMediaPlace(context);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasMobileVersion() {
|
||||
return ExperimentalFeatures.SHOW_MEDIA_PAGE_ON_MOBILE;
|
||||
}
|
||||
}
|
||||
+8
-1
@@ -5,8 +5,10 @@ import com.sap.sailing.gwt.home.client.place.event.AbstractEventPlace;
|
||||
import com.sap.sailing.gwt.home.client.place.event.EventContext;
|
||||
import com.sap.sailing.gwt.home.client.place.event.EventPrefixes;
|
||||
import com.sap.sailing.gwt.home.client.place.event.regatta.AbstractEventRegattaPlace;
|
||||
import com.sap.sailing.gwt.home.shared.ExperimentalFeatures;
|
||||
import com.sap.sailing.gwt.home.shared.app.MobileSupport;
|
||||
|
||||
public class RegattaMediaPlace extends AbstractEventRegattaPlace {
|
||||
public class RegattaMediaPlace extends AbstractEventRegattaPlace implements MobileSupport {
|
||||
public RegattaMediaPlace(String id, String regattaId) {
|
||||
super(id, regattaId);
|
||||
}
|
||||
@@ -28,4 +30,9 @@ public class RegattaMediaPlace extends AbstractEventRegattaPlace {
|
||||
return new RegattaMediaPlace(context);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasMobileVersion() {
|
||||
return ExperimentalFeatures.SHOW_MEDIA_PAGE_ON_MOBILE;
|
||||
}
|
||||
}
|
||||
+5
@@ -7,11 +7,14 @@ import com.google.gwt.user.client.rpc.AsyncCallback;
|
||||
import com.sap.sailing.gwt.home.client.place.error.ErrorPlace;
|
||||
import com.sap.sailing.gwt.home.client.place.event.AbstractEventPlace;
|
||||
import com.sap.sailing.gwt.home.client.place.event.EventDefaultPlace;
|
||||
import com.sap.sailing.gwt.home.client.place.event.multiregatta.tabs.MultiregattaMediaPlace;
|
||||
import com.sap.sailing.gwt.home.client.place.event.regatta.tabs.RegattaMediaPlace;
|
||||
import com.sap.sailing.gwt.home.client.place.event.regatta.tabs.RegattaOverviewPlace;
|
||||
import com.sap.sailing.gwt.home.client.place.event.regatta.tabs.RegattaRacesPlace;
|
||||
import com.sap.sailing.gwt.home.mobile.app.MobileApplicationClientFactory;
|
||||
import com.sap.sailing.gwt.home.mobile.places.event.latestnews.LatestNewsActivity;
|
||||
import com.sap.sailing.gwt.home.mobile.places.event.latestnews.LatestNewsPlace;
|
||||
import com.sap.sailing.gwt.home.mobile.places.event.media.MediaActivity;
|
||||
import com.sap.sailing.gwt.home.mobile.places.event.minileaderboard.MiniLeaderboardActivity;
|
||||
import com.sap.sailing.gwt.home.mobile.places.event.minileaderboard.MiniLeaderboardPlace;
|
||||
import com.sap.sailing.gwt.home.mobile.places.event.overview.EventActivity;
|
||||
@@ -70,6 +73,8 @@ public class EventActivityProxy extends AbstractActivityProxy {
|
||||
super.onSuccess(new MiniLeaderboardActivity((MiniLeaderboardPlace) currentPlace, clientFactory));
|
||||
} else if (currentPlace instanceof LatestNewsPlace) {
|
||||
super.onSuccess(new LatestNewsActivity((LatestNewsPlace) currentPlace, clientFactory));
|
||||
} else if (currentPlace instanceof RegattaMediaPlace || currentPlace instanceof MultiregattaMediaPlace) {
|
||||
super.onSuccess(new MediaActivity(currentPlace, clientFactory));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
+4
@@ -34,6 +34,10 @@ public class ExperimentalFeatures {
|
||||
* Provide option to show the regattas live races for single regatta and series event on mobile devices
|
||||
*/
|
||||
public static final boolean SHOW_REGATTA_LIVE_RACES_ON_MOBILE = false;
|
||||
/**
|
||||
* Provide option to show the media page for mobile devices
|
||||
*/
|
||||
public static final boolean SHOW_MEDIA_PAGE_ON_MOBILE = false;
|
||||
/**
|
||||
* Provide button to show the competitor analytics in fullscreen view (work in progress)
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user