Skip to content

Commit

Permalink
Fix variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
Chipppppppppp committed Mar 7, 2024
1 parent 27d57e4 commit 9591169
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions app/src/main/java/io/github/chipppppppppp/lime/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -403,11 +403,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());
<<<<<<< HEAD
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());
>>>>>>> 8e819b5886f6677397294a48cea6b0b96ebd4f61
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 All @@ -424,7 +420,7 @@ public void onScrollChanged() {
ViewGroup childGroup = (ViewGroup) child;
for (int j = 0; j < childGroup.getChildCount(); ++j) {
int id = childGroup.getChildAt(j).getId();
if (id == staticNotificationResId || id == rollingNotificationResId || id == hotDealContentRecyclerview) {
if (id == staticNotificationResId || id == rollingNotificationResId || id == hotDealContentRecyclerviewResId) {
child.setVisibility(View.GONE);
ViewGroup.LayoutParams layoutParams = child.getLayoutParams();
layoutParams.height = 0;
Expand Down

0 comments on commit 9591169

Please sign in to comment.