Commit 8394899f authored by Mygod's avatar Mygod Committed by Max Lv

Init AppsAdapter without lateinit

parent dd4b51db
......@@ -164,10 +164,10 @@ class AppManager : AppCompatActivity() {
}
private val proxiedUids = SparseBooleanArray()
private lateinit var appsAdapter: AppsAdapter
private val clipboard by lazy { getSystemService<ClipboardManager>()!! }
private var loader: Job? = null
private var apps = emptyList<ProxiedApp>()
private val appsAdapter = AppsAdapter()
private val shortAnimTime by lazy { resources.getInteger(android.R.integer.config_shortAnimTime).toLong() }
private fun View.crossFadeFrom(other: View) {
......@@ -231,7 +231,6 @@ class AppManager : AppCompatActivity() {
initProxiedUids()
list.layoutManager = LinearLayoutManager(this, RecyclerView.VERTICAL, false)
list.itemAnimator = DefaultItemAnimator()
appsAdapter = AppsAdapter()
list.adapter = appsAdapter
search.setOnQueryTextListener(object : SearchView.OnQueryTextListener {
......
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