Skip to content

Commit

Permalink
Merge pull request #15 from auag0/patch-2
Browse files Browse the repository at this point in the history
ボトムナビゲーションのVOOMボタンの取得方法を修正
  • Loading branch information
Chipppppppppp authored Jan 20, 2024
2 parents fb42eed + d7ebd34 commit c153c21
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/src/main/java/io/github/chipppppppppp/lime/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ public void handleLoadPackage(XC_LoadPackage.LoadPackageParam lparam) throws Thr
@Override
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
Activity activity = (Activity) param.thisObject;
int resourceId = activity.getResources().getIdentifier("main_tab_container", "id", activity.getPackageName());
ViewGroup vG = ((ViewGroup) activity.findViewById(resourceId));
vG.getChildAt(5).setVisibility(View.GONE); // timeline spacer
vG.getChildAt(6).setVisibility(View.GONE); // timeline
int timelineSpacerResId = activity.getResources().getIdentifier("bnb_timeline_spacer", "id", activity.getPackageName());
int timelineResId = activity.getResources().getIdentifier("bnb_timeline", "id", activity.getPackageName());
activity.findViewById(timelineSpacerResId).setVisibility(View.GONE);
activity.findViewById(timelineResId).setVisibility(View.GONE);
}
});
}
Expand Down

0 comments on commit c153c21

Please sign in to comment.