crash fix
This commit is contained in:
parent
ac64a03cca
commit
051f4108c3
|
|
@ -54,7 +54,7 @@ public abstract class BaseActivity extends AppCompatActivity
|
|||
*
|
||||
* @return True if resumed.
|
||||
*/
|
||||
public boolean isResumed() {
|
||||
public boolean isActuallyResumed() {
|
||||
return resumed;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -133,7 +133,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