Fixed accessing phone contacts

This commit is contained in:
Agnieszka C 2021-12-07 18:15:19 +01:00
parent b5ded3df18
commit 19e964d3a2
35 changed files with 51 additions and 13 deletions

View File

@ -807,6 +807,10 @@ class ContactsHelper(val context: Context) {
}
sources.addAll(contentResolverAccounts)
if (!sources.any { it.type.startsWith("com.google") || it.type.startsWith("com.android") || it.type.startsWith("com.qualcomm") }) {
sources.add(ContactSource("", "", context.getString(R.string.phone_storage)))
}
return sources
}

View File

@ -4,6 +4,7 @@
<string name="address">العنوان</string>
<string name="inserting">إضافة…</string>
<string name="updating">تحديث…</string>
<string name="phone_storage">Phone storage</string>
<string name="phone_storage_hidden">ذاكرة الهاتف (غير مرئية من قبل التطبيقات الأخرى)</string>
<string name="company">الشركة</string>
<string name="job_position">الوظيفة</string>

View File

@ -4,6 +4,7 @@
<string name="address">Ünvan</string>
<string name="inserting">Daxil edilir…</string>
<string name="updating">Yenilənir…</string>
<string name="phone_storage">Phone storage</string>
<string name="phone_storage_hidden">Telefon yaddaşı (digər tətbiqlərə görünmür)</string>
<string name="company">Şirkət</string>
<string name="job_position">İş vəziyyəti</string>

View File

@ -5,6 +5,7 @@
<string name="address">Adresa</string>
<string name="inserting">Vytváří se…</string>
<string name="updating">Upravuje se…</string>
<string name="phone_storage">Phone storage</string>
<string name="phone_storage_hidden">Úložiště telefonu (neviditelné pro ostatní apky)</string>
<string name="company">Firma</string>
<string name="job_position">Pracovní pozice</string>
@ -152,4 +153,4 @@
Haven't found some strings? There's more at
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
-->
</resources>
</resources>

View File

