You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 15, 2023. It is now read-only.
In this simple example, [1] is called first, which synchronously calls [2]. This is a problem because [3] has not yet run.
One solution is to teach clients to perform all dependent initializations before RemixerBinder.bind(this). This has the problem of education and that it's not always obvious what is a dependent initialization and what can happen later.
An alternative solution is for RemixerBinder.bind(this) to schedule (Activity#runOnUiThread, Handler#post) the VariableMethods to run on the next event loop iteration, giving onCreate() a chance to finish.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have code like this:
This throws a NullPointerException at
[2]
.In this simple example,
[1]
is called first, which synchronously calls[2]
. This is a problem because[3]
has not yet run.One solution is to teach clients to perform all dependent initializations before
RemixerBinder.bind(this)
. This has the problem of education and that it's not always obvious what is a dependent initialization and what can happen later.An alternative solution is for
RemixerBinder.bind(this)
to schedule (Activity#runOnUiThread
,Handler#post
) the VariableMethods to run on the next event loop iteration, givingonCreate()
a chance to finish.The text was updated successfully, but these errors were encountered: