mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-06-05 21:59:27 +02:00
Added new string to all places
This commit is contained in:
@ -644,7 +644,7 @@ class EditContactActivity : ContactActivity() {
|
|||||||
private fun setupContactSource() {
|
private fun setupContactSource() {
|
||||||
originalContactSource = contact!!.source
|
originalContactSource = contact!!.source
|
||||||
getPublicContactSource(contact!!.source) {
|
getPublicContactSource(contact!!.source) {
|
||||||
contact_source.text = it
|
contact_source.text = if (it == "") getString(R.string.phone_storage) else it
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -653,7 +653,7 @@ class EditContactActivity : ContactActivity() {
|
|||||||
originalContactSource = if (hasContactPermissions()) config.lastUsedContactSource else SMT_PRIVATE
|
originalContactSource = if (hasContactPermissions()) config.lastUsedContactSource else SMT_PRIVATE
|
||||||
contact = getEmptyContact()
|
contact = getEmptyContact()
|
||||||
getPublicContactSource(contact!!.source) {
|
getPublicContactSource(contact!!.source) {
|
||||||
contact_source.text = it
|
contact_source.text = if (it == "") getString(R.string.phone_storage) else it
|
||||||
}
|
}
|
||||||
|
|
||||||
// if the last used contact source is not available anymore, use the first available one. Could happen at ejecting SIM card
|
// if the last used contact source is not available anymore, use the first available one. Could happen at ejecting SIM card
|
||||||
@ -663,7 +663,7 @@ class EditContactActivity : ContactActivity() {
|
|||||||
originalContactSource = sourceNames.first()
|
originalContactSource = sourceNames.first()
|
||||||
contact?.source = originalContactSource
|
contact?.source = originalContactSource
|
||||||
getPublicContactSource(contact!!.source) {
|
getPublicContactSource(contact!!.source) {
|
||||||
contact_source.text = it
|
contact_source.text = if (it == "") getString(R.string.phone_storage) else it
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -916,7 +916,7 @@ class EditContactActivity : ContactActivity() {
|
|||||||
showContactSourcePicker(contact!!.source) {
|
showContactSourcePicker(contact!!.source) {
|
||||||
contact!!.source = if (it == getString(R.string.phone_storage_hidden)) SMT_PRIVATE else it
|
contact!!.source = if (it == getString(R.string.phone_storage_hidden)) SMT_PRIVATE else it
|
||||||
getPublicContactSource(it) {
|
getPublicContactSource(it) {
|
||||||
contact_source.text = it
|
contact_source.text = if (it == "") getString(R.string.phone_storage) else it
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -536,7 +536,7 @@ class ViewContactActivity : ContactActivity() {
|
|||||||
|
|
||||||
for ((key, value) in sources) {
|
for ((key, value) in sources) {
|
||||||
layoutInflater.inflate(R.layout.item_view_contact_source, contact_sources_holder, false).apply {
|
layoutInflater.inflate(R.layout.item_view_contact_source, contact_sources_holder, false).apply {
|
||||||
contact_source.text = value
|
contact_source.text = if (value == "") getString(R.string.phone_storage) else value
|
||||||
contact_source.copyOnLongClick(value)
|
contact_source.copyOnLongClick(value)
|
||||||
contact_sources_holder.addView(this)
|
contact_sources_holder.addView(this)
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ class ImportContactsDialog(val activity: SimpleActivity, val path: String, priva
|
|||||||
activity.showContactSourcePicker(targetContactSource) {
|
activity.showContactSourcePicker(targetContactSource) {
|
||||||
targetContactSource = if (it == activity.getString(R.string.phone_storage_hidden)) SMT_PRIVATE else it
|
targetContactSource = if (it == activity.getString(R.string.phone_storage_hidden)) SMT_PRIVATE else it
|
||||||
activity.getPublicContactSource(it) {
|
activity.getPublicContactSource(it) {
|
||||||
import_contacts_title.text = it
|
import_contacts_title.text = if (it == "") activity.getString(R.string.phone_storage) else it
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user