Nat Strangerweather
12/23/2020, 9:26 AM32 + 64 + 4 + 128
. The problem is that I don't want the numbers to be added up. If I use quotation marks to turn it into a String, I get an error because the method needs Ints. Any ideas?Vampire
12/23/2020, 9:33 AMDominik wuttke
12/23/2020, 9:34 AMVampire
12/23/2020, 9:35 AMString
does not workNat Strangerweather
12/23/2020, 9:35 AMnotificationManager.setNotificationPolicy(
NotificationManager.Policy(
policyCodeA + policyCodeB + policyCodeC + policyCodeD + policyCodeE,
0,
0
)
)
Vampire
12/23/2020, 9:38 AMDominik wuttke
12/23/2020, 9:38 AMDominik wuttke
12/23/2020, 9:39 AMVampire
12/23/2020, 9:39 AMNat Strangerweather
12/23/2020, 9:40 AMVampire
12/23/2020, 9:40 AMNat Strangerweather
12/23/2020, 9:40 AMNat Strangerweather
12/23/2020, 9:40 AMNat Strangerweather
12/23/2020, 9:41 AMVampire
12/23/2020, 9:41 AMVampire
12/23/2020, 9:41 AMDominik wuttke
12/23/2020, 9:41 AMNat Strangerweather
12/23/2020, 9:41 AMVampire
12/23/2020, 9:43 AMVampire
12/23/2020, 9:43 AMpolicyCodeA or policyCodeB or policyCodeC or policyCodeD or policyCodeE
Vampire
12/23/2020, 9:44 AMpolicyCodeA | policyCodeB | policyCodeC | policyCodeD | policyCodeE
Vampire
12/23/2020, 9:44 AMNat Strangerweather
12/23/2020, 9:44 AMNat Strangerweather
12/23/2020, 9:45 AMVampire
12/23/2020, 9:45 AMVampire
12/23/2020, 9:45 AMVampire
12/23/2020, 9:45 AMVampire
12/23/2020, 9:46 AMNat Strangerweather
12/23/2020, 9:48 AMVampire
12/23/2020, 9:49 AMVampire
12/23/2020, 9:49 AMVampire
12/23/2020, 9:51 AMVampire
12/23/2020, 9:54 AMCONVERSATION_SENDERS_ANYONE
is 1
(00000001
), CONVERSATION_SENDERS_IMPORTANT
is 2
(00000010
), CONVERSATION_SENDERS_NONE
is 3
(00000011
).
So combining anyone and important results in none.
And if you properly use or
to combine anyone and none, you still end up with none.
But if you use -
to combine anyone and none you suddenly have 4
which is PRIORITY_CATEGORY_MESSAGES
Nat Strangerweather
12/23/2020, 10:04 AM