Offset 1, 98 lines modifiedOffset 1, 233 lines modified
1 .class·public·Lcom/android/car/ui/preference/CarUiRadioButtonPreference;1 .class·public·Lcom/android/car/ui/preference/CarUiRadioButtonPreference;
2 .super·Landroidx/preference/TwoStatePreference;2 .super·Landroidx/preference/TwoStatePreference;
3 .source·"CarUiRadioButtonPreference.java"3 .source·"CarUiRadioButtonPreference.java"
  
 4 #·interfaces
 5 .implements·Lcom/android/car/ui/preference/UxRestrictablePreference;
  
  
 6 #·instance·fields
 7 .field·private·mRestrictedClickListener:Ljava/util/function/Consumer;
 8 ····.annotation·system·Ldalvik/annotation/Signature;
 9 ········value·=·{
 10 ············"Ljava/util/function/Consumer<",
 11 ············"Landroidx/preference/Preference;",
 12 ············">;"
 13 ········}
 14 ····.end·annotation
 15 .end·field
  
 16 .field·private·mUxRestricted:Z
  
  
4 #·direct·methods17 #·direct·methods
5 .method·public·constructor·<init>(Landroid/content/Context;)V18 .method·public·constructor·<init>(Landroid/content/Context;)V
6 ····.locals·019 ····.locals·1
  
 20 ····const/4·v0,·0x0
7 ····.line·49 
8 ····invoke-direct·{p0,·p1},·Landroidx/preference/TwoStatePreference;-><init>(Landroid/content/Context;)V 
  
9 ····.line·5021 ····.line·60
10 ····invoke-direct·{p0},·Lcom/android/car/ui/preference/CarUiRadioButtonPreference;->init()V22 ····invoke-direct·{p0,·p1,·v0},·Lcom/android/car/ui/preference/CarUiRadioButtonPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
  
11 ····return-void23 ····return-void
12 .end·method24 .end·method
  
13 .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;)V25 .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
14 ····.locals·026 ····.locals·2
  
15 ····.line·4427 ····.line·55
16 ····invoke-direct·{p0,·p1,·p2},·Landroidx/preference/TwoStatePreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V28 ····sget·v0,·Lcom/android/car/ui/R$attr;->preferenceStyle:I
  
17 ····.line·45 
18 ····invoke-direct·{p0},·Lcom/android/car/ui/preference/CarUiRadioButtonPreference;->init()V29 ····const·v1,·0x101008e
  
 30 ····invoke-static·{p1,·v0,·v1},·Landroidx/core/content/res/TypedArrayUtils;->getAttr(Landroid/content/Context;II)I
  
 31 ····move-result·v0
  
 32 ····invoke-direct·{p0,·p1,·p2,·v0},·Lcom/android/car/ui/preference/CarUiRadioButtonPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
  
19 ····return-void33 ····return-void
20 .end·method34 .end·method
  
21 .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V35 .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
22 ····.locals·036 ····.locals·1
  
 37 ····const/4·v0,·0x0
23 ····.line·39 
24 ····invoke-direct·{p0,·p1,·p2,·p3},·Landroidx/preference/TwoStatePreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V 
  
25 ····.line·4038 ····.line·49
26 ····invoke-direct·{p0},·Lcom/android/car/ui/preference/CarUiRadioButtonPreference;->init()V39 ····invoke-direct·{p0,·p1,·p2,·p3,·v0},·Lcom/android/car/ui/preference/CarUiRadioButtonPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V
  
27 ····return-void40 ····return-void
28 .end·method41 .end·method
  
29 .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V42 .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V
30 ····.locals·043 ····.locals·0
  
31 ····.line·3444 ····.line·44
32 ····invoke-direct·{p0,·p1,·p2,·p3,·p4},·Landroidx/preference/TwoStatePreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V45 ····invoke-direct·{p0,·p1,·p2,·p3,·p4},·Landroidx/preference/TwoStatePreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V
  
 46 ····const/4·p1,·0x0
  
 47 ····.line·40
 48 ····iput-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiRadioButtonPreference;->mUxRestricted:Z
  
