check for nav bar visibility using system UI flags. Fixes #44