minor code cleanup here and there

This commit is contained in:
tibbi
2019-01-06 14:55:45 +01:00
parent 4dcb46c7ab
commit 50dc97e9c0
4 changed files with 6 additions and 20 deletions

View File

@ -71,8 +71,7 @@ fun SimpleActivity.showContactSourcePicker(currentSource: String, callback: (new
sources = filteredSources.map { it.publicName }
sources.forEachIndexed { index, account ->
var publicAccount = account
items.add(RadioItem(index, publicAccount))
items.add(RadioItem(index, account))
if (currentSource == SMT_PRIVATE && account == getString(R.string.phone_storage_hidden)) {
currentSourceIndex = index
}