From 0031be51fb2efcd67ea153f9de44b44cb7afa299 Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 27 Apr 2018 09:46:54 +0200 Subject: [PATCH] show a toast if the user tries toggling Favorite at the View screen --- .../contacts/activities/ViewContactActivity.kt | 3 +++ app/src/main/res/values-de/strings.xml | 1 + app/src/main/res/values-el/strings.xml | 1 + app/src/main/res/values-fr/strings.xml | 1 + app/src/main/res/values-hr/strings.xml | 1 + app/src/main/res/values-ko-rKR/strings.xml | 1 + app/src/main/res/values-lt/strings.xml | 1 + app/src/main/res/values-pt/strings.xml | 1 + app/src/main/res/values-ru/strings.xml | 1 + app/src/main/res/values-sk/strings.xml | 1 + app/src/main/res/values-sv/strings.xml | 1 + app/src/main/res/values-zh-rTW/strings.xml | 1 + app/src/main/res/values/strings.xml | 1 + 13 files changed, 15 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/activities/ViewContactActivity.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/activities/ViewContactActivity.kt index 09ec8269..80e754d8 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/activities/ViewContactActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/activities/ViewContactActivity.kt @@ -157,6 +157,9 @@ class ViewContactActivity : ContactActivity() { setImageDrawable(getStarDrawable(contact!!.starred == 1)) tag = contact!!.starred applyColorFilter(config.textColor) + setOnClickListener { + toast(R.string.must_be_at_edit) + } } } diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index c2eef0e6..ad6daa49 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -73,6 +73,7 @@ Favoriten hinzufügen Zu Favoriten hinzufügen Aus Favoriten entfernen + You must be at the Edit screen to modify a contact Kontakte durchsuchen diff --git a/app/src/main/res/values-el/strings.xml b/app/src/main/res/values-el/strings.xml index 99c4cf4f..fc2e9af5 100644 --- a/app/src/main/res/values-el/strings.xml +++ b/app/src/main/res/values-el/strings.xml @@ -73,6 +73,7 @@ Προσθήκη αγαπημένων Προσθήκη στα αγαπημένα Αφαίρεση από τα αγαπημένα + You must be at the Edit screen to modify a contact Αναζήτηση επαφών diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index 9d9b2f00..89a0769e 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -73,6 +73,7 @@ Ajouter des favoris Ajouter aux favoris Retirer des favoris + You must be at the Edit screen to modify a contact Rechercher des contacts diff --git a/app/src/main/res/values-hr/strings.xml b/app/src/main/res/values-hr/strings.xml index 7b60b843..446dd86b 100644 --- a/app/src/main/res/values-hr/strings.xml +++ b/app/src/main/res/values-hr/strings.xml @@ -73,6 +73,7 @@ Dodaj favorite Dodaj u favorite Ukloni iz favorita + You must be at the Edit screen to modify a contact Pretraži kontakte diff --git a/app/src/main/res/values-ko-rKR/strings.xml b/app/src/main/res/values-ko-rKR/strings.xml index 9757f1f2..a1f591d6 100644 --- a/app/src/main/res/values-ko-rKR/strings.xml +++ b/app/src/main/res/values-ko-rKR/strings.xml @@ -73,6 +73,7 @@ 자주쓰는 연락처 등록 자주쓰는 연락처에 추가 자주쓰는 연락처에서 제거 + You must be at the Edit screen to modify a contact 연락처 검색 diff --git a/app/src/main/res/values-lt/strings.xml b/app/src/main/res/values-lt/strings.xml index 62792dd9..c6c2d496 100644 --- a/app/src/main/res/values-lt/strings.xml +++ b/app/src/main/res/values-lt/strings.xml @@ -73,6 +73,7 @@ Pridėti mėgiamiausiuosius Pridėti į mėgiamiausiuosius Pašalinti iš mėgiamiausiųjų + You must be at the Edit screen to modify a contact Ieškoti kontaktų diff --git a/app/src/main/res/values-pt/strings.xml b/app/src/main/res/values-pt/strings.xml index 14f1913b..3fcc26e8 100644 --- a/app/src/main/res/values-pt/strings.xml +++ b/app/src/main/res/values-pt/strings.xml @@ -73,6 +73,7 @@ Adicionar favoritos Adicionar aos favoritos Remover dos favoritos + You must be at the Edit screen to modify a contact Pesquisar contactos diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index c84c275a..1a29ddf2 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -73,6 +73,7 @@ Добавить избранные Добавить в избранные Удалить из избранных + You must be at the Edit screen to modify a contact Поиск контактов diff --git a/app/src/main/res/values-sk/strings.xml b/app/src/main/res/values-sk/strings.xml index 1595f0bd..a16d32fb 100644 --- a/app/src/main/res/values-sk/strings.xml +++ b/app/src/main/res/values-sk/strings.xml @@ -73,6 +73,7 @@ Pridať obľúbené Pridať medzi obľúbené Odstrániť z obľúbených + Pre úpravu kontaktu musíte byť v Editore kontaktu Hľadať v kontaktoch diff --git a/app/src/main/res/values-sv/strings.xml b/app/src/main/res/values-sv/strings.xml index a6ea7e46..c6f7c6d3 100644 --- a/app/src/main/res/values-sv/strings.xml +++ b/app/src/main/res/values-sv/strings.xml @@ -73,6 +73,7 @@ Lägg till favoriter Lägg till i favoriter Ta bort från favoriter + You must be at the Edit screen to modify a contact Sök efter kontakter diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml index bee24b25..22d3d9d1 100644 --- a/app/src/main/res/values-zh-rTW/strings.xml +++ b/app/src/main/res/values-zh-rTW/strings.xml @@ -73,6 +73,7 @@ 添加我的最愛 加入我的最愛 從我的最愛移除 + You must be at the Edit screen to modify a contact 搜尋聯絡人 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index ef8ecf66..a5b8c8ae 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -73,6 +73,7 @@ Add favorites Add to favorites Remove from favorites + You must be at the Edit screen to modify a contact Search contacts