Commit 50dfb0f2 authored by wanglei's avatar wanglei

...

parent dfa3e5fe
...@@ -15,6 +15,7 @@ import android.view.inputmethod.EditorInfo ...@@ -15,6 +15,7 @@ import android.view.inputmethod.EditorInfo
import androidx.activity.addCallback import androidx.activity.addCallback
import androidx.core.content.ContextCompat import androidx.core.content.ContextCompat
import androidx.core.widget.addTextChangedListener import androidx.core.widget.addTextChangedListener
import androidx.lifecycle.lifecycleScope
import com.artifex.mupdfdemo.Annotation import com.artifex.mupdfdemo.Annotation
import com.artifex.mupdfdemo.Hit import com.artifex.mupdfdemo.Hit
import com.artifex.mupdfdemo.MuPDFCore import com.artifex.mupdfdemo.MuPDFCore
...@@ -42,6 +43,9 @@ import com.base.pdfviewerscannerwhite.utils.LogEx ...@@ -42,6 +43,9 @@ import com.base.pdfviewerscannerwhite.utils.LogEx
import com.base.pdfviewerscannerwhite.utils.SpStringUtils import com.base.pdfviewerscannerwhite.utils.SpStringUtils
import com.base.pdfviewerscannerwhite.utils.SpStringUtils.LAST_VIEW_KEY import com.base.pdfviewerscannerwhite.utils.SpStringUtils.LAST_VIEW_KEY
import com.base.pdfviewerscannerwhite.utils.ToastUtils.toast import com.base.pdfviewerscannerwhite.utils.ToastUtils.toast
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import java.io.File import java.io.File
...@@ -118,6 +122,10 @@ class PdfActivity : BaseActivity<ActivityPdfBinding>(), PdfView { ...@@ -118,6 +122,10 @@ class PdfActivity : BaseActivity<ActivityPdfBinding>(), PdfView {
if (!haveGuideGesture) { if (!haveGuideGesture) {
binding.flGuideGesture.visibility = View.VISIBLE binding.flGuideGesture.visibility = View.VISIBLE
lifecycleScope.launch(Dispatchers.Main) {
delay(2000)
binding.flGuideGesture.visibility = View.GONE
}
} }
AdmobNativeUtils.showNativeAd(this, binding.flAd, R.layout.layout_admob_document_in) AdmobNativeUtils.showNativeAd(this, binding.flAd, R.layout.layout_admob_document_in)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment