This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ir.adanic.kilid.tasks; | |
import android.annotation.SuppressLint; | |
import android.app.ProgressDialog; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.content.pm.PackageManager; | |
import android.content.pm.ResolveInfo; | |
import android.net.Uri; | |
import android.os.AsyncTask; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun showSigners(document: Document) { | |
ceremony_holder.removeAllViews() | |
val ceremonies = document.ceremonies?.sortedBy { it.order } ?: return | |
val holderWidth = ceremony_holder.width | |
val cellSize = resources.getDimensionPixelSize(R.dimen.document_image_size) | |
val count = holderWidth / cellSize | |
if (ceremonies.size > count) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.test.biometrictest | |
import android.util.Log | |
import androidx.biometric.BiometricPrompt | |
class MyCallBack(private val myData: MyData) : | |
BiometricPrompt.AuthenticationCallback() { | |
init { | |
Log.e("MyCallback", "onConstruct data: $myData") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.text.TextUtils | |
import java.math.BigDecimal | |
import kotlin.math.min | |
object PersianNumbersToLettersConverter { | |
private var splitter = " و " | |
private var words = arrayListOf( | |
arrayListOf("", "یک", "دو", "سه", "چهار", "پنج", "شش", "هفت", "هشت", "نه"), | |
arrayListOf("ده", "یازده", "دوازده", "سیزده", "چهارده", "پانزده", "شانزده", "هفده", "هجده", "نوزده"), |