@ -4,6 +4,7 @@
<string name="address">Cyfeiriad</string>
<string name="inserting">Yn gosod…</string>
<string name="updating">Yn diweddaru…</string>
<string name="phone_storage">Phone storage</string>
<string name="phone_storage_hidden">Storfa ddyfais (dim i\'w weld gan apiau eraill)</string>
<string name="company">Cwmni</string>
<string name="job_position">Swydd</string>

View File

@ -5,6 +5,7 @@
<string name="address">Adresse</string>
<string name="inserting">Indsætter…</string>
<string name="updating">Opdaterer…</string>
<string name="phone_storage">Phone storage</string>
<string name="phone_storage_hidden">Telefon lager (ikke synlig for andre apps)</string>
<string name="company">Firma</string>
<string name="job_position">Stilling</string>
@ -151,4 +152,4 @@
Haven't found some strings? There's more at
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
-->
</resources>
</resources>

View File

@ -5,6 +5,7 @@
<string name="address">Adresse</string>
<string name="inserting">Einfügen…</string>
<string name="updating">Aktualisiere…</string>
<string name="phone_storage">Phone storage</string>
<string name="phone_storage_hidden">Gerätespeicher (nicht sichtbar für andere Apps)</string>
<string name="company">Unternehmen</string>
<string name="job_position">Arbeitsstelle</string>
@ -111,4 +112,4 @@
Haven't found some strings? There's more at
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
-->
</resources>
</resources>

View File

@ -4,6 +4,7 @@
<string name="address">Διεύθυνση</string>
<string name="inserting">Εισαγωγή…</string>
<string name="updating">Ενημέρωση…</string>
<string name="phone_storage">Phone storage</string>
<string name="phone_storage_hidden">Μνήμη τηλεφώνου (κρυφές από άλλες εφαρμογές)</string>
<string name="company">Εταιρεία</string>
<string name="job_position">Θέση Εργασίας</string>

View File

@ -4,6 +4,7 @@
<string name="address">Dirección</string>
<string name="inserting">Insertando…</string>
<string name="updating">Actualizando…</string>
<string name="phone_storage">Phone storage</string>
<string name="phone_storage_hidden">Almacenamiento del teléfono (No visible para otras aplicaciones)</string>
<string name="company">Compañía</string>
<string name="job_position">Puesto de trabajo</string>

View File

@ -4,6 +4,7 @@
<string name="address">Helbidea</string>
<string name="inserting">Txertatzen…</string>
<string name="updating">Eguneratzen…</string>
<string name="phone_storage">Phone storage</string>
<string name="phone_storage_hidden">Telefono memoria (beste aplikazioentzat ikustezina)</string>
<string name="company">Enpresa</string>
<string name="job_position">Lanpostua</string>

View File

@ -5,6 +5,7 @@
<string name="address">Osoite</string>
<string name="inserting">Sijoitetaan...</string>
<string name="updating">Päivitetään...</string>
<string name="phone_storage">Phone storage</string>
<string name="phone_storage_hidden">Puhelimen muisti (piilotettu muilta sovelluksilta)</string>
<string name="company">Yritys</string>
<string name="job_position">Ammatti</string>
@ -151,4 +152,4 @@
Haven't found some strings? There's more at
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
-->
</resources>
</resources>

View File

@ -5,6 +5,7 @@
<string name="address">Adresse</string>
<string name="inserting">Insertion…</string>
<string name="updating">Actualisation…</string>
<string name="phone_storage">Phone storage</string>
<string name="phone_storage_hidden">Mémoire du téléphone (invisible pour les autres applis)</string>
<string name="company">Entreprise</string>
<string name="job_position">Poste</string>
@ -111,4 +112,4 @@
Haven't found some strings? There's more at
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
-->
</resources>
</resources>

View File

@ -4,6 +4,7 @@
<string name="address">Endereço</string>
<string name="inserting">A inserir…</string>
<string name="updating">A atualizar…</string>
<string name="phone_storage">Phone storage</string>
<string name="phone_storage_hidden">Armazenamento do telefone (não visível por outras alicações)</string>
<string name="company">Organização</string>
<string name="job_position">Cargo</string>

View File

@ -4,6 +4,7 @@
<string name="address">Address</string>
<string name="inserting">Inserting…</string>
<string name="updating">Updating…</string>
<string name="phone_storage">Phone storage</string>
<string name="phone_storage_hidden">Phone storage (not visible by other apps)</string>
<string name="company">Company</string>
<string name="job_position">Job position</string>

View File

@ -4,6 +4,7 @@
<string name="address">Adresa</string>
<string name="inserting">Dodavanje…</string>
<string name="updating">Ažuriranje…</string>
<string name="phone_storage">Phone storage</string>
<string name="phone_storage_hidden">Pohrana na telefonu (nije vidljiva drugim aplikacijama))</string>
<string name="company">Tvrtka</string>
<string name="job_position">Radno mjesto</string>

View File

@ -5,6 +5,7 @@
<string name="address">Cím</string>
<string name="inserting">Hozzáadás…</string>
<string name="updating">Módosítás…</string>
<string name="phone_storage">Phone storage</string>
<string name="phone_storage_hidden">Telefon tárhelye (többi alkalmazás számára nem látható)</string>
<string name="company">Cégnév</string>
<string name="job_position">Munkakör</string>
@ -151,4 +152,4 @@
Haven't found some strings? There's more at
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
-->
</resources>
</resources>

View File

@ -4,6 +4,7 @@
<string name="address">Alamat</string>
<string name="inserting">Menyimpan…</string>
<string name="updating">Memperbarui…</string>
<string name="phone_storage">Phone storage</string>
<string name="phone_storage_hidden">Penyimpanan telepon (tidak terlihat oleh aplikasi lain)</string>
<string name="company">Perusahaan</string>
<string name="job_position">Jabatan</string>

View File

