Skip to content

Commit b64ee91

Browse files
committed
add cancel button to log dialog
1 parent 780ff1f commit b64ee91

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

app/src/main/java/org/blitzortung/android/dialogs/LogDialog.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ class LogDialog(
6464
with(findViewById<Button>(R.id.log_send_email)) {
6565
setOnClickListener { composeEmail(logText) }
6666
}
67+
68+
with(findViewById<Button>(R.id.log_cancel)) {
69+
setOnClickListener { dismiss() }
70+
}
6771
}
6872

6973
private fun getCacheString(): String {

app/src/main/res/layout/log_dialog.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,10 @@
4848
android:layout_height="wrap_content"
4949
android:text="@string/share_log" />
5050

51-
</LinearLayout>
51+
<Button
52+
android:id="@+id/log_cancel"
53+
android:layout_width="match_parent"
54+
android:layout_height="wrap_content"
55+
android:text="@string/cancel" />
56+
57+
</LinearLayout>

0 commit comments

Comments
 (0)