33 ····.line·3549 ····.line·45
34 ····invoke-direct·{p0},·Lcom/android/car/ui/preference/CarUiRadioButtonPreference;->init()V50 ····invoke-direct·{p0},·Lcom/android/car/ui/preference/CarUiRadioButtonPreference;->init()V
  
35 ····return-void51 ····return-void
36 .end·method52 .end·method
  
37 .method·private·init()V53 .method·private·init()V
38 ····.locals·154 ····.locals·1
  
39 ····.line·5455 ····.line·64
40 ····sget·v0,·Lcom/android/car/ui/R$layout;->car_ui_preference:I56 ····sget·v0,·Lcom/android/car/ui/R$layout;->car_ui_preference:I
  
41 ····invoke-virtual·{p0,·v0},·Landroidx/preference/Preference;->setLayoutResource(I)V57 ····invoke-virtual·{p0,·v0},·Landroidx/preference/Preference;->setLayoutResource(I)V
  
42 ····.line·5558 ····.line·65
43 ····sget·v0,·Lcom/android/car/ui/R$layout;->car_ui_radio_button_preference_widget:I59 ····sget·v0,·Lcom/android/car/ui/R$layout;->car_ui_radio_button_preference_widget:I
  
44 ····invoke-virtual·{p0,·v0},·Landroidx/preference/Preference;->setWidgetLayoutResource(I)V60 ····invoke-virtual·{p0,·v0},·Landroidx/preference/Preference;->setWidgetLayoutResource(I)V
  
45 ····return-void61 ····return-void
46 .end·method62 .end·method
  
  
47 #·virtual·methods63 #·virtual·methods
48 .method·public·onBindViewHolder(Landroidx/preference/PreferenceViewHolder;)V64 .method·public·getOnClickWhileRestrictedListener()Ljava/util/function/Consumer;
49 ····.locals·165 ····.locals·1
 66 ····.annotation·system·Ldalvik/annotation/Signature;
 67 ········value·=·{
 68 ············"()",
 69 ············"Ljava/util/function/Consumer<",
 70 ············"Landroidx/preference/Preference;",
 71 ············">;"
 72 ········}
 73 ····.end·annotation
  
 74 ····.line·112
 75 ····iget-object·v0,·p0,·Lcom/android/car/ui/preference/CarUiRadioButtonPreference;->mRestrictedClickListener:Ljava/util/function/Consumer;
  
 76 ····return-object·v0
 77 .end·method
  
 78 .method·public·isUxRestricted()Z
 79 ····.locals·1
  
50 ····.line·6080 ····.line·101
 81 ····iget-boolean·v0,·p0,·Lcom/android/car/ui/preference/CarUiRadioButtonPreference;->mUxRestricted:Z
  
 82 ····return·v0
 83 .end·method
  
 84 .method·public·onBindViewHolder(Landroidx/preference/PreferenceViewHolder;)V
 85 ····.locals·2
  
 86 ····.line·82
51 ····invoke-super·{p0,·p1},·Landroidx/preference/Preference;->onBindViewHolder(Landroidx/preference/PreferenceViewHolder;)V87 ····invoke-super·{p0,·p1},·Landroidx/preference/Preference;->onBindViewHolder(Landroidx/preference/PreferenceViewHolder;)V
  
52 ····.line·6288 ····.line·84
53 ····iget-object·p1,·p1,·Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;89 ····iget-object·v0,·p1,·Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
  
54 ····sget·v0,·Lcom/android/car/ui/R$id;->radio_button:I90 ····sget·v1,·Lcom/android/car/ui/R$id;->radio_button:I
  
55 ····invoke-static·{p1,·v0},·Lcom/android/car/ui/utils/CarUiUtils;->findViewByRefId(Landroid/view/View;I)Landroid/view/View;91 ····invoke-static·{v0,·v1},·Lcom/android/car/ui/utils/CarUiUtils;->findViewByRefId(Landroid/view/View;I)Landroid/view/View;
  
56 ····move-result-object·p192 ····move-result-object·v0
  
