mirror of
https://github.com/revanced/revanced-integrations.git
synced 2024-06-07 05:38:03 +02:00
dbf1f3f0ce
Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
17 lines
592 B
Java
17 lines
592 B
Java
package app.revanced.integrations.patches;
|
|
|
|
import android.view.View;
|
|
|
|
import app.revanced.integrations.settings.SettingsEnum;
|
|
import app.revanced.integrations.utils.LogHelper;
|
|
|
|
public class HideCreateButtonPatch {
|
|
|
|
//Used by app.revanced.patches.youtube.layout.createbutton.patch.CreateButtonRemoverPatch
|
|
public static void hideCreateButton(View view) {
|
|
boolean hidden = SettingsEnum.HIDE_CREATE_BUTTON.getBoolean();
|
|
LogHelper.printDebug(() -> "Create button: " + (hidden ? "hidden" : "shown"));
|
|
view.setVisibility(hidden ? View.GONE : View.VISIBLE);
|
|
}
|
|
}
|