newsfeed improves
This commit is contained in:
@@ -91,7 +91,7 @@ public class NewsfeedHook {
|
|||||||
params.add("photo");
|
params.add("photo");
|
||||||
params.add("photo_tag");
|
params.add("photo_tag");
|
||||||
|
|
||||||
if (!friendsrecomm()) {
|
if (!friendsrecomm() && !getBoolValue("donotgetads", false)) {
|
||||||
params.add("friends_recomm");
|
params.add("friends_recomm");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -100,7 +100,7 @@ public class NewsfeedHook {
|
|||||||
params.add("promo_button");
|
params.add("promo_button");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!authorsrecomm()) {
|
if (!authorsrecomm() && !getBoolValue("donotgetads", false)) {
|
||||||
params.add("authors_rec");
|
params.add("authors_rec");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -148,14 +148,15 @@ public class NewsfeedHook {
|
|||||||
public static void adsParams(HashSet<String> hashSet) {
|
public static void adsParams(HashSet<String> hashSet) {
|
||||||
if (ads()) {
|
if (ads()) {
|
||||||
hashSet.add("ads_disabled");
|
hashSet.add("ads_disabled");
|
||||||
hashSet.add("ads_app_slider");
|
if (getBoolValue("donotgetads", false)) {
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
hashSet.add("ads_app");
|
hashSet.add("ads_app");
|
||||||
hashSet.add("ads_site");
|
hashSet.add("ads_site");
|
||||||
hashSet.add("ads_post");
|
hashSet.add("ads_post");
|
||||||
if (adsslider()) {
|
if (!adsslider()) {
|
||||||
hashSet.add("ads_app_slider");
|
hashSet.add("ads_app_slider");
|
||||||
}
|
}
|
||||||
hashSet.add("ads_site_slider");
|
hashSet.add("ads_site_slider");
|
||||||
|
|||||||
@@ -131,5 +131,10 @@
|
|||||||
<Preference
|
<Preference
|
||||||
android:key="newsfeedlistmanager_reset"
|
android:key="newsfeedlistmanager_reset"
|
||||||
android:title="@string/newsfeedlistmanager_reset_title" />
|
android:title="@string/newsfeedlistmanager_reset_title" />
|
||||||
|
<com.vtosters.lite.ui.MaterialSwitchPreference
|
||||||
|
android:defaultValue="false"
|
||||||
|
android:key="donotgetads"
|
||||||
|
android:summary="Не запрашивать рекламу и рекомендации\nМогуть быть проблемы"
|
||||||
|
android:title="Не пытаться получать рекламу" />
|
||||||
</PreferenceCategory>
|
</PreferenceCategory>
|
||||||
</PreferenceScreen>
|
</PreferenceScreen>
|
||||||
|
|||||||
Reference in New Issue
Block a user