@ -5,6 +5,7 @@
<string name="address">Indirizzo</string>
<string name="inserting">Inserimento in corso…</string>
<string name="updating">Aggiornamento in corso…</string>
<string name="phone_storage">Phone storage</string>
<string name="phone_storage_hidden">Memoria del telefono (non visibile alle altre applicazioni)</string>
<string name="company">Società</string>
<string name="job_position">Posizione lavorativa</string>
@ -111,4 +112,4 @@
Haven't found some strings? There's more at
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
-->
</resources>
</resources>

View File

@ -4,6 +4,7 @@
<string name="address">住所</string>
<string name="inserting">挿入中…</string>
<string name="updating">更新中…</string>
<string name="phone_storage">Phone storage</string>
<string name="phone_storage_hidden">内部ストレージ (他のアプリからは表示されません)</string>
<string name="company">会社</string>
<string name="job_position">役職</string>

View File

@ -4,6 +4,7 @@
<string name="address">주소</string>
<string name="inserting">등록중…</string>
<string name="updating">수정중…</string>
<string name="phone_storage">Phone storage</string>
<string name="phone_storage_hidden">Phone storage (not visible by other apps)</string>
<string name="company">Company</string>
<string name="job_position">Job position</string>

View File

@ -4,6 +4,7 @@
<string name="address">Adresas</string>
<string name="inserting">Įterpiama…</string>
<string name="updating">Atnaujinama…</string>
<string name="phone_storage">Phone storage</string>
<string name="phone_storage_hidden">Telefono atmintis (nematoma kitų programėlių)</string>
<string name="company">Company</string>
<string name="job_position">Job position</string>

View File

@ -4,6 +4,7 @@
<string name="address">വിലാസം</string>
<string name="inserting">ചേർക്കുന്നു…</string>
<string name="updating">പുതുക്കുന്നു…</string>
<string name="phone_storage">Phone storage</string>
<string name="phone_storage_hidden">ഫോൺ സ്റ്റോറേജ് (മറ്റ് അപ്ലിക്കേഷനുകൾക്ക് ദൃശ്യമല്ല)</string>
<string name="company">കമ്പനി</string>
<string name="job_position">ഉദ്യോഗ സ്ഥാനം</string>

View File

@ -5,6 +5,7 @@
<string name="address">Adresse</string>
<string name="inserting">Legger til …</string>
<string name="updating">Oppdaterer …</string>
<string name="phone_storage">Phone storage</string>
<string name="phone_storage_hidden">Telefonlager (ikke synlig for andre programmer)</string>
<string name="company">Firma</string>
<string name="job_position">Stilling</string>
@ -151,4 +152,4 @@
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
-->
<string name="fields_empty">Minst ett felt må fylles ut</string>
</resources>
</resources>

View File

@ -4,6 +4,7 @@
<string name="address">Adres</string>
<string name="inserting">Toevoegen…</string>
<string name="updating">Updaten…</string>
<string name="phone_storage">Phone storage</string>
<string name="phone_storage_hidden">Telefoonopslag (niet zichtbaar voor andere apps)</string>
<string name="company">Bedrijf</string>
<string name="job_position">Titel</string>

View File

@ -5,6 +5,7 @@
<string name="address">Adres</string>
<string name="inserting">Dodawanie…</string>
<string name="updating">Aktualizowanie…</string>
<string name="phone_storage">Pamięć telefonu</string>
<string name="phone_storage_hidden">Pamięć telefonu (niewidoczne dla innych aplikacji)</string>
<string name="company">Firma</string>
<string name="job_position">Stanowisko</string>
@ -152,4 +153,4 @@
Haven't found some strings? There's more at
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
-->
</resources>
</resources>

View File

@ -4,6 +4,7 @@
<string name="address">Endereço</string>
<string name="inserting">Inserindo…</string>
<string name="updating">Atualizando…</string>
<string name="phone_storage">Phone storage</string>
<string name="phone_storage_hidden">Armazenamento do telefone (não visível por outros aplicativos)</string>
<string name="company">Empresa</string>
<string name="job_position">Cargo</string>

