public void triggerFilterUpdate() {
   final LKRightMenuArrayAdapter adapter =
       LKRightMenuArrayAdapter.class.cast(mRightMenuList.getAdapter());
   if (adapter != null) { // Will be null when activity starts
     adapter.notifyDataSetChanged();
   }
 }
 public void ensureSelectedFilters(DataType[] types) {
   LKRightMenuArrayAdapter adapter =
       LKRightMenuArrayAdapter.class.cast(mRightMenuList.getAdapter());
   adapter.ensureSelectedFilters(types);
 }
  /** Sets up the ListView in the navigationdrawer menu. */
  private void populateRightMenuDrawer() {
    LKRightMenuArrayAdapter adapter = new LKRightMenuArrayAdapter(this);
    adapter.setNotifyOnChange(false);
    adapter.add(getString(R.string.show_all), 0, DataType.values(), false);
    adapter.add(
        getString(R.string.food),
        R.drawable.food_logo,
        new DataType[] {DataType.FOOD, DataType.FOODSTOCK, DataType.SNACKS},
        true);
    adapter.add(
        getString(R.string.fun),
        R.drawable.fun_logo,
        new DataType[] {
          DataType.FUN,
          DataType.SMALL_FUN,
          DataType.TENT_FUN,
          DataType.TOMBOLAN,
          DataType.SCENE,
          DataType.RADIO
        },
        true);
    adapter.add(
        getString(R.string.tent), R.drawable.tent_logo, new DataType[] {DataType.TENT_FUN}, false);
    adapter.add(
        getString(R.string.tombola),
        R.drawable.tombola_logo,
        new DataType[] {DataType.TOMBOLAN},
        false);
    adapter.add(
        getString(R.string.music),
        R.drawable.musik_logo,
        new DataType[] {DataType.SCENE, DataType.MUSIC},
        false);
    adapter.add(
        getString(R.string.help),
        R.drawable.help_logo,
        new DataType[] {DataType.POLICE, DataType.CARE},
        false);
    adapter.add(
        getString(R.string.wc), R.drawable.wc_logo, new DataType[] {DataType.TOILETS}, false);
    adapter.add(
        getString(R.string.entre),
        R.drawable.entrance_filter_icon,
        new DataType[] {DataType.ENTRANCE},
        true);
    adapter.add(
        getString(R.string.trash),
        R.drawable.soptunna_filter_icon,
        new DataType[] {DataType.TRASHCAN},
        false);
    adapter.setNotifyOnChange(true);
    adapter.notifyDataSetChanged();

    mRightMenuList.setAdapter(adapter);
    mRightMenuList.setOnItemClickListener(adapter);
    mRightMenuList.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);
  }