Again! cleanup

This commit is contained in:
anrannn
2022-10-01 00:46:10 +08:00
parent c56fa51fff
commit 0a07e66b25
6 changed files with 1 additions and 14 deletions
@@ -4,7 +4,6 @@ import android.animation.Animator
import android.animation.AnimatorListenerAdapter
import android.content.Intent
import android.os.*
import android.util.Log
import android.view.Menu
import android.view.MenuItem
import android.view.View
@@ -259,7 +258,6 @@ class MainActivity : BaseActivity() {
//执行搜索
private fun searchAction(tags: String?) {
Log.e("num",tags.toString())
var tag = tags
var isNum = true
try {
@@ -283,8 +281,6 @@ class MainActivity : BaseActivity() {
//缓存搜索的tags
this.tags = tags
Log.e(TAG,"now page is $page")
val swipeRefreshLayout =
findViewById<androidx.swiperefreshlayout.widget.SwipeRefreshLayout>(
R.id.swipeRefreshLayout
@@ -63,7 +63,6 @@ class PostAdapter(val context: Context, private var postYandList: ArrayList<Post
if (file_ext == null){
val strarr = postYandList[position].sample_url.split(".")
file_ext = strarr[strarr.lastIndex]
Log.e("file_ext",file_ext)
}
PicActivity.actionStartActivity(context,postYandList[position].id,postYandList[position].sample_url,
@@ -6,7 +6,6 @@ import android.content.Context
import android.content.Intent
import android.graphics.drawable.Drawable
import android.os.*
import android.util.Log
import android.view.View
import android.widget.ImageView
import android.widget.LinearLayout
@@ -200,7 +199,7 @@ class PicActivity : BaseActivity() {
isFirstResource: Boolean
): Boolean {
if (e != null) {
Log.e("Pic", e.stackTraceToString())
e.printStackTrace()
}
val pb = findViewById<ProgressBar>(R.id.pb)
Snackbar.make(pb, R.string.toast_load_fail, Snackbar.LENGTH_LONG).setAction(R.string.button_check) {
@@ -1,6 +1,5 @@
package com.lsp.view.activity.pic
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
@@ -24,7 +23,6 @@ class SizeAdapter(val tagList: List<Size>) : RecyclerView.Adapter<SizeAdapter.Vi
override fun onBindViewHolder(holder: ViewHolder, position: Int) {
val tag = tagList[position]
Log.e("size", tag.file_size)
if (position == 0) {
holder.tagText.text = tag.file_size
holder.tagText.setBackgroundResource(R.drawable.title_bg)
@@ -1,6 +1,5 @@
package com.lsp.view.retrofit
import android.util.Log
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
@@ -18,7 +17,6 @@ object ServiceCreator {
.baseUrl(source)
.addConverterFactory(GsonConverterFactory.create())
.build()
Log.e("Post", source)
ServiceCreator.source = source
return retrofit.create(serviceClass)
}
@@ -5,7 +5,6 @@ import android.content.Context
import android.content.Intent
import android.media.MediaScannerConnection
import android.os.*
import android.util.Log
import com.lsp.view.util.CallBackStatus
import okhttp3.OkHttpClient
import okhttp3.Request
@@ -40,7 +39,6 @@ class DownloadService : Service() {
if (file.exists()){
callBack(handler,CallBackStatus.FILEEXISTS)
Log.e("callback","文件存在")
return@thread
}
@@ -71,7 +69,6 @@ class DownloadService : Service() {
return@thread
} else {
Log.e("Test", "errorNet")
file.delete()
callBack(handler, CallBackStatus.NETWORKERROR)
return@thread