forked from upstream-mirrors/OpenTracks
@@ -390,6 +390,10 @@ public class TrackRecordingActivity extends AbstractActivity implements ChooseAc
|
||||
return;
|
||||
}
|
||||
|
||||
if (!PreferencesUtils.shouldShowGpsDisabledWarning()) {
|
||||
return;
|
||||
}
|
||||
|
||||
snackbar = Snackbar
|
||||
.make(viewBinding.trackRecordingCoordinatorLayout,
|
||||
getString(R.string.gps_recording_status, getString(gpsStatusValue.message), getString(R.string.gps_recording_without_signal)),
|
||||
|
||||
@@ -318,6 +318,11 @@ public class PreferencesUtils {
|
||||
return getBoolean(R.string.stats_fullscreen_while_recording_key, DEFAULT);
|
||||
}
|
||||
|
||||
public static boolean shouldShowGpsDisabledWarning() {
|
||||
final boolean DEFAULT = resources.getBoolean(R.bool.stats_show_gps_disabled_warnings_default);
|
||||
return getBoolean(R.string.stats_show_gps_disabled_warnings_key, DEFAULT);
|
||||
}
|
||||
|
||||
public static boolean shouldShowElevation() {
|
||||
final boolean DEFAULT = resources.getBoolean(R.bool.chart_display_elevation_default);
|
||||
return getBoolean(R.string.chart_display_elevation_key, DEFAULT);
|
||||
|
||||
Reference in New Issue
Block a user