[app] Fix Compile Dialog (#1452)

This commit is contained in:
Howard Wu 2021-11-29 09:26:11 +08:00 committed by GitHub
parent 7a2ad2777e
commit 005692f271
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -71,7 +71,9 @@ public class CompileDialogFragment extends AppCompatDialogFragment {
.setTitle(appInfo.loadLabel(pm))
.setView(binding.getRoot());
return builder.create();
var alertDialog = builder.create();
onViewCreated(binding.getRoot(), savedInstanceState);
return alertDialog;
}
@Override
@ -122,7 +124,6 @@ public class CompileDialogFragment extends AppCompatDialogFragment {
((BaseFragment) parent).showHint(text, true);
}
}
Toast.makeText(context, text, Toast.LENGTH_LONG).show();
}
}
}