boolean function ( Context arg0 ) { if ( ! AppConstants . NIGHTLY_BUILD ) { return false ; } if ( ! SwitchBoard . isInExperiment ( arg0 , Experiments . ACTIVITY_STREAM ) ) { return false ; } return true ; }
this method returns true if activity stream can be enabled - by the user or an experiment . whether a setting shows up or whether the user is in an experiment group is evaluated separately from this method . however if this methods returns false then activity stream should never be visible/enabled - no matter what build or what experiments are active . concode_field_sep List<String> UNDESIRED_LABEL_PREFIXES concode_elem_sep List<String> UNDESIRED_LABELS concode_field_sep void onLabelExtracted concode_elem_sep boolean isUserSwitchable concode_elem_sep boolean isEnabled concode_elem_sep void extractLabel concode_elem_sep boolean hasUserEnabledOrDisabled concode_elem_sep boolean isEnabledByUser concode_elem_sep void setUserEnabled concode_elem_sep boolean isHomePanel concode_elem_sep boolean isEnabledByExperiment