Commit b2e73cc5 authored by wanglei's avatar wanglei

...手动混淆...

parent 05b0aaa6
...@@ -13,7 +13,7 @@ import com.base.pdfreader2.bean.DocumeewewntBean.Companion.TYPE_PDF ...@@ -13,7 +13,7 @@ import com.base.pdfreader2.bean.DocumeewewntBean.Companion.TYPE_PDF
import com.base.pdfreader2.bean.DocumeewewntBean.Companion.TYPE_PPT import com.base.pdfreader2.bean.DocumeewewntBean.Companion.TYPE_PPT
import com.base.pdfreader2.bean.DocumeewewntBean.Companion.TYPE_WORD import com.base.pdfreader2.bean.DocumeewewntBean.Companion.TYPE_WORD
import com.base.pdfreader2.databinding.ItemBbbodBinding import com.base.pdfreader2.databinding.ItemBbbodBinding
import com.base.pdfreader2.databinding.ItemDocumentBinding import com.base.pdfreader2.databinding.ItemLllumentBinding
import com.base.pdfreader2.utils.SSDtlinExt.toFormatSize import com.base.pdfreader2.utils.SSDtlinExt.toFormatSize
import com.base.pdfreader2.utils.SSDtlinExt.toFormatTime import com.base.pdfreader2.utils.SSDtlinExt.toFormatTime
import com.base.pdfreader2.utils.dasdmlEx.inflate import com.base.pdfreader2.utils.dasdmlEx.inflate
...@@ -38,7 +38,7 @@ class ASDumentAdapter() : BaseQuickAdapter<DocumeewewntBean, ASDumentAdapter.Doc ...@@ -38,7 +38,7 @@ class ASDumentAdapter() : BaseQuickAdapter<DocumeewewntBean, ASDumentAdapter.Doc
val binding = ItemBbbodBinding.bind(holder.itemView) val binding = ItemBbbodBinding.bind(holder.itemView)
AveUtils.showNativeAd(null, binding.flAd, R.layout.layout_admob_document) AveUtils.showNativeAd(null, binding.flAd, R.layout.layout_admob_document)
} else { } else {
val binding = ItemDocumentBinding.bind(holder.itemView) val binding = ItemLllumentBinding.bind(holder.itemView)
changeIcon(item, binding) changeIcon(item, binding)
val file = File(item.path) val file = File(item.path)
runCatching { runCatching {
...@@ -123,7 +123,7 @@ class ASDumentAdapter() : BaseQuickAdapter<DocumeewewntBean, ASDumentAdapter.Doc ...@@ -123,7 +123,7 @@ class ASDumentAdapter() : BaseQuickAdapter<DocumeewewntBean, ASDumentAdapter.Doc
} }
fun changeIcon(item: DocumeewewntBean, binding: ItemDocumentBinding) { fun changeIcon(item: DocumeewewntBean, binding: ItemLllumentBinding) {
if (item.type == TYPE_PDF) { if (item.type == TYPE_PDF) {
if (item.state == 0) { if (item.state == 0) {
binding.iv.setImageResource(R.mipmap.pdficon) binding.iv.setImageResource(R.mipmap.pdficon)
...@@ -150,7 +150,7 @@ class ASDumentAdapter() : BaseQuickAdapter<DocumeewewntBean, ASDumentAdapter.Doc ...@@ -150,7 +150,7 @@ class ASDumentAdapter() : BaseQuickAdapter<DocumeewewntBean, ASDumentAdapter.Doc
override fun onCreateViewHolder(context: Context, parent: ViewGroup, viewType: Int): DocumentViewHolder { override fun onCreateViewHolder(context: Context, parent: ViewGroup, viewType: Int): DocumentViewHolder {
return if (viewType == 0) { return if (viewType == 0) {
DocumentViewHolder(R.layout.item_document.inflate(parent)) DocumentViewHolder(R.layout.item_lllument.inflate(parent))
} else { } else {
DocumentViewHolder(R.layout.item_bbbod.inflate(parent)) DocumentViewHolder(R.layout.item_bbbod.inflate(parent))
} }
......
...@@ -615,7 +615,7 @@ ...@@ -615,7 +615,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
tools:listitem="@layout/item_document" /> tools:listitem="@layout/item_lllument" />
<LinearLayout <LinearLayout
android:id="@+id/ll_empty" android:id="@+id/ll_empty"
......
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
tools:listitem="@layout/item_document" /> tools:listitem="@layout/item_lllument" />
<ProgressBar <ProgressBar
android:id="@+id/progressBar" android:id="@+id/progressBar"
......
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