code: public static int getTheme(Intent intent, boolean applyModifier) {
          return prepareFlags(intent.getIntExtra(ThemeManager._THEME_TAG,
                  ThemeManager._DEFAULT_THEME), applyModifier);
      }
docs: Extract theme flags from intent