ndk: Replace open-coded bool getters with bitflags wrappers
#486
+215
−244
bool getters with bitflags wrappers
#486