Skip to content

Commit

Permalink
Fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Chipppppppppp committed Jan 22, 2024
1 parent e5c2c77 commit d980fe4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/src/main/java/io/github/chipppppppppp/lime/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ protected void afterHookedMethod(MethodHookParam param) throws Throwable {
@Override
protected void afterHookedMethod(MethodHookParam param) throws Throwable {
View view = (View) param.thisObject;
if (!(view.getContext() instanceof Activity)) return;
Activity activity = (Activity) view.getContext();
int recommendationResId = activity.getResources().getIdentifier("home_tab_contents_recommendation_placement", "id", activity.getPackageName());
if (view.getId() == recommendationResId) view.setVisibility(View.GONE);
Expand Down

0 comments on commit d980fe4

Please sign in to comment.