Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Steps to hide homepage Create Button on Automotive Layout #3959

Open
3 tasks done
0xrxL opened this issue Nov 22, 2024 · 1 comment
Open
3 tasks done

feat: Steps to hide homepage Create Button on Automotive Layout #3959

0xrxL opened this issue Nov 22, 2024 · 1 comment
Labels
Feature request Requesting a new feature that's not implemented yet

Comments

@0xrxL
Copy link

0xrxL commented Nov 22, 2024

Feature description

Based on YouTube 19.45.38 version:

Image

  • Open the file:
    mba.smali

  • Go to the method:
    public final void o(MenuItem menuItem)

  • Put the content of enum in a variable like this:
    public static Enum<?> headerBarPivot;

  • Invoke the following integration method after setOnClickListener(), to hide the correct view:

public static void HideHeaderCreateButton(View view) {
     if (headerBarPivot != null && headerBarPivot.name().contains("CREATION_ENTRY")) {
          HideView(view);
     }
}

Motivation

The creation button is already hidden on the smartphone layout (with the notifications button next to the search button), but it is not hidden on the automotive one. This causes a patch consistency issue.

Image

Acknowledgements

  • I have checked all open and closed feature requests and this is not a duplicate
  • I have chosen an appropriate title.
  • All requested information has been provided properly.
@0xrxL 0xrxL added the Feature request Requesting a new feature that's not implemented yet label Nov 22, 2024
@0xrxL
Copy link
Author

0xrxL commented Nov 23, 2024

@LisoUseInAIKyrios This should be added with the already implemented patch to hide create button (on bottom bar).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature request Requesting a new feature that's not implemented yet
Projects
None yet
Development

No branches or pull requests

1 participant