video-covers disabler
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package ru.vtosters.hooks;
|
||||
|
||||
import ru.vtosters.hooks.other.Preferences;
|
||||
|
||||
public class GroupCoverHook {
|
||||
public static boolean needToDisableCovers() {
|
||||
return Preferences.getBoolValue("disablevideoscovers", false);
|
||||
}
|
||||
}
|
||||
@@ -94,6 +94,10 @@
|
||||
android:key="pollresults"
|
||||
android:summary="@string/pollresults_summ"
|
||||
android:title="@string/pollresults_title"/>
|
||||
<com.vtosters.lite.ui.MaterialSwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:key="disablevideoscovers"
|
||||
android:title="Отключить видео обложки групп"/>
|
||||
<com.vtosters.lite.ui.MaterialSwitchPreference
|
||||
android:defaultValue="false"
|
||||
android:key="disableForceTabletMode"
|
||||
|
||||
@@ -1754,6 +1754,12 @@
|
||||
|
||||
if-eqz v2, :cond_32
|
||||
|
||||
invoke-static {}, Lru/vtosters/hooks/GroupCoverHook;->needToDisableCovers()Z
|
||||
|
||||
move-result v4
|
||||
|
||||
if-nez v4, :cond_32
|
||||
|
||||
const-string v2, "live_covers"
|
||||
|
||||
.line 153
|
||||
|
||||
Reference in New Issue
Block a user