Skip to content

Commit

Permalink
Fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
s1204IT authored Mar 7, 2024
1 parent ce40035 commit 8e819b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/io/github/chipppppppppp/lime/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
int recommendationResId = context.getResources().getIdentifier("home_tab_contents_recommendation_placement", "id", context.getPackageName());
int staticNotificationResId = context.getResources().getIdentifier("notification_hub_row_static_view_group", "id", context.getPackageName());
int rollingNotificationResId = context.getResources().getIdentifier("notification_hub_row_rolling_view_group", "id", context.getPackageName());
int hotdealcontentrecyclerview = context.getResources().getIdentifier("hot_deal_content_recycler_view", "id", context.getPackageName());
int hotDealContentRecyclerViewResId = context.getResources().getIdentifier("hot_deal_content_recycler_view", "id", context.getPackageName());

ViewGroup recyclerView = view.findViewById(recyclerViewResId);
recyclerView.getViewTreeObserver().addOnScrollChangedListener(new ViewTreeObserver.OnScrollChangedListener() {
Expand Down Expand Up @@ -436,7 +436,7 @@ public void onScrollChanged() {
ViewGroup.LayoutParams layoutParams = child.getLayoutParams();
for (int j = 0; j < childGroup.getChildCount(); ++j) {
int id = childGroup.getChildAt(j).getId();
if (id == hotdealcontentrecyclerviewid ) {
if (id == hotDealContentRecyclerViewResId) {
child.setVisibility(View.GONE);
layoutParams.height = 0;
child.setLayoutParams(layoutParams);
Expand Down

0 comments on commit 8e819b5

Please sign in to comment.