Skip to content

Commit

Permalink
Avoid navigating to app list before loaded
Browse files Browse the repository at this point in the history
Close #27
  • Loading branch information
JingMatrix committed Sep 22, 2024
1 parent b317b48 commit 5a64b8c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,9 @@ public void onLoadCleared(@Nullable Drawable placeholder) {
holder.root.setAlpha(moduleUtil.isModuleEnabled(item.packageName) ? 1.0f : .5f);
holder.itemView.setOnClickListener(v -> {
searchView.clearFocus();
safeNavigate(ModulesFragmentDirections.actionModulesFragmentToAppListFragment(item.packageName, item.userId));
if (isLoaded()) {
safeNavigate(ModulesFragmentDirections.actionModulesFragmentToAppListFragment(item.packageName, item.userId));
}
});
holder.itemView.setOnLongClickListener(v -> {
searchView.clearFocus();
Expand Down

0 comments on commit 5a64b8c

Please sign in to comment.