mirror of
https://github.com/areteruhiro/LIME-beta-hiro.git
synced 2025-02-05 21:11:39 +09:00
Merge pull request #8 from auag0/patch-1
リソース名から動的にリソースIDを取得して複数のバージョンに対応
This commit is contained in:
commit
2dcbc2eea1
@ -33,7 +33,9 @@ public class Main implements IXposedHookLoadPackage {
|
||||
XposedHelpers.findAndHookMethod(hookTarget, "onResume", new XC_MethodHook() {
|
||||
@Override
|
||||
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
|
||||
((ViewGroup) ((Activity) param.thisObject).findViewById(2131433343)).getChildAt(6).setVisibility(View.GONE);
|
||||
Activity activity = (Activity) param.thisObject;
|
||||
int resourceId = activity.getResources().getIdentifier("main_tab_container", "id", activity.getPackageName());
|
||||
((ViewGroup) activity.findViewById(resourceId)).getChildAt(6).setVisibility(View.GONE);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user