title: Should an internal DialogFragment class be static or not?
body: <p>This is a snippet of code from my project that I am using to learn Android:</p>
  
  <pre><code>private void enableLocationSettings() {
      Intent settingsIntent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);
      startActivity(settingsIntent);
  }
  
  @SuppressLint("ValidFragment")
  public class EnableGpsDialogFragment extends DialogFragment {
  
      @Override
      public Dialog onCreateDialog(Bundle savedInstanceState) {
          return new AlertDialog.Builder(getActivity())
              .setTitle("Tytuł")
              .setMessage("wiadomosc")
              .setPositiveButton("odpal", new DialogInterface.OnClickListener() {
  
                  @Override
                  public void onClick(DialogInterface dialog, int which) {
                      enableLocationSettings();
                  }
  
              })
              .create();
      }
  } 
  </code></pre>
  
  <p>As you can see I must add <code>@SuppressLint</code> to make my app work but on the <a href="http://developer.android.com/guide/topics/ui/dialogs.html">guide</a> this annotation wasn't necessary.</p>
  
  <p>What am I doing wrong?</p>
  
  <p>Here are my imports:</p>
  
  <pre><code>import android.annotation.SuppressLint;
  import android.app.Activity;
  import android.app.AlertDialog;
  import android.app.Dialog;
  import android.content.Context;
  import android.content.DialogInterface;
  import android.content.Intent;
  import android.location.LocationManager;
  import android.os.Bundle;
  import android.os.Handler;
  import android.os.Message;
  import android.provider.Settings;
  import android.support.v4.app.FragmentActivity;
  import android.support.v4.app.FragmentManager;
  import android.support.v4.app.DialogFragment;
  import android.view.Menu;
  import android.view.View;
  import android.widget.TextView;
  import android.widget.ToggleButton;
  </code></pre>