mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-23 22:19:13 +00:00
Fixes grade build error for tracking app
This commit is contained in:
+7
-7
@@ -115,10 +115,10 @@ public class TrackingFragment extends BaseFragment {
|
||||
|
||||
if (quality == GPSQuality.noSignal) {
|
||||
textView.setText(getString(R.string.tracking_status_no_gps_signal));
|
||||
textView.setTextColor(Color.parseColor(getString(R.color.sap_red)));
|
||||
textView.setTextColor(getResources().getColor(R.color.sap_red));
|
||||
} else {
|
||||
textView.setText(getString(R.string.tracking_status_tracking));
|
||||
textView.setTextColor(Color.parseColor(getString(R.color.sap_green)));
|
||||
textView.setTextColor(getResources().getColor(R.color.sap_green));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -138,21 +138,21 @@ public class TrackingFragment extends BaseFragment {
|
||||
if (apiConnectivity == APIConnectivity.transmissionSuccess) {
|
||||
if (prefs.getEnergySavingEnabledByUser()) {
|
||||
textView.setText(getString(R.string.tracking_mode_battery_saving));
|
||||
textView.setTextColor(Color.parseColor(getString(R.color.sap_yellow)));
|
||||
textView.setTextColor(getResources().getColor(R.color.sap_yellow));
|
||||
} else {
|
||||
textView.setText(getString(R.string.tracking_mode_live));
|
||||
textView.setTextColor(Color.parseColor(getString(R.color.sap_green)));
|
||||
textView.setTextColor(getResources().getColor(R.color.sap_green));
|
||||
}
|
||||
|
||||
} else if (apiConnectivity == APIConnectivity.noAttempt) {
|
||||
textView.setText(getString(R.string.tracking_mode_offline));
|
||||
textView.setTextColor(Color.parseColor(getString(R.color.sap_green)));
|
||||
textView.setTextColor(getResources().getColor(R.color.sap_green));
|
||||
} else if (apiConnectivity == APIConnectivity.transmissionError) {
|
||||
textView.setText(getString(R.string.tracking_mode_api_error));
|
||||
textView.setTextColor(Color.parseColor(getString(R.color.sap_red)));
|
||||
textView.setTextColor(getResources().getColor(R.color.sap_red));
|
||||
} else {
|
||||
textView.setText(getString(R.string.tracking_mode_caching));
|
||||
textView.setTextColor(Color.parseColor(getString(R.color.sap_green)));
|
||||
textView.setTextColor(getResources().getColor(R.color.sap_green));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user