Skip to content

Commit

Permalink
chore(android): make TableView/ListView holder context reference final
Browse files Browse the repository at this point in the history
  • Loading branch information
jquick-axway authored and sgtcoolguy committed Mar 24, 2021
1 parent 9f58c84 commit 5c5efc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public void bind(final ListItemProxy proxy, final boolean selected)

if (proxy != null) {
// Update list item proxy's activity in case it has changed, such as after a dark/light theme change.
Context context = this.itemView.getContext();
final Context context = this.itemView.getContext();
if ((context instanceof Activity) && (proxy.getActivity() != context)) {
proxy.releaseViews();
proxy.setActivity((Activity) context);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public void bind(final TableViewRowProxy proxy, final boolean selected)
final KrollDict properties = proxy.getProperties();

// Update row proxy's activity in case it has changed, such as after a dark/light theme change.
Context context = this.itemView.getContext();
final Context context = this.itemView.getContext();
if ((context instanceof Activity) && (proxy.getActivity() != context)) {
proxy.releaseViews();
proxy.setActivity((Activity) context);
Expand Down

0 comments on commit 5c5efc0

Please sign in to comment.