From fb98b3e4a1f31b8310406cd1a1edf483b4c85d6c Mon Sep 17 00:00:00 2001 From: Max Lv Date: Sat, 7 Jan 2017 09:49:22 +0800 Subject: [PATCH] Fix fast scroller in per-app config --- src/main/scala/com/github/shadowsocks/AppManager.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/com/github/shadowsocks/AppManager.scala b/src/main/scala/com/github/shadowsocks/AppManager.scala index 74f52688..b61c2705 100644 --- a/src/main/scala/com/github/shadowsocks/AppManager.scala +++ b/src/main/scala/com/github/shadowsocks/AppManager.scala @@ -229,7 +229,6 @@ class AppManager extends AppCompatActivity with OnMenuItemClickListener { appListView.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.VERTICAL, false)) appListView.setItemAnimator(new DefaultItemAnimator) fastScroller = findViewById(R.id.fastscroller).asInstanceOf[FastScroller] - fastScroller.setRecyclerView(appListView) instance = this loadAppsAsync() @@ -246,6 +245,7 @@ class AppManager extends AppCompatActivity with OnMenuItemClickListener { } while (!appsLoading.compareAndSet(true, false)) handler.post(() => { appListView.setAdapter(adapter) + fastScroller.setRecyclerView(appListView) val shortAnimTime = getResources.getInteger(android.R.integer.config_shortAnimTime) appListView.setAlpha(0) appListView.setVisibility(View.VISIBLE)