Hi guys, I have question as below: ```intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_A...
t
Hi guys, I have question as below:
Copy code
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK or Intent.FLAG_ACTIVITY_CLEAR_TOP)
Can you guys explain why have “or” in the code as above?
e
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/or.html is bitwise-or, spelled
|
in many other languages
bitwise-or is how bitfields are combined
t
thank you, i got it