|
|
@ -24,6 +24,7 @@ import android.os.Bundle |
|
|
|
import android.os.Handler |
|
|
|
import android.os.Handler |
|
|
|
import android.os.Looper |
|
|
|
import android.os.Looper |
|
|
|
import android.text.TextUtils |
|
|
|
import android.text.TextUtils |
|
|
|
|
|
|
|
import android.util.Log |
|
|
|
import android.view.View |
|
|
|
import android.view.View |
|
|
|
import android.view.ViewGroup |
|
|
|
import android.view.ViewGroup |
|
|
|
import androidx.recyclerview.widget.DiffUtil |
|
|
|
import androidx.recyclerview.widget.DiffUtil |
|
|
@ -386,7 +387,7 @@ class SearchAdapter( |
|
|
|
if (System.currentTimeMillis() >= postTime + 500) { |
|
|
|
if (System.currentTimeMillis() >= postTime + 500) { |
|
|
|
handler.removeCallbacks(sendRunnable) |
|
|
|
handler.removeCallbacks(sendRunnable) |
|
|
|
postTime = System.currentTimeMillis() |
|
|
|
postTime = System.currentTimeMillis() |
|
|
|
setItems(mList) |
|
|
|
setItems(ArrayList(mList)) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
handler.removeCallbacks(sendRunnable) |
|
|
|
handler.removeCallbacks(sendRunnable) |
|
|
|
handler.postDelayed(sendRunnable, 500 - System.currentTimeMillis() + postTime) |
|
|
|
handler.postDelayed(sendRunnable, 500 - System.currentTimeMillis() + postTime) |
|
|
|