Skip to content

Commit

Permalink
fix(android): list view scroll performance for items added after wind…
Browse files Browse the repository at this point in the history
…ow open

Fixes TIMOB-28573
  • Loading branch information
jquick-axway authored and ewanharris committed Nov 17, 2021
1 parent 1677d48 commit 3a5153c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ private void setupProxy(KrollObject object, Object[] creationArguments, TiUrl cr
// Associate the activity with the proxy. if the proxy needs activity association delayed until a
// later point then initActivity should be overridden to be a no-op and then call setActivity directly
// at the appropriate time
initActivity(TiApplication.getAppRootOrCurrentActivity());
initActivity(TiApplication.getAppCurrentActivity());

// Setup the proxy according to the creation arguments TODO - pass in createdInModule
handleCreationArgs(null, creationArguments);
Expand Down Expand Up @@ -151,7 +151,7 @@ public void setActivity(Activity activity)
{
// our proxy must always be associated with a valid activity
if (activity == null) {
initActivity(TiApplication.getAppRootOrCurrentActivity());
initActivity(TiApplication.getAppCurrentActivity());
return;
}
this.activity = new WeakReference<>(activity);
Expand All @@ -170,7 +170,7 @@ public Activity getActivity()
{
// our proxy must always be associated with a valid activity
if (this.activity == null || this.activity.get() == null) {
initActivity(TiApplication.getAppRootOrCurrentActivity());
initActivity(TiApplication.getAppCurrentActivity());
}
return this.activity.get();
}
Expand Down

0 comments on commit 3a5153c

Please sign in to comment.