Skip to content

Commit

Permalink
Disable vcard auto refresh by api change
Browse files Browse the repository at this point in the history
  • Loading branch information
qhy040404 committed May 23, 2023
1 parent f6d8036 commit 637ae98
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,14 @@ import com.qhy040404.libraryonetap.base.BaseActivity
import com.qhy040404.libraryonetap.constant.Constants
import com.qhy040404.libraryonetap.constant.GlobalValues
import com.qhy040404.libraryonetap.constant.URLManager
import com.qhy040404.libraryonetap.data.VCardStatusDTO
import com.qhy040404.libraryonetap.databinding.ActivityVcardBinding
import com.qhy040404.libraryonetap.utils.QRUtils
import com.qhy040404.libraryonetap.utils.extensions.StringExtension.decode
import com.qhy040404.libraryonetap.utils.extensions.StringExtension.isValid
import com.qhy040404.libraryonetap.utils.extensions.StringExtension.substringBetween
import com.qhy040404.libraryonetap.utils.web.Requests
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import kotlin.concurrent.thread

@Suppress("SpellCheckingInspection")
class VCardActivity : BaseActivity<ActivityVcardBinding>() {
Expand Down Expand Up @@ -134,7 +131,8 @@ class VCardActivity : BaseActivity<ActivityVcardBinding>() {
}
}
}
thread {
// TODO: Disabled because api changed
/*thread {
StrictMode.setThreadPolicy(
StrictMode.ThreadPolicy.Builder().permitAll().build()
)
Expand All @@ -149,7 +147,7 @@ class VCardActivity : BaseActivity<ActivityVcardBinding>() {
}
}
}
}
}*/
}

private fun updateCode(openid: String): Triple<String, Bitmap, String> {
Expand Down

0 comments on commit 637ae98

Please sign in to comment.