crash fixed
This commit is contained in:
parent
fa434b274d
commit
3360940f2c
|
|
@ -31,7 +31,7 @@ public abstract class BaseActivity extends AppCompatActivity
|
|||
private final BaseUiBindable baseUiBindable = new BaseUiBindable(isCreatedSubject, isStartedSubject);
|
||||
private boolean resumed;
|
||||
|
||||
public boolean isResumed() {
|
||||
public boolean isActuallyResumed() {
|
||||
return resumed;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -183,7 +183,7 @@ public final class UiUtils {
|
|||
final Runnable runnable = () -> {
|
||||
if (targetView.getWindowVisibility() != View.VISIBLE
|
||||
|| !targetView.hasWindowFocus()
|
||||
|| (targetView.getContext() instanceof BaseActivity && !((BaseActivity) targetView.getContext()).isResumed())) {
|
||||
|| (targetView.getContext() instanceof BaseActivity && !((BaseActivity) targetView.getContext()).isActuallyResumed())) {
|
||||
return;
|
||||
}
|
||||
onClickListener.onClick(targetView);
|
||||
|
|
|
|||
Loading…
Reference in New Issue