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 13, 2024
1 parent 076acab commit 9f913d6
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 9f913d6

Please sign in to comment.