Skip to content

Commit

Permalink
Fix build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
d4rken committed Oct 26, 2024
1 parent edfc9df commit c5ba0ba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ class AlertActionDialog : BottomSheetDialogFragment2() {
}

override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
ui.primaryEditAction.setOnClickListener {

}
ui.noteInput.addTextChangedListener {
vm.updateNote(it.toString())
}
Expand Down
18 changes: 3 additions & 15 deletions app/src/main/res/layout/alerts_action_dialog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
android:singleLine="true"
android:textIsSelectable="true"
app:layout_constraintBottom_toTopOf="@id/secondary"
app:layout_constraintEnd_toStartOf="@id/primary_edit_action"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/icon"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_chainStyle="packed"
Expand All @@ -53,24 +53,12 @@
android:ellipsize="end"
android:singleLine="true"
android:textIsSelectable="true"
app:layout_constraintBottom_toTopOf="@id/tertiary"
app:layout_constraintEnd_toStartOf="@id/primary_edit_action"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@id/primary"
app:layout_constraintTop_toBottomOf="@id/primary"
tools:text="@string/alerts_item_hexcode_subtitle" />


<com.google.android.material.button.MaterialButton
android:id="@+id/primary_edit_action"
style="@style/Widget.Material3.Button.IconButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:visibility="gone"
app:icon="@drawable/ic_pencil_24"
app:layout_constraintBottom_toBottomOf="@id/tertiary"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@id/primary" />

</androidx.constraintlayout.widget.ConstraintLayout>

<View
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
<string name="alerts_list_addnew_msg">Create your first aircraft alert now!</string>
<string name="alerts_add_alert_type_label_hexcode">Aircraft (hex code) </string>
<string name="alerts_add_alert_type_label_squawk">Transponder code (SQUAWK)</string>
<string name="alerts_add_alert_type_label_callsign">Callsign / Flight</string>
<string name="alerts_add_alert_type_label_callsign">Flight (callsign)</string>
<string name="alerts_add_hexcode_title">New hexcode alert</string>
<string name="alerts_add_hexcode_msg">Enter the hexcode of the aircraft you want alerts for.</string>
<string name="alerts_add_squawk_title">New squawk alert</string>
Expand Down

0 comments on commit c5ba0ba

Please sign in to comment.