[app] Remove fastscroll (#916)

This commit is contained in:
vvb2060 2021-08-16 13:54:11 +08:00 committed by GitHub
parent 67978e72a7
commit c842f7f42a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 0 additions and 5 deletions

View File

@ -196,7 +196,6 @@ dependencies {
implementation("dev.rikka.rikkax.widget:switchbar:1.0.2")
implementation("dev.rikka.rikkax.layoutinflater:layoutinflater:1.0.1")
implementation("me.zhanghai.android.appiconloader:appiconloader-glide:1.3.1")
implementation("me.zhanghai.android.fastscroll:library:1.1.7")
implementation("org.lsposed.hiddenapibypass:hiddenapibypass:2.0")
implementation(project(":manager-service"))
}

View File

@ -83,7 +83,6 @@ public class AppListFragment extends BaseFragment {
binding.recyclerView.setAdapter(scopeAdapter);
binding.recyclerView.setHasFixedSize(true);
binding.recyclerView.setLayoutManager(new LinearLayoutManagerFix(requireActivity()));
RecyclerViewKt.addFastScroller(binding.recyclerView, binding.recyclerView);
RecyclerViewKt.fixEdgeEffect(binding.recyclerView, false, true);
binding.swipeRefreshLayout.setOnRefreshListener(() -> scopeAdapter.refresh(true));

View File

@ -424,7 +424,6 @@ public class ModulesFragment extends BaseFragment implements ModuleUtil.ModuleLi
if (insets != null)
binding.recyclerView.onApplyWindowInsets(insets);
RecyclerViewKt.fixEdgeEffect(binding.recyclerView, false, true);
RecyclerViewKt.addFastScroller(binding.recyclerView, binding.recyclerView);
return binding.getRoot();
}
}

View File

@ -97,7 +97,6 @@ public class RepoFragment extends BaseFragment implements RepoLoader.Listener {
binding.recyclerView.setAdapter(adapter);
binding.recyclerView.setHasFixedSize(true);
binding.recyclerView.setLayoutManager(new LinearLayoutManagerFix(requireActivity()));
RecyclerViewKt.addFastScroller(binding.recyclerView, binding.recyclerView);
RecyclerViewKt.fixEdgeEffect(binding.recyclerView, false, true);
binding.progress.setVisibilityAfterHide(View.GONE);
repoLoader.addListener(this);

View File

@ -451,7 +451,6 @@ public class RepoItemFragment extends BaseFragment implements RepoLoader.Listene
if (insets != null)
holder.recyclerView.onApplyWindowInsets(insets);
RecyclerViewKt.fixEdgeEffect(holder.recyclerView, false, true);
RecyclerViewKt.addFastScroller(holder.recyclerView, holder.itemView);
break;
}
}