App (#752)
* [app] Fix popup * [app] Don't actually need to set binding to null
This commit is contained in:
parent
f410634dc9
commit
2b593be1d5
|
|
@ -93,6 +93,14 @@ public class AppListFragment extends BaseFragment {
|
|||
return binding.getRoot();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
|
||||
super.onViewCreated(view, savedInstanceState);
|
||||
if (module == null) {
|
||||
getNavController().navigate(R.id.action_app_list_fragment_to_modules_fragment);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCreate(@Nullable Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
|
@ -101,10 +109,6 @@ public class AppListFragment extends BaseFragment {
|
|||
int moduleUserId = args.getModuleUserId();
|
||||
|
||||
module = ModuleUtil.getInstance().getModule(modulePackageName, moduleUserId);
|
||||
if (module == null) {
|
||||
getNavController().navigate(R.id.action_modules_fragment);
|
||||
return;
|
||||
}
|
||||
|
||||
backupLauncher = registerForActivityResult(new ActivityResultContracts.CreateDocument(),
|
||||
uri -> {
|
||||
|
|
|
|||
|
|
@ -177,13 +177,6 @@ public class RepoFragment extends BaseFragment implements RepoLoader.Listener {
|
|||
return super.onOptionsItemSelected(item);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDestroyView() {
|
||||
super.onDestroyView();
|
||||
|
||||
binding = null;
|
||||
}
|
||||
|
||||
private class RepoAdapter extends RecyclerView.Adapter<RepoAdapter.ViewHolder> implements Filterable {
|
||||
private List<OnlineModule> fullList, showList;
|
||||
private final LabelComparator labelComparator = new LabelComparator();
|
||||
|
|
|
|||
|
|
@ -92,6 +92,15 @@
|
|||
<argument
|
||||
android:name="moduleUserId"
|
||||
app:argType="integer" />
|
||||
<action
|
||||
android:id="@+id/action_app_list_fragment_to_modules_fragment"
|
||||
app:destination="@id/modules_fragment"
|
||||
app:enterAnim="@anim/fragment_enter"
|
||||
app:exitAnim="@anim/fragment_exit"
|
||||
app:popEnterAnim="@anim/fragment_enter_pop"
|
||||
app:popExitAnim="@anim/fragment_exit_pop"
|
||||
app:popUpTo="@id/main_fragment"
|
||||
app:popUpToInclusive="true" />
|
||||
</fragment>
|
||||
<fragment
|
||||
android:id="@+id/repo_fragment"
|
||||
|
|
|
|||
Loading…
Reference in New Issue