Skip to content

Commit

Permalink
Add minimal required Android bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
faern committed Sep 20, 2023
1 parent 6567519 commit 412b799
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,14 @@ data class DefaultDnsOptions(
val blockMalware: Boolean = false,
val blockAdultContent: Boolean = false,
val blockGambling: Boolean = false,
val blockSocialMedia: Boolean = false,
) : Parcelable {
fun isAnyBlockerEnabled(): Boolean {
return blockAds || blockTrackers || blockMalware || blockAdultContent || blockGambling
return blockAds ||
blockTrackers ||
blockMalware ||
blockAdultContent ||
blockGambling ||
blockSocialMedia
}
}

0 comments on commit 412b799

Please sign in to comment.