mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 18:35:40 +03:00
Try to decode QrCode data in the debug Activity
This commit is contained in:
parent
9c7f5251b0
commit
6e060f63c6
1 changed files with 4 additions and 0 deletions
|
@ -25,6 +25,7 @@ import android.os.Build
|
|||
import androidx.core.app.NotificationCompat
|
||||
import androidx.core.app.Person
|
||||
import butterknife.OnClick
|
||||
import im.vector.matrix.android.internal.crypto.verification.qrcode.toQrCodeData
|
||||
import im.vector.riotx.R
|
||||
import im.vector.riotx.core.di.ActiveSessionHolder
|
||||
import im.vector.riotx.core.di.ScreenComponent
|
||||
|
@ -209,6 +210,9 @@ class DebugMenuActivity : VectorBaseActivity() {
|
|||
// renderQrCode(QrCodeScannerActivity.getResultText(data) ?: "")
|
||||
val result = QrCodeScannerActivity.getResultText(data)!!
|
||||
|
||||
val qrCodeData = result.toQrCodeData()
|
||||
Timber.e("qrCodeData: $qrCodeData")
|
||||
|
||||
if (result.length != buffer.size) {
|
||||
Timber.e("Error, length are not the same")
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue