https://kotlinlang.org logo
#android
Title
# android
a

Ashish Gautam

09/29/2022, 6:39 AM
Hey guys ! I have a Dialogue in a class for global use, I have some event on onClick now I want a check condition that for context like I don't want to trigger that event when a particular context(fragment is there). Basiclly if (context != context(from some fragment))
😶 2
j

Jhonatan Sabadi

09/29/2022, 11:57 AM
Maybe its better not check context, create a Enum or something like this, and compare, its easier
3 Views