处理 Sonar 代码问题

This commit is contained in:
juntao
2022-01-18 10:14:23 +08:00
parent 8afba620f8
commit 0c6ace909e
4 changed files with 18 additions and 16 deletions

View File

@ -361,7 +361,7 @@ public class BindingAdapters {
@Nullable String location) {
// 恢复DialogFragment
restoreDialogFragment(progressBar, gameEntity, traceEvent);
restoreDialogFragment(progressBar);
// 判断是否显示按钮
if (gameEntity != null
@ -614,7 +614,7 @@ public class BindingAdapters {
* 当页面完全重建时若存在重建的DialogFragment则需要手动恢复该DialogFragment之前配置的回调(因为DialogFragment重建时只会从arguments中获取之前的配置内容
* 而arguments无法传递回调)或者dismiss该DialogFragment
*/
private static void restoreDialogFragment(DownloadProgressBar progressBar, GameEntity gameEntity, ExposureEvent traceEvent) {
private static void restoreDialogFragment(DownloadProgressBar progressBar) {
GamePermissionDialogFragment gamePermissionDialogFragment =
((GamePermissionDialogFragment) ((AppCompatActivity) progressBar.getContext()).getSupportFragmentManager().findFragmentByTag(GamePermissionDialogFragment.class.getSimpleName()));
if (gamePermissionDialogFragment != null) {