change the menu button text at the dialpad
This commit is contained in:
parent
7f688d02f0
commit
26061d8827
|
@ -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"
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue