diff --git a/README.md b/README.md index 8f613b3..4cb30e3 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,2 @@ # Android Soundboard -# TODO -- add hint to use long click for settings -- handle new button properly - - do not create button before Done in dialog was clicked - - hide delete in create dialog -- release diff --git a/app/src/main/java/de/mlte/soundboard/EditActivity.kt b/app/src/main/java/de/mlte/soundboard/EditActivity.kt index bd80c8e..69b817b 100644 --- a/app/src/main/java/de/mlte/soundboard/EditActivity.kt +++ b/app/src/main/java/de/mlte/soundboard/EditActivity.kt @@ -53,6 +53,13 @@ class EditActivity : AppCompatActivity() { startActivityForResult(intent, 123) } + + val hintTextView = findViewById(R.id.hintTextView) + if (isCreate()) { + hintTextView.text = "Touch and hold on the newly created sound button to edit any of these settings later." + } else { + hintTextView.text = "Use the menu if you want to delete this sound button." + } } private fun isCreate() = intent.getIntExtra("index", -1) < 0 diff --git a/app/src/main/res/layout/activity_edit.xml b/app/src/main/res/layout/activity_edit.xml index 97e8507..3c38a26 100644 --- a/app/src/main/res/layout/activity_edit.xml +++ b/app/src/main/res/layout/activity_edit.xml @@ -51,4 +51,13 @@ android:layout_marginLeft="16dp" android:layout_toLeftOf="@id/selectButton"/> + +