AlertDialog.java
27.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
package android.support.v7.app;
import android.content.Context;
import android.content.DialogInterface;
import android.content.DialogInterface.OnCancelListener;
import android.content.DialogInterface.OnClickListener;
import android.content.DialogInterface.OnDismissListener;
import android.content.DialogInterface.OnKeyListener;
import android.content.DialogInterface.OnMultiChoiceClickListener;
import android.content.res.Resources;
import android.content.res.Resources.Theme;
import android.database.Cursor;
import android.graphics.drawable.Drawable;
import android.os.Build.VERSION;
import android.os.Bundle;
import android.os.Message;
import android.support.annotation.ArrayRes;
import android.support.annotation.AttrRes;
import android.support.annotation.DrawableRes;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.annotation.RestrictTo;
import android.support.annotation.StringRes;
import android.support.annotation.StyleRes;
import android.support.v4.view.ViewCompat;
import android.support.v4.widget.NestedScrollView;
import android.support.v7.appcompat.R.attr;
import android.support.v7.appcompat.R.id;
import android.text.TextUtils;
import android.util.TypedValue;
import android.view.ContextThemeWrapper;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;
import android.view.Window;
import android.widget.AdapterView.OnItemSelectedListener;
import android.widget.Button;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayout.LayoutParams;
import android.widget.ListAdapter;
import android.widget.ListView;
import android.widget.TextView;
public class AlertDialog
extends AppCompatDialog
implements DialogInterface
{
final AlertController a = new AlertController(getContext(), this, getWindow());
protected AlertDialog(@NonNull Context paramContext)
{
this(paramContext, 0);
}
protected AlertDialog(@NonNull Context paramContext, @StyleRes int paramInt)
{
super(paramContext, a(paramContext, paramInt));
}
protected AlertDialog(@NonNull Context paramContext, boolean paramBoolean, @Nullable DialogInterface.OnCancelListener paramOnCancelListener)
{
this(paramContext, 0);
setCancelable(paramBoolean);
setOnCancelListener(paramOnCancelListener);
}
static int a(@NonNull Context paramContext, @StyleRes int paramInt)
{
if (paramInt >= 16777216) {
return paramInt;
}
TypedValue localTypedValue = new TypedValue();
paramContext.getTheme().resolveAttribute(R.attr.alertDialogTheme, localTypedValue, true);
return localTypedValue.resourceId;
}
public Button getButton(int paramInt)
{
AlertController localAlertController = this.a;
switch (paramInt)
{
default:
return null;
case -1:
return localAlertController.n;
case -2:
return localAlertController.q;
}
return localAlertController.t;
}
public ListView getListView()
{
return this.a.f;
}
protected void onCreate(Bundle paramBundle)
{
super.onCreate(paramBundle);
AlertController localAlertController = this.a;
int i;
Object localObject4;
Object localObject3;
Object localObject2;
Object localObject1;
label108:
label114:
label225:
label360:
label410:
label459:
label508:
int j;
label549:
label566:
label572:
label631:
label648:
boolean bool1;
label666:
boolean bool2;
if ((localAlertController.G != 0) && (localAlertController.M == 1))
{
i = localAlertController.G;
localAlertController.b.setContentView(i);
paramBundle = localAlertController.c.findViewById(R.id.parentPanel);
localObject4 = paramBundle.findViewById(R.id.topPanel);
localObject3 = paramBundle.findViewById(R.id.contentPanel);
localObject2 = paramBundle.findViewById(R.id.buttonPanel);
localObject1 = (ViewGroup)paramBundle.findViewById(R.id.customPanel);
if (localAlertController.g == null) {
break label971;
}
paramBundle = localAlertController.g;
if (paramBundle == null) {
break label1007;
}
i = 1;
if ((i == 0) || (!AlertController.a(paramBundle))) {
localAlertController.c.setFlags(131072, 131072);
}
if (i == 0) {
break label1012;
}
Object localObject5 = (FrameLayout)localAlertController.c.findViewById(R.id.custom);
((FrameLayout)localObject5).addView(paramBundle, new ViewGroup.LayoutParams(-1, -1));
if (localAlertController.m) {
((FrameLayout)localObject5).setPadding(localAlertController.i, localAlertController.j, localAlertController.k, localAlertController.l);
}
if (localAlertController.f != null) {
((LinearLayout.LayoutParams)((ViewGroup)localObject1).getLayoutParams()).weight = 0.0F;
}
View localView = ((ViewGroup)localObject1).findViewById(R.id.topPanel);
localObject5 = ((ViewGroup)localObject1).findViewById(R.id.contentPanel);
paramBundle = ((ViewGroup)localObject1).findViewById(R.id.buttonPanel);
localObject4 = AlertController.a(localView, (View)localObject4);
localObject3 = AlertController.a((View)localObject5, (View)localObject3);
paramBundle = AlertController.a(paramBundle, (View)localObject2);
localAlertController.w = ((NestedScrollView)localAlertController.c.findViewById(R.id.scrollView));
localAlertController.w.setFocusable(false);
localAlertController.w.setNestedScrollingEnabled(false);
localAlertController.B = ((TextView)((ViewGroup)localObject3).findViewById(16908299));
if (localAlertController.B != null)
{
if (localAlertController.e == null) {
break label1022;
}
localAlertController.B.setText(localAlertController.e);
}
i = 0;
localAlertController.n = ((Button)paramBundle.findViewById(16908313));
localAlertController.n.setOnClickListener(localAlertController.O);
if (!TextUtils.isEmpty(localAlertController.o)) {
break label1116;
}
localAlertController.n.setVisibility(8);
localAlertController.q = ((Button)paramBundle.findViewById(16908314));
localAlertController.q.setOnClickListener(localAlertController.O);
if (!TextUtils.isEmpty(localAlertController.r)) {
break label1143;
}
localAlertController.q.setVisibility(8);
localAlertController.t = ((Button)paramBundle.findViewById(16908315));
localAlertController.t.setOnClickListener(localAlertController.O);
if (!TextUtils.isEmpty(localAlertController.u)) {
break label1172;
}
localAlertController.t.setVisibility(8);
localObject2 = localAlertController.a;
localObject5 = new TypedValue();
((Context)localObject2).getTheme().resolveAttribute(R.attr.alertDialogCenterButtons, (TypedValue)localObject5, true);
if (((TypedValue)localObject5).data == 0) {
break label1201;
}
j = 1;
if (j != 0)
{
if (i != 1) {
break label1206;
}
AlertController.a(localAlertController.n);
}
if (i == 0) {
break label1238;
}
i = 1;
if (i == 0) {
paramBundle.setVisibility(8);
}
if (localAlertController.C == null) {
break label1243;
}
localObject2 = new ViewGroup.LayoutParams(-1, -2);
((ViewGroup)localObject4).addView(localAlertController.C, 0, (ViewGroup.LayoutParams)localObject2);
localAlertController.c.findViewById(R.id.title_template).setVisibility(8);
if ((localObject1 == null) || (((ViewGroup)localObject1).getVisibility() == 8)) {
break label1461;
}
i = 1;
if ((localObject4 == null) || (((ViewGroup)localObject4).getVisibility() == 8)) {
break label1466;
}
bool1 = true;
if ((paramBundle == null) || (paramBundle.getVisibility() == 8)) {
break label1472;
}
bool2 = true;
label682:
if ((!bool2) && (localObject3 != null))
{
paramBundle = ((ViewGroup)localObject3).findViewById(R.id.textSpacerNoButtons);
if (paramBundle != null) {
paramBundle.setVisibility(0);
}
}
if (!bool1) {
break label1478;
}
if (localAlertController.w != null) {
localAlertController.w.setClipToPadding(true);
}
localObject1 = null;
if ((localAlertController.e == null) && (localAlertController.f == null))
{
paramBundle = (Bundle)localObject1;
if (i == 0) {}
}
else
{
paramBundle = (Bundle)localObject1;
if (i == 0) {
paramBundle = ((ViewGroup)localObject4).findViewById(R.id.titleDividerNoCustom);
}
}
if (paramBundle != null) {
paramBundle.setVisibility(0);
}
label783:
if ((localAlertController.f instanceof AlertController.RecycleListView)) {
((AlertController.RecycleListView)localAlertController.f).setHasDecor(bool1, bool2);
}
if (i == 0)
{
if (localAlertController.f == null) {
break label1504;
}
paramBundle = localAlertController.f;
label827:
if (paramBundle != null)
{
if (!bool1) {
break label1513;
}
i = 1;
label838:
if (!bool2) {
break label1518;
}
j = 2;
label845:
i |= j;
localObject1 = localAlertController.c.findViewById(R.id.scrollIndicatorUp);
localObject2 = localAlertController.c.findViewById(R.id.scrollIndicatorDown);
if (Build.VERSION.SDK_INT < 23) {
break label1523;
}
ViewCompat.setScrollIndicators(paramBundle, i, 3);
if (localObject1 != null) {
((ViewGroup)localObject3).removeView((View)localObject1);
}
if (localObject2 != null) {
((ViewGroup)localObject3).removeView((View)localObject2);
}
}
}
}
for (;;)
{
paramBundle = localAlertController.f;
if ((paramBundle != null) && (localAlertController.D != null))
{
paramBundle.setAdapter(localAlertController.D);
i = localAlertController.E;
if (i >= 0)
{
paramBundle.setItemChecked(i, true);
paramBundle.setSelection(i);
}
}
return;
i = localAlertController.F;
break;
label971:
if (localAlertController.h != 0)
{
paramBundle = LayoutInflater.from(localAlertController.a).inflate(localAlertController.h, (ViewGroup)localObject1, false);
break label108;
}
paramBundle = null;
break label108;
label1007:
i = 0;
break label114;
label1012:
((ViewGroup)localObject1).setVisibility(8);
break label225;
label1022:
localAlertController.B.setVisibility(8);
localAlertController.w.removeView(localAlertController.B);
if (localAlertController.f != null)
{
localObject2 = (ViewGroup)localAlertController.w.getParent();
i = ((ViewGroup)localObject2).indexOfChild(localAlertController.w);
((ViewGroup)localObject2).removeViewAt(i);
((ViewGroup)localObject2).addView(localAlertController.f, i, new ViewGroup.LayoutParams(-1, -1));
break label360;
}
((ViewGroup)localObject3).setVisibility(8);
break label360;
label1116:
localAlertController.n.setText(localAlertController.o);
localAlertController.n.setVisibility(0);
i = 1;
break label410;
label1143:
localAlertController.q.setText(localAlertController.r);
localAlertController.q.setVisibility(0);
i |= 0x2;
break label459;
label1172:
localAlertController.t.setText(localAlertController.u);
localAlertController.t.setVisibility(0);
i |= 0x4;
break label508;
label1201:
j = 0;
break label549;
label1206:
if (i == 2)
{
AlertController.a(localAlertController.q);
break label566;
}
if (i != 4) {
break label566;
}
AlertController.a(localAlertController.t);
break label566;
label1238:
i = 0;
break label572;
label1243:
localAlertController.z = ((ImageView)localAlertController.c.findViewById(16908294));
if (!TextUtils.isEmpty(localAlertController.d)) {
i = 1;
}
for (;;)
{
if ((i != 0) && (localAlertController.L))
{
localAlertController.A = ((TextView)localAlertController.c.findViewById(R.id.alertTitle));
localAlertController.A.setText(localAlertController.d);
if (localAlertController.x != 0)
{
localAlertController.z.setImageResource(localAlertController.x);
break;
i = 0;
continue;
}
if (localAlertController.y != null)
{
localAlertController.z.setImageDrawable(localAlertController.y);
break;
}
localAlertController.A.setPadding(localAlertController.z.getPaddingLeft(), localAlertController.z.getPaddingTop(), localAlertController.z.getPaddingRight(), localAlertController.z.getPaddingBottom());
localAlertController.z.setVisibility(8);
break;
}
}
localAlertController.c.findViewById(R.id.title_template).setVisibility(8);
localAlertController.z.setVisibility(8);
((ViewGroup)localObject4).setVisibility(8);
break label631;
label1461:
i = 0;
break label648;
label1466:
bool1 = false;
break label666;
label1472:
bool2 = false;
break label682;
label1478:
if (localObject3 == null) {
break label783;
}
paramBundle = ((ViewGroup)localObject3).findViewById(R.id.textSpacerNoTitle);
if (paramBundle == null) {
break label783;
}
paramBundle.setVisibility(0);
break label783;
label1504:
paramBundle = localAlertController.w;
break label827;
label1513:
i = 0;
break label838;
label1518:
j = 0;
break label845;
label1523:
paramBundle = (Bundle)localObject1;
if (localObject1 != null)
{
paramBundle = (Bundle)localObject1;
if ((i & 0x1) == 0)
{
((ViewGroup)localObject3).removeView((View)localObject1);
paramBundle = null;
}
}
localObject1 = localObject2;
if (localObject2 != null)
{
localObject1 = localObject2;
if ((i & 0x2) == 0)
{
((ViewGroup)localObject3).removeView((View)localObject2);
localObject1 = null;
}
}
if ((paramBundle != null) || (localObject1 != null)) {
if (localAlertController.e != null)
{
localAlertController.w.setOnScrollChangeListener(new AlertController.2(localAlertController, paramBundle, (View)localObject1));
localAlertController.w.post(new AlertController.3(localAlertController, paramBundle, (View)localObject1));
}
else if (localAlertController.f != null)
{
localAlertController.f.setOnScrollListener(new AlertController.4(localAlertController, paramBundle, (View)localObject1));
localAlertController.f.post(new AlertController.5(localAlertController, paramBundle, (View)localObject1));
}
else
{
if (paramBundle != null) {
((ViewGroup)localObject3).removeView(paramBundle);
}
if (localObject1 != null) {
((ViewGroup)localObject3).removeView((View)localObject1);
}
}
}
}
}
public boolean onKeyDown(int paramInt, KeyEvent paramKeyEvent)
{
AlertController localAlertController = this.a;
if ((localAlertController.w != null) && (localAlertController.w.executeKeyEvent(paramKeyEvent))) {}
for (int i = 1; i != 0; i = 0) {
return true;
}
return super.onKeyDown(paramInt, paramKeyEvent);
}
public boolean onKeyUp(int paramInt, KeyEvent paramKeyEvent)
{
AlertController localAlertController = this.a;
if ((localAlertController.w != null) && (localAlertController.w.executeKeyEvent(paramKeyEvent))) {}
for (int i = 1; i != 0; i = 0) {
return true;
}
return super.onKeyUp(paramInt, paramKeyEvent);
}
public void setButton(int paramInt, CharSequence paramCharSequence, DialogInterface.OnClickListener paramOnClickListener)
{
this.a.a(paramInt, paramCharSequence, paramOnClickListener, null);
}
public void setButton(int paramInt, CharSequence paramCharSequence, Message paramMessage)
{
this.a.a(paramInt, paramCharSequence, null, paramMessage);
}
public void setCustomTitle(View paramView)
{
this.a.C = paramView;
}
public void setIcon(int paramInt)
{
this.a.a(paramInt);
}
public void setIcon(Drawable paramDrawable)
{
this.a.a(paramDrawable);
}
public void setIconAttribute(int paramInt)
{
TypedValue localTypedValue = new TypedValue();
getContext().getTheme().resolveAttribute(paramInt, localTypedValue, true);
this.a.a(localTypedValue.resourceId);
}
public void setMessage(CharSequence paramCharSequence)
{
this.a.b(paramCharSequence);
}
public void setTitle(CharSequence paramCharSequence)
{
super.setTitle(paramCharSequence);
this.a.a(paramCharSequence);
}
public void setView(View paramView)
{
this.a.b(paramView);
}
public void setView(View paramView, int paramInt1, int paramInt2, int paramInt3, int paramInt4)
{
this.a.a(paramView, paramInt1, paramInt2, paramInt3, paramInt4);
}
public static class Builder
{
private final AlertController.AlertParams a;
private final int b;
public Builder(@NonNull Context paramContext)
{
this(paramContext, AlertDialog.a(paramContext, 0));
}
public Builder(@NonNull Context paramContext, @StyleRes int paramInt)
{
this.a = new AlertController.AlertParams(new ContextThemeWrapper(paramContext, AlertDialog.a(paramContext, paramInt)));
this.b = paramInt;
}
public AlertDialog create()
{
AlertDialog localAlertDialog = new AlertDialog(this.a.mContext, this.b);
this.a.apply(localAlertDialog.a);
localAlertDialog.setCancelable(this.a.mCancelable);
if (this.a.mCancelable) {
localAlertDialog.setCanceledOnTouchOutside(true);
}
localAlertDialog.setOnCancelListener(this.a.mOnCancelListener);
localAlertDialog.setOnDismissListener(this.a.mOnDismissListener);
if (this.a.mOnKeyListener != null) {
localAlertDialog.setOnKeyListener(this.a.mOnKeyListener);
}
return localAlertDialog;
}
@NonNull
public Context getContext()
{
return this.a.mContext;
}
public Builder setAdapter(ListAdapter paramListAdapter, DialogInterface.OnClickListener paramOnClickListener)
{
this.a.mAdapter = paramListAdapter;
this.a.mOnClickListener = paramOnClickListener;
return this;
}
public Builder setCancelable(boolean paramBoolean)
{
this.a.mCancelable = paramBoolean;
return this;
}
public Builder setCursor(Cursor paramCursor, DialogInterface.OnClickListener paramOnClickListener, String paramString)
{
this.a.mCursor = paramCursor;
this.a.mLabelColumn = paramString;
this.a.mOnClickListener = paramOnClickListener;
return this;
}
public Builder setCustomTitle(@Nullable View paramView)
{
this.a.mCustomTitleView = paramView;
return this;
}
public Builder setIcon(@DrawableRes int paramInt)
{
this.a.mIconId = paramInt;
return this;
}
public Builder setIcon(@Nullable Drawable paramDrawable)
{
this.a.mIcon = paramDrawable;
return this;
}
public Builder setIconAttribute(@AttrRes int paramInt)
{
TypedValue localTypedValue = new TypedValue();
this.a.mContext.getTheme().resolveAttribute(paramInt, localTypedValue, true);
this.a.mIconId = localTypedValue.resourceId;
return this;
}
@Deprecated
public Builder setInverseBackgroundForced(boolean paramBoolean)
{
this.a.mForceInverseBackground = paramBoolean;
return this;
}
public Builder setItems(@ArrayRes int paramInt, DialogInterface.OnClickListener paramOnClickListener)
{
this.a.mItems = this.a.mContext.getResources().getTextArray(paramInt);
this.a.mOnClickListener = paramOnClickListener;
return this;
}
public Builder setItems(CharSequence[] paramArrayOfCharSequence, DialogInterface.OnClickListener paramOnClickListener)
{
this.a.mItems = paramArrayOfCharSequence;
this.a.mOnClickListener = paramOnClickListener;
return this;
}
public Builder setMessage(@StringRes int paramInt)
{
this.a.mMessage = this.a.mContext.getText(paramInt);
return this;
}
public Builder setMessage(@Nullable CharSequence paramCharSequence)
{
this.a.mMessage = paramCharSequence;
return this;
}
public Builder setMultiChoiceItems(@ArrayRes int paramInt, boolean[] paramArrayOfBoolean, DialogInterface.OnMultiChoiceClickListener paramOnMultiChoiceClickListener)
{
this.a.mItems = this.a.mContext.getResources().getTextArray(paramInt);
this.a.mOnCheckboxClickListener = paramOnMultiChoiceClickListener;
this.a.mCheckedItems = paramArrayOfBoolean;
this.a.mIsMultiChoice = true;
return this;
}
public Builder setMultiChoiceItems(Cursor paramCursor, String paramString1, String paramString2, DialogInterface.OnMultiChoiceClickListener paramOnMultiChoiceClickListener)
{
this.a.mCursor = paramCursor;
this.a.mOnCheckboxClickListener = paramOnMultiChoiceClickListener;
this.a.mIsCheckedColumn = paramString1;
this.a.mLabelColumn = paramString2;
this.a.mIsMultiChoice = true;
return this;
}
public Builder setMultiChoiceItems(CharSequence[] paramArrayOfCharSequence, boolean[] paramArrayOfBoolean, DialogInterface.OnMultiChoiceClickListener paramOnMultiChoiceClickListener)
{
this.a.mItems = paramArrayOfCharSequence;
this.a.mOnCheckboxClickListener = paramOnMultiChoiceClickListener;
this.a.mCheckedItems = paramArrayOfBoolean;
this.a.mIsMultiChoice = true;
return this;
}
public Builder setNegativeButton(@StringRes int paramInt, DialogInterface.OnClickListener paramOnClickListener)
{
this.a.mNegativeButtonText = this.a.mContext.getText(paramInt);
this.a.mNegativeButtonListener = paramOnClickListener;
return this;
}
public Builder setNegativeButton(CharSequence paramCharSequence, DialogInterface.OnClickListener paramOnClickListener)
{
this.a.mNegativeButtonText = paramCharSequence;
this.a.mNegativeButtonListener = paramOnClickListener;
return this;
}
public Builder setNeutralButton(@StringRes int paramInt, DialogInterface.OnClickListener paramOnClickListener)
{
this.a.mNeutralButtonText = this.a.mContext.getText(paramInt);
this.a.mNeutralButtonListener = paramOnClickListener;
return this;
}
public Builder setNeutralButton(CharSequence paramCharSequence, DialogInterface.OnClickListener paramOnClickListener)
{
this.a.mNeutralButtonText = paramCharSequence;
this.a.mNeutralButtonListener = paramOnClickListener;
return this;
}
public Builder setOnCancelListener(DialogInterface.OnCancelListener paramOnCancelListener)
{
this.a.mOnCancelListener = paramOnCancelListener;
return this;
}
public Builder setOnDismissListener(DialogInterface.OnDismissListener paramOnDismissListener)
{
this.a.mOnDismissListener = paramOnDismissListener;
return this;
}
public Builder setOnItemSelectedListener(AdapterView.OnItemSelectedListener paramOnItemSelectedListener)
{
this.a.mOnItemSelectedListener = paramOnItemSelectedListener;
return this;
}
public Builder setOnKeyListener(DialogInterface.OnKeyListener paramOnKeyListener)
{
this.a.mOnKeyListener = paramOnKeyListener;
return this;
}
public Builder setPositiveButton(@StringRes int paramInt, DialogInterface.OnClickListener paramOnClickListener)
{
this.a.mPositiveButtonText = this.a.mContext.getText(paramInt);
this.a.mPositiveButtonListener = paramOnClickListener;
return this;
}
public Builder setPositiveButton(CharSequence paramCharSequence, DialogInterface.OnClickListener paramOnClickListener)
{
this.a.mPositiveButtonText = paramCharSequence;
this.a.mPositiveButtonListener = paramOnClickListener;
return this;
}
@RestrictTo({android.support.annotation.RestrictTo.Scope.LIBRARY_GROUP})
public Builder setRecycleOnMeasureEnabled(boolean paramBoolean)
{
this.a.mRecycleOnMeasure = paramBoolean;
return this;
}
public Builder setSingleChoiceItems(@ArrayRes int paramInt1, int paramInt2, DialogInterface.OnClickListener paramOnClickListener)
{
this.a.mItems = this.a.mContext.getResources().getTextArray(paramInt1);
this.a.mOnClickListener = paramOnClickListener;
this.a.mCheckedItem = paramInt2;
this.a.mIsSingleChoice = true;
return this;
}
public Builder setSingleChoiceItems(Cursor paramCursor, int paramInt, String paramString, DialogInterface.OnClickListener paramOnClickListener)
{
this.a.mCursor = paramCursor;
this.a.mOnClickListener = paramOnClickListener;
this.a.mCheckedItem = paramInt;
this.a.mLabelColumn = paramString;
this.a.mIsSingleChoice = true;
return this;
}
public Builder setSingleChoiceItems(ListAdapter paramListAdapter, int paramInt, DialogInterface.OnClickListener paramOnClickListener)
{
this.a.mAdapter = paramListAdapter;
this.a.mOnClickListener = paramOnClickListener;
this.a.mCheckedItem = paramInt;
this.a.mIsSingleChoice = true;
return this;
}
public Builder setSingleChoiceItems(CharSequence[] paramArrayOfCharSequence, int paramInt, DialogInterface.OnClickListener paramOnClickListener)
{
this.a.mItems = paramArrayOfCharSequence;
this.a.mOnClickListener = paramOnClickListener;
this.a.mCheckedItem = paramInt;
this.a.mIsSingleChoice = true;
return this;
}
public Builder setTitle(@StringRes int paramInt)
{
this.a.mTitle = this.a.mContext.getText(paramInt);
return this;
}
public Builder setTitle(@Nullable CharSequence paramCharSequence)
{
this.a.mTitle = paramCharSequence;
return this;
}
public Builder setView(int paramInt)
{
this.a.mView = null;
this.a.mViewLayoutResId = paramInt;
this.a.mViewSpacingSpecified = false;
return this;
}
public Builder setView(View paramView)
{
this.a.mView = paramView;
this.a.mViewLayoutResId = 0;
this.a.mViewSpacingSpecified = false;
return this;
}
@Deprecated
@RestrictTo({android.support.annotation.RestrictTo.Scope.LIBRARY_GROUP})
public Builder setView(View paramView, int paramInt1, int paramInt2, int paramInt3, int paramInt4)
{
this.a.mView = paramView;
this.a.mViewLayoutResId = 0;
this.a.mViewSpacingSpecified = true;
this.a.mViewSpacingLeft = paramInt1;
this.a.mViewSpacingTop = paramInt2;
this.a.mViewSpacingRight = paramInt3;
this.a.mViewSpacingBottom = paramInt4;
return this;
}
public AlertDialog show()
{
AlertDialog localAlertDialog = create();
localAlertDialog.show();
return localAlertDialog;
}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/android/support/v7/app/AlertDialog.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/