Code example for DialogFragment

Methods: getDialogonStart

0
         } else { 
            var1 = 1;
         } 
      } 
 
      ((AlertDialog)this.getDialog()).getButton(-1).setEnabled((boolean)var1);
   } 
 
   public Dialog onCreateDialog(Bundle var1) {
      FragmentActivity var2 = this.getActivity();
      Bundle var3 = this.getArguments();
      int var4 = var3.getInt("review_mode");
      this.mReviewMode = var4;
      String var5 = var3.getString("doc_id");
      Bundle var6;
      if(var1 != null) {
         var6 = var1;
      } else { 
         var6 = var3;
      } 
 
      int var7 = var6.getInt("previous_rating", 0);
      String var8 = var6.getString("previous_title");
      String var9 = var6.getString("previous_comment");
      ReviewDialog.ReviewAlertDialog var10 = new ReviewDialog.ReviewAlertDialog(var2);
      View var11 = ((LayoutInflater)var2.getSystemService("layout_inflater")).inflate(2130968700, (ViewGroup)null);
      RatingBar var12 = (RatingBar)var11.findViewById(2131755295);
      this.mRatingBar = var12;
      TextView var13 = (TextView)var11.findViewById(2131755296);
      EditText var14 = (EditText)var11.findViewById(2131755297);
      this.mTitleView = var14;
      EditText var15 = (EditText)var11.findViewById(2131755298);
      this.mCommentView = var15;
      RatingBar var16 = this.mRatingBar;
      float var17 = (float)var7;
      var16.setRating(var17);
      if(this.mReviewMode == 1) {
         this.mTitleView.setVisibility(8);
         this.mCommentView.setVisibility(8);
      } else { 
         this.mTitleView.setText(var8);
         this.mCommentView.setText(var9);
      } 
 
      var10.setIcon(17301619); 
      var10.setTitle(2131230991); 
      var10.setView(var11);
      this.setCancelable((boolean)1);
      ReviewDialog.1 var18 = new ReviewDialog.1(); 
      this.mTitleView.addTextChangedListener(var18);
      this.mCommentView.addTextChangedListener(var18);
      String var19 = var2.getString(17039370);
      ReviewDialog.2 var20 = new ReviewDialog.2(var5);
      var10.setButton(-1, var19, var20);
      String var21 = var2.getString(17039360);
      ReviewDialog.3 var22 = new ReviewDialog.3(); 
      var10.setButton(-1, var21, var22);
      RatingBar var23 = this.mRatingBar;
      ReviewDialog.4 var24 = new ReviewDialog.4(var13);
      var23.setOnRatingBarChangeListener(var24);
      return var10; 
   } 
 
   public void onSaveInstanceState(Bundle var1) {
      int var2 = this.getUserRating();
      var1.putInt("previous_rating", var2);
      String var3 = this.getUserTitle();
      var1.putString("previous_title", var3);
      String var4 = this.getUserComment();
      var1.putString("previous_comment", var4);
   } 
 
   public void onStart() { 
      super.onStart(); 
      this.syncOkButtonState();
   } 
 
   class 4 implements OnRatingBarChangeListener { 
 
Connect your IDE to all the code out there  Get Codota for Java