@Override
  public void onViewCreated(View view, Bundle savedInstanceState) {
    super.onViewCreated(view, savedInstanceState);

    setEmptyText(getString(R.string.msg_orbot_not_installed));
    checkTor();
  }
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    setHasOptionsMenu(true);
    orbot = OrbotInitializer.get(getActivity());
  }
  @Override
  public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
    super.onCreateOptionsMenu(menu, inflater);

    inflater.inflate(R.menu.actions, menu);
    orbotItem = menu.findItem(R.id.orbot);
    orbotItem.setVisible(!orbot.isInstalled());
  }