mirror of
https://github.com/revanced/revanced-integrations.git
synced 2024-06-02 19:36:30 +02:00
fix: hide button only in search feed
This commit is contained in:
parent
530ba18364
commit
f2df0be01a
|
@ -4,11 +4,16 @@ import android.view.View;
|
|||
|
||||
import app.revanced.integrations.youtube.settings.Settings;
|
||||
import app.revanced.integrations.shared.Utils;
|
||||
import app.revanced.integrations.youtube.shared.NavigationBar;
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
public class HideLoadMoreButtonPatch {
|
||||
private static final boolean HIDE_LOAD_MORE_BUTTON_ENABLED =
|
||||
Settings.HIDE_LOAD_MORE_BUTTON.get() && NavigationBar.isSearchBarActive();
|
||||
|
||||
public static void hideLoadMoreButton(View view){
|
||||
if(!Settings.HIDE_LOAD_MORE_BUTTON.get()) return;
|
||||
if(!HIDE_LOAD_MORE_BUTTON_ENABLED) return;
|
||||
|
||||
Utils.hideViewByLayoutParams(view);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user