change the menu button text at the dialpad

This commit is contained in:
tibbi 2018-09-27 13:55:00 +02:00
parent 7f688d02f0
commit 26061d8827
17 changed files with 19 additions and 19 deletions

View File

@ -60,13 +60,13 @@ class DialpadActivity : SimpleActivity() {
override fun onOptionsItemSelected(item: MenuItem): Boolean {
when (item.itemId) {
R.id.create_new_contact -> createNewContact()
R.id.add_number_to_contact -> addNumberToContact()
else -> return super.onOptionsItemSelected(item)
}
return true
}
private fun createNewContact() {
private fun addNumberToContact() {
Intent().apply {
action = Intent.ACTION_INSERT_OR_EDIT
type = "vnd.android.cursor.item/contact"

View File

@ -2,8 +2,8 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/create_new_contact"
android:id="@+id/add_number_to_contact"
android:icon="@drawable/ic_plus"
android:title="@string/create_new_contact_from_number"
android:title="@string/add_number_to_contact"
app:showAsAction="ifRoom"/>
</menu>

View File

@ -99,7 +99,7 @@
<!-- Dialpad -->
<string name="dialpad">Dialpad</string>
<string name="create_new_contact_from_number">Create new contact from number</string>
<string name="add_number_to_contact">Add number to contact</string>
<!-- Visible fields -->
<string name="select_fields_to_show">Göstərmək üçün sahəni seç</string>

View File

@ -99,7 +99,7 @@
<!-- Dialpad -->
<string name="dialpad">Dialpad</string>
<string name="create_new_contact_from_number">Create new contact from number</string>
<string name="add_number_to_contact">Add number to contact</string>
<!-- Visible fields -->
<string name="select_fields_to_show">Sichtbare Felder auswählen</string>

View File

@ -99,7 +99,7 @@
<!-- Dialpad -->
<string name="dialpad">Dialpad</string>
<string name="create_new_contact_from_number">Create new contact from number</string>
<string name="add_number_to_contact">Add number to contact</string>
<!-- Visible fields -->
<string name="select_fields_to_show">Επιλογή εμφάνισης πεδίων</string>

View File

@ -99,7 +99,7 @@
<!-- Dialpad -->
<string name="dialpad">Dialpad</string>
<string name="create_new_contact_from_number">Create new contact from number</string>
<string name="add_number_to_contact">Add number to contact</string>
<!-- Visible fields -->
<string name="select_fields_to_show">Sélectionner les champs à afficher</string>

View File

@ -99,7 +99,7 @@
<!-- Dialpad -->
<string name="dialpad">Dialpad</string>
<string name="create_new_contact_from_number">Create new contact from number</string>
<string name="add_number_to_contact">Add number to contact</string>
<!-- Visible fields -->
<string name="select_fields_to_show">Odaberi polja za prikaz</string>

View File

@ -99,7 +99,7 @@
<!-- Dialpad -->
<string name="dialpad">ダイヤルパッド</string>
<string name="create_new_contact_from_number">番号から新しい連絡先を作成</string>
<string name="add_number_to_contact">Add number to contact</string>
<!-- Visible fields -->
<string name="select_fields_to_show">表示する項目を選択</string>

View File

@ -99,7 +99,7 @@
<!-- Dialpad -->
<string name="dialpad">Dialpad</string>
<string name="create_new_contact_from_number">Create new contact from number</string>
<string name="add_number_to_contact">Add number to contact</string>
<!-- Visible fields -->
<string name="select_fields_to_show">Select fields to show</string>

View File

@ -99,7 +99,7 @@
<!-- Dialpad -->
<string name="dialpad">Dialpad</string>
<string name="create_new_contact_from_number">Create new contact from number</string>
<string name="add_number_to_contact">Add number to contact</string>
<!-- Visible fields -->
<string name="select_fields_to_show">Pasirinkti rodomus laukelius</string>

View File

@ -99,7 +99,7 @@
<!-- Dialpad -->
<string name="dialpad">Dialpad</string>
<string name="create_new_contact_from_number">Create new contact from number</string>
<string name="add_number_to_contact">Add number to contact</string>
<!-- Visible fields -->
<string name="select_fields_to_show">Selecione os campos a mostrar</string>

View File

@ -99,7 +99,7 @@
<!-- Dialpad -->
<string name="dialpad">Dialpad</string>
<string name="create_new_contact_from_number">Create new contact from number</string>
<string name="add_number_to_contact">Add number to contact</string>
<!-- Visible fields -->
<string name="select_fields_to_show">Выберите отображаемые поля</string>

View File

@ -99,7 +99,7 @@
<!-- Dialpad -->
<string name="dialpad">Číselník</string>
<string name="create_new_contact_from_number">Vytvoriť nový kontakt z čísla</string>
<string name="add_number_to_contact">Pridať číslo kontaktu</string>
<!-- Visible fields -->
<string name="select_fields_to_show">Zvoľte polia na zobrazenie</string>

View File

@ -99,7 +99,7 @@
<!-- Dialpad -->
<string name="dialpad">Dialpad</string>
<string name="create_new_contact_from_number">Create new contact from number</string>
<string name="add_number_to_contact">Add number to contact</string>
<!-- Visible fields -->
<string name="select_fields_to_show">Välj vilka fält som ska visas</string>

View File

@ -99,7 +99,7 @@
<!-- Dialpad -->
<string name="dialpad">Dialpad</string>
<string name="create_new_contact_from_number">Create new contact from number</string>
<string name="add_number_to_contact">Add number to contact</string>
<!-- Visible fields -->
<string name="select_fields_to_show">Görüntülenecek alanları seç</string>

View File

@ -99,7 +99,7 @@
<!-- Dialpad -->
<string name="dialpad">Dialpad</string>
<string name="create_new_contact_from_number">Create new contact from number</string>
<string name="add_number_to_contact">Add number to contact</string>
<!-- Visible fields -->
<string name="select_fields_to_show">選擇要顯示的欄位</string>

View File

@ -99,7 +99,7 @@
<!-- Dialpad -->
<string name="dialpad">Dialpad</string>
<string name="create_new_contact_from_number">Create new contact from number</string>
<string name="add_number_to_contact">Add number to contact</string>
<!-- Visible fields -->
<string name="select_fields_to_show">Select fields to show</string>