forked from upstream-mirrors/OpenTracks
Cleanup.
This commit is contained in:
@@ -905,7 +905,7 @@ public class ChartView extends View {
|
|||||||
for (ChartValueSeries chartValueSeries : seriesList) {
|
for (ChartValueSeries chartValueSeries : seriesList) {
|
||||||
chartValueSeries.updateDimension();
|
chartValueSeries.updateDimension();
|
||||||
}
|
}
|
||||||
float density = getContext().getResources().getDisplayMetrics().density;
|
float density = getResources().getDisplayMetrics().density;
|
||||||
spacer = (int) (density * SPACER);
|
spacer = (int) (density * SPACER);
|
||||||
yAxisOffset = (int) (density * Y_AXIS_OFFSET);
|
yAxisOffset = (int) (density * Y_AXIS_OFFSET);
|
||||||
|
|
||||||
|
|||||||
@@ -201,7 +201,7 @@ public class StatisticsRecordingFragment extends Fragment implements TrackDataLi
|
|||||||
public void onActivityCreated(Bundle savedInstanceState) {
|
public void onActivityCreated(Bundle savedInstanceState) {
|
||||||
super.onActivityCreated(savedInstanceState);
|
super.onActivityCreated(savedInstanceState);
|
||||||
|
|
||||||
recordingGpsAccuracy = Integer.parseInt(getContext().getResources().getString(R.string.recording_gps_accuracy_default));
|
recordingGpsAccuracy = Integer.parseInt(getResources().getString(R.string.recording_gps_accuracy_default));
|
||||||
|
|
||||||
handlerUpdateUI = new Handler();
|
handlerUpdateUI = new Handler();
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ public class AnnouncementUtils {
|
|||||||
|
|
||||||
String rate;
|
String rate;
|
||||||
String currentRate;
|
String currentRate;
|
||||||
String currentRateMsg = "";
|
String currentRateMsg;
|
||||||
if (reportSpeed) {
|
if (reportSpeed) {
|
||||||
int speedId = metricUnits ? R.plurals.voiceSpeedKilometersPerHour : R.plurals.voiceSpeedMilesPerHour;
|
int speedId = metricUnits ? R.plurals.voiceSpeedKilometersPerHour : R.plurals.voiceSpeedMilesPerHour;
|
||||||
rate = context.getResources().getQuantityString(speedId, getQuantityCount(distancePerTime), distancePerTime);
|
rate = context.getResources().getQuantityString(speedId, getQuantityCount(distancePerTime), distancePerTime);
|
||||||
|
|||||||
@@ -2,38 +2,31 @@
|
|||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical">
|
android:layout_marginBottom="8dp"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<LinearLayout
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:id="@+id/interval_item_distance"
|
||||||
|
style="@style/TextMedium"
|
||||||
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal"
|
android:layout_weight="1"
|
||||||
android:layout_marginBottom="8dp">
|
tools:text="1 km" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/interval_item_distance"
|
android:id="@+id/interval_item_speed"
|
||||||
android:layout_width="0dp"
|
style="@style/TextMedium"
|
||||||
android:layout_height="wrap_content"
|
android:layout_width="0dp"
|
||||||
android:layout_weight="1"
|
android:layout_height="wrap_content"
|
||||||
style="@style/TextMedium"
|
android:layout_weight="1"
|
||||||
tools:text="1 km" />
|
tools:text="15 km/h" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/interval_item_speed"
|
android:id="@+id/interval_item_pace"
|
||||||
android:layout_width="0dp"
|
style="@style/TextMedium"
|
||||||
android:layout_height="wrap_content"
|
android:layout_width="0dp"
|
||||||
android:layout_weight="1"
|
android:layout_height="wrap_content"
|
||||||
style="@style/TextMedium"
|
android:layout_weight="1"
|
||||||
tools:text="15 km/h" />
|
tools:text="4:00" />
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/interval_item_pace"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_weight="1"
|
|
||||||
style="@style/TextMedium"
|
|
||||||
tools:text="4:00" />
|
|
||||||
|
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?><!--
|
|
||||||
Copyright 2013 Google Inc.
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
-->
|
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
style="@style/StatsLargeItemContainer">
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/stats_activity_type_label"
|
|
||||||
style="@style/StatsLargeLabel"
|
|
||||||
android:text="@string/track_edit_activity_type_hint" />
|
|
||||||
|
|
||||||
<Spinner
|
|
||||||
android:id="@+id/stats_activity_type_icon"
|
|
||||||
style="@style/StatsLargeValue"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content" />
|
|
||||||
</LinearLayout>
|
|
||||||
Reference in New Issue
Block a user