Skip to content

Commit

Permalink
removed the ability to select location
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeMC2610 committed Dec 12, 2023
1 parent 66be463 commit 981a0bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import com.georgemc2610.benzinapp.databinding.FragmentHomeBinding;
import com.github.mikephil.charting.charts.LineChart;
import com.github.mikephil.charting.components.AxisBase;
import com.github.mikephil.charting.components.Description;
import com.github.mikephil.charting.components.XAxis;
import com.github.mikephil.charting.components.YAxis;
import com.github.mikephil.charting.components.YAxis.AxisDependency;
Expand Down Expand Up @@ -206,7 +207,6 @@ public String getFormattedValue(float value)
// and set the different colours
lineChart.setData(lineData);


// calculate averages and display them
float AvgLtPer100Km = 100 * literSum / kilometerSum;
float AvgKmPerLt = kilometerSum / literSum;
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/layout/activity_add_service.xml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:text="@string/text_view_select_location"
android:text="@string/not_yet_supported"
android:textSize="24sp"
android:textStyle="bold" />

Expand All @@ -134,6 +134,7 @@
android:layout_width="match_parent"
android:layout_height="56dp"
android:ems="10"
android:enabled="false"
android:hint="@string/button_select_location"
android:onClick="OnSelectLocationClicked"
app:icon="@android:drawable/ic_dialog_map" />
Expand Down

0 comments on commit 981a0bf

Please sign in to comment.