Skip to content

Commit

Permalink
Track edit and Marker edit do not need bottom bar.
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisguse committed Sep 7, 2024
1 parent ac1296e commit 26e1607
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 15 deletions.
2 changes: 0 additions & 2 deletions src/main/java/de/dennisguse/opentracks/TrackEditActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,6 @@ protected void onCreate(Bundle bundle) {

viewBinding.trackEditCancel.setOnClickListener(v -> finish());
viewBinding.trackEditCancel.setVisibility(View.VISIBLE);

setSupportActionBar(viewBinding.bottomAppBarLayout.bottomAppBar);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,6 @@ protected void onCreate(Bundle savedInstanceState) {
} else {
loadMarkerData(markerId);
}

setSupportActionBar(viewBinding.bottomAppBarLayout.bottomAppBar);
}

private LiveData<Marker> createNewMarker() {
Expand Down
5 changes: 0 additions & 5 deletions src/main/res/layout/marker_edit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ limitations under the License.
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:layout_marginBottom="@dimen/m3_bottom_nav_min_height"
app:layout_behavior="@string/appbar_scrolling_view_behavior">

<ScrollView style="@style/ScrollView.WithBottomButtons">
Expand Down Expand Up @@ -151,8 +150,4 @@ limitations under the License.
</LinearLayout>
</LinearLayout>

<include
android:id="@+id/bottom_app_bar_layout"
layout="@layout/bottomappbar" />

</androidx.coordinatorlayout.widget.CoordinatorLayout>
7 changes: 1 addition & 6 deletions src/main/res/layout/track_edit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ limitations under the License.
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingBottom="@dimen/m3_bottom_nav_min_height">
android:orientation="vertical">

<include
android:id="@+id/fields"
Expand All @@ -46,8 +45,4 @@ limitations under the License.

</LinearLayout>

<include
android:id="@+id/bottom_app_bar_layout"
layout="@layout/bottomappbar" />

</androidx.coordinatorlayout.widget.CoordinatorLayout>

0 comments on commit 26e1607

Please sign in to comment.