57 ····check-cast·p1,·Landroid/widget/RadioButton;93 ····check-cast·v0,·Landroid/widget/RadioButton;
  
58 ····.line·6494 ····.line·86
59 ····invoke-virtual·{p0},·Landroidx/preference/TwoStatePreference;->isChecked()Z95 ····invoke-virtual·{p0},·Landroidx/preference/TwoStatePreference;->isChecked()Z
  
 96 ····move-result·v1
  
 97 ····invoke-virtual·{v0,·v1},·Landroid/widget/RadioButton;->setChecked(Z)V
  
 98 ····.line·88
 99 ····iget-object·p1,·p1,·Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
  
 100 ····iget-boolean·v0,·p0,·Lcom/android/car/ui/preference/CarUiRadioButtonPreference;->mUxRestricted:Z
  
 101 ····invoke-static·{p1,·v0},·Lcom/android/car/ui/utils/ViewUtils;->makeAllViewsUxRestricted(Landroid/view/View;Z)V
  
 102 ····return-void
 103 .end·method
  
 104 .method·public·performClick()V
 105 ····.locals·1
  
 106 ····.line·71
 107 ····invoke-virtual·{p0},·Landroidx/preference/Preference;->isEnabled()Z
  
 108 ····move-result·v0
  
 109 ····if-nez·v0,·:cond_0
  
 110 ····invoke-virtual·{p0},·Landroidx/preference/Preference;->isSelectable()Z
  
 111 ····move-result·v0
  
 112 ····if-eqz·v0,·:cond_1
  
 113 ····:cond_0
 114 ····invoke-virtual·{p0},·Lcom/android/car/ui/preference/CarUiRadioButtonPreference;->isUxRestricted()Z
  
60 ····move-result·v0115 ····move-result·v0
  
61 ····invoke-virtual·{p1,·v0},·Landroid/widget/RadioButton;->setChecked(Z)V116 ····if-eqz·v0,·:cond_1
  
 117 ····.line·72
 118 ····iget-object·v0,·p0,·Lcom/android/car/ui/preference/CarUiRadioButtonPreference;->mRestrictedClickListener:Ljava/util/function/Consumer;
  
 119 ····if-eqz·v0,·:cond_2
  
 120 ····.line·73
 121 ····invoke-interface·{v0,·p0},·Ljava/util/function/Consumer;->accept(Ljava/lang/Object;)V
  
 122 ····goto·:goto_0
  
 123 ····.line·76
 124 ····:cond_1
 125 ····invoke-super·{p0},·Landroidx/preference/Preference;->performClick()V
  
 126 ····:cond_2
 127 ····:goto_0
 128 ····return-void
 129 .end·method
  
 130 .method·public·setOnClickWhileRestrictedListener(Ljava/util/function/Consumer;)V
 131 ····.locals·0
 132 ····.annotation·system·Ldalvik/annotation/Signature;
 133 ········value·=·{
 134 ············"(",
 135 ············"Ljava/util/function/Consumer<",
 136 ············"Landroidx/preference/Preference;",
 137 ············">;)V"
 138 ········}
 139 ····.end·annotation
  
 140 ····.line·106
 141 ····iput-object·p1,·p0,·Lcom/android/car/ui/preference/CarUiRadioButtonPreference;->mRestrictedClickListener:Ljava/util/function/Consumer;
  
 142 ····return-void
 143 .end·method
  
 144 .method·public·setUxRestricted(Z)V
 145 ····.locals·1
  
 146 ····.line·93
 147 ····iget-boolean·v0,·p0,·Lcom/android/car/ui/preference/CarUiRadioButtonPreference;->mUxRestricted:Z
  
 148 ····if-eq·p1,·v0,·:cond_0
  
 149 ····.line·94
 150 ····iput-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiRadioButtonPreference;->mUxRestricted:Z
  
 151 ····.line·95
 152 ····invoke-virtual·{p0},·Landroidx/preference/Preference;->notifyChanged()V
  
 153 ····:cond_0
62 ····return-void154 ····return-void
63 .end·method155 .end·method