title: The Activity's LayoutInflater already has a Factory installed so we can not install AppCompat's
body: <p>I'm using AppCompat library (com.android.support:appcompat-v7:22.1.0) in my app. I created an ActionBar in a fragment. When I click in a menu item it shows an Alert Dialog. Here is my code:</p>
  
  <pre><code>@Override
  public boolean onOptionsItemSelected(MenuItem item) {
      // Handle item selection
      switch (item.getItemId()) {
          case R.id.action_new:
              showFilterDialog();
              return true;
          case R.id.action_send:
              new sendInventoryTask().execute();
              return true;           
          default:
              return super.onOptionsItemSelected(item);
      }
  }
  </code></pre>
  
  <p>And my showInventoryDialog method:</p>
  
  <pre><code>private void showFilterInventoryDialog() {
      AlertDialog.Builder alert = new AlertDialog.Builder(getActivity());
  
      LayoutInflater inflater= getActivity().getLayoutInflater();
  
      View v = inflater.inflate(R.layout.dialog_filter_inventory,null);
      alert.setView(v);
      alert.setTitle(getResources().getString(R.string.filters));
      alert.setPositiveButton(getResources().getString(R.string.filter), new DialogInterface.OnClickListener() {
          public void onClick(DialogInterface dialog, int id) {
              // TODO
          }
  
      });
  
      alert.setNegativeButton(getResources().getString(R.string.cancel), null);
      alert.show();
  }
  </code></pre>
  
  <p>Everything works fine, but when I click on menu item, the logcat shows me an error:</p>
  
  <blockquote>
    <p>I/AppCompatDelegate﹕ The Activity's LayoutInflater already has a Factory installed so we can not install AppCompat's</p>
  </blockquote>
  
  <p>How to solve this?</p>