@Override
  public void onResume() {
    super.onResume();
    uiLifecycleHelper.onResume();

    if (getView() != null) {
      TextView groups_tv = (TextView) getView().findViewById(R.id.drawer_option_my_groups);
      boolean allowSocialFeatures =
          socialPref.getBoolean(PrefManager.Key.ALLOW_SOCIAL_FEATURES, true);
      groups_tv.setVisibility(allowSocialFeatures ? View.VISIBLE : View.GONE);
    }
  }
Exemplo n.º 2
0
 @Override
 public void onResume() {
   super.onResume();
   updateCurrentProgramValues(programsService);
 }