We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd40493 commit 718e8b2Copy full SHA for 718e8b2
app/src/main/java/com/github/tmo1/sms_ie/ImportExportCallLog.kt
@@ -25,6 +25,7 @@ package com.github.tmo1.sms_ie
25
import android.content.ContentValues
26
import android.content.Context
27
import android.net.Uri
28
+import android.provider.BaseColumns
29
import android.provider.CallLog
30
import android.util.JsonReader
31
import android.util.JsonWriter
@@ -149,7 +150,11 @@ suspend fun importCallLog(
149
150
while (jsonReader.hasNext()) {
151
val name = jsonReader.nextName()
152
val value = jsonReader.nextString()
- if (callLogColumns.contains(name)) {
153
+ if ((callLogColumns.contains(name)) and (name !in setOf(
154
+ BaseColumns._ID,
155
+ BaseColumns._COUNT
156
+ ))
157
+ ) {
158
callLogMetadata.put(name, value)
159
}
160
0 commit comments