forked from upstream-mirrors/OpenTracks
Allow starting the Dashboard API automatically from the StartRecording API
Fixes #1116.
This commit is contained in:
committed by
Dennis Guse
parent
7ca6925e7d
commit
1e4e7b8c15
@@ -182,6 +182,10 @@ public class PreferencesUtils {
|
||||
return getBoolean(R.string.publicapi_enabled_key, resources.getBoolean(R.bool.publicapi_enabled_default));
|
||||
}
|
||||
|
||||
public static boolean isPublicAPIDashboardEnabled() {
|
||||
return getBoolean(R.string.publicapi_dashboard_enabled_key, resources.getBoolean(R.bool.publicapi_dashboard_enabled_default));
|
||||
}
|
||||
|
||||
public static boolean isMetricUnits() {
|
||||
final String STATS_UNIT = resources.getString(R.string.stats_units_default);
|
||||
return STATS_UNIT.equals(getString(R.string.stats_units_key, STATS_UNIT));
|
||||
|
||||
Reference in New Issue
Block a user