View File

@ -4,6 +4,7 @@
<string name="address">Endereço</string>
<string name="inserting">A inserir…</string>
<string name="updating">A atualizar…</string>
<string name="phone_storage">Phone storage</string>
<string name="phone_storage_hidden">Armazenamento do telefone (não visível por outras alicações)</string>
<string name="company">Organização</string>
<string name="job_position">Cargo</string>

View File

@ -5,6 +5,7 @@
<string name="address">Адрес</string>
<string name="inserting">Добавление…</string>
<string name="updating">Обновление…</string>
<string name="phone_storage">Phone storage</string>
<string name="phone_storage_hidden">Память устройства (не видна другим приложениям)</string>
<string name="company">Организация</string>
<string name="job_position">Должность</string>
@ -112,4 +113,4 @@
Haven't found some strings? There's more at
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
-->
</resources>
</resources>

View File

@ -4,6 +4,7 @@
<string name="address">Adresa</string>
<string name="inserting">Vytvára sa…</string>
<string name="updating">Upravuje sa…</string>
<string name="phone_storage">Phone storage</string>
<string name="phone_storage_hidden">Úložisko mobilu (neviditeľné pre ostatné apky)</string>
<string name="company">Firma</string>
<string name="job_position">Pracovná pozícia</string>

View File

@ -5,6 +5,7 @@
<string name="address">Adress</string>
<string name="inserting">Lägger till…</string>
<string name="updating">Uppdaterar…</string>
<string name="phone_storage">Phone storage</string>
<string name="phone_storage_hidden">Telefonens lagringsutrymme (inte synligt för andra appar)</string>
<string name="company">Företag</string>
<string name="job_position">Befattning</string>
@ -151,4 +152,4 @@
Haven't found some strings? There's more at
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
-->
</resources>
</resources>

View File

@ -5,6 +5,7 @@
<string name="address">Adres</string>
<string name="inserting">Ekleniyor…</string>
<string name="updating">Güncelleniyor…</string>
<string name="phone_storage">Phone storage</string>
<string name="phone_storage_hidden">Telefon belleği (diğer uygulamalar tarafından görülmez)</string>
<string name="company">Şirket</string>
<string name="job_position">İş pozisyonu</string>
@ -151,4 +152,4 @@
Haven't found some strings? There's more at
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
-->
</resources>
</resources>

View File

@ -4,6 +4,7 @@
<string name="address">Адреса</string>
<string name="inserting">Триває додавання…</string>
<string name="updating">Триває оновлення…</string>
<string name="phone_storage">Phone storage</string>
<string name="phone_storage_hidden">Пам\'ять пристрою (прихована від інших додатків)</string>
<string name="company">Компанія</string>
<string name="job_position">Посада</string>

View File

@ -5,6 +5,7 @@
<string name="address">地址</string>
<string name="inserting">添加中…</string>
<string name="updating">更新中…</string>
<string name="phone_storage">Phone storage</string>
<string name="phone_storage_hidden">手机空间 (其他程序不可见)</string>
<string name="company">公司</string>
<string name="job_position">职位</string>
@ -151,4 +152,4 @@
Haven't found some strings? There's more at
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
-->
</resources>
</resources>

View File

@ -4,6 +4,7 @@
<string name="address">地址</string>
<string name="inserting">添加中…</string>
<string name="updating">更新中…</string>
<string name="phone_storage">Phone storage</string>
<string name="phone_storage_hidden">手機空間 (其他程式不可見)</string>
<string name="company">公司</string>
<string name="job_position">職位</string>

View File

@ -5,6 +5,7 @@
<string name="address">Address</string>
<string name="inserting">Inserting…</string>
<string name="updating">Updating…</string>
<string name="phone_storage">Phone storage</string>
<string name="phone_storage_hidden">Phone storage (not visible by other apps)</string>
<string name="company">Company</string>
<string name="job_position">Job position</string>