处理 Sonar 代码问题
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user