Offset 1, 75 lines modifiedOffset 1, 124 lines modified
1 .class·public·Lcom/android/car/ui/preference/CarUiDropDownPreference;1 .class·public·Lcom/android/car/ui/preference/CarUiDropDownPreference;
2 .super·Landroidx/preference/DropDownPreference;2 .super·Landroidx/preference/DropDownPreference;
3 .source·"CarUiDropDownPreference.java"3 .source·"CarUiDropDownPreference.java"
  
 4 #·interfaces
 5 .implements·Lcom/android/car/ui/preference/UxRestrictablePreference;
  
  
4 #·instance·fields6 #·instance·fields
5 .field·private·final·mContext:Landroid/content/Context;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
  
  
6 #·direct·methods17 #·direct·methods
7 .method·public·constructor·<init>(Landroid/content/Context;)V18 .method·public·constructor·<init>(Landroid/content/Context;)V
8 ····.locals·019 ····.locals·0
  
9 ····.line·3520 ····.line·43
10 ····invoke-direct·{p0,·p1},·Landroidx/preference/DropDownPreference;-><init>(Landroid/content/Context;)V21 ····invoke-direct·{p0,·p1},·Landroidx/preference/DropDownPreference;-><init>(Landroid/content/Context;)V
  
 22 ····const/4·p1,·0x0
  
11 ····.line·3623 ····.line·40
12 ····iput-object·p1,·p0,·Lcom/android/car/ui/preference/CarUiDropDownPreference;->mContext:Landroid/content/Context;24 ····iput-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiDropDownPreference;->mUxRestricted:Z
  
13 ····return-void25 ····return-void
14 .end·method26 .end·method
  
15 .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;)V27 .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
16 ····.locals·028 ····.locals·0
  
17 ····.line·4029 ····.line·47
18 ····invoke-direct·{p0,·p1,·p2},·Landroidx/preference/DropDownPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V30 ····invoke-direct·{p0,·p1,·p2},·Landroidx/preference/DropDownPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
  
 31 ····const/4·p1,·0x0
  
19 ····.line·4132 ····.line·40
20 ····iput-object·p1,·p0,·Lcom/android/car/ui/preference/CarUiDropDownPreference;->mContext:Landroid/content/Context;33 ····iput-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiDropDownPreference;->mUxRestricted:Z
  
21 ····return-void34 ····return-void
22 .end·method35 .end·method
  
23 .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V36 .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
24 ····.locals·037 ····.locals·0
  
25 ····.line·4538 ····.line·51
26 ····invoke-direct·{p0,·p1,·p2,·p3},·Landroidx/preference/DropDownPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V39 ····invoke-direct·{p0,·p1,·p2,·p3},·Landroidx/preference/DropDownPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
  
 40 ····const/4·p1,·0x0
  
27 ····.line·4641 ····.line·40
28 ····iput-object·p1,·p0,·Lcom/android/car/ui/preference/CarUiDropDownPreference;->mContext:Landroid/content/Context;42 ····iput-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiDropDownPreference;->mUxRestricted:Z
  
29 ····return-void43 ····return-void
30 .end·method44 .end·method
  
31 .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V45 .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V
32 ····.locals·046 ····.locals·0
  
33 ····.line·5147 ····.line·56
34 ····invoke-direct·{p0,·p1,·p2,·p3,·p4},·Landroidx/preference/DropDownPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V48 ····invoke-direct·{p0,·p1,·p2,·p3,·p4},·Landroidx/preference/DropDownPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V
  
 49 ····const/4·p1,·0x0
  
35 ····.line·5250 ····.line·40
36 ····iput-object·p1,·p0,·Lcom/android/car/ui/preference/CarUiDropDownPreference;->mContext:Landroid/content/Context;51 ····iput-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiDropDownPreference;->mUxRestricted:Z
  
37 ····return-void52 ····return-void
38 .end·method53 .end·method
  
  
39 #·virtual·methods54 #·virtual·methods
 55 .method·public·getOnClickWhileRestrictedListener()Ljava/util/function/Consumer;
 56 ····.locals·1
 57 ····.annotation·system·Ldalvik/annotation/Signature;
 58 ········value·=·{
 59 ············"()",
 60 ············"Ljava/util/function/Consumer<",
 61 ············"Landroidx/preference/Preference;",
 62 ············">;"
 63 ········}
 64 ····.end·annotation
  
 65 ····.line·122
 66 ····iget-object·v0,·p0,·Lcom/android/car/ui/preference/CarUiDropDownPreference;->mRestrictedClickListener:Ljava/util/function/Consumer;
  
 67 ····return-object·v0
 68 .end·method
  
 69 .method·public·isUxRestricted()Z
 70 ····.locals·1
  
 71 ····.line·111
 72 ····iget-boolean·v0,·p0,·Lcom/android/car/ui/preference/CarUiDropDownPreference;->mUxRestricted:Z
  
 73 ····return·v0
 74 .end·method
  
40 .method·public·onAttached()V75 .method·public·onAttached()V
41 ····.locals·276 ····.locals·2
  
42 ····.line·6677 ····.line·70
43 ····invoke-super·{p0},·Landroidx/preference/Preference;->onAttached()V78 ····invoke-super·{p0},·Landroidx/preference/Preference;->onAttached()V
  
44 ····.line·6879 ····.line·72
45 ····iget-object·v0,·p0,·Lcom/android/car/ui/preference/CarUiDropDownPreference;->mContext:Landroid/content/Context;80 ····invoke-virtual·{p0},·Landroidx/preference/Preference;->getContext()Landroid/content/Context;
  
 81 ····move-result-object·v0
  
46 ····invoke-virtual·{v0},·Landroid/content/Context;->getResources()Landroid/content/res/Resources;82 ····invoke-virtual·{v0},·Landroid/content/Context;->getResources()Landroid/content/res/Resources;
  
47 ····move-result-object·v083 ····move-result-object·v0
  
48 ····sget·v1,·Lcom/android/car/ui/R$bool;->car_ui_preference_show_chevron:I84 ····sget·v1,·Lcom/android/car/ui/R$bool;->car_ui_preference_show_chevron:I
  
Offset 77, 28 lines modifiedOffset 126, 123 lines modified
  
77 ····move-result·v0126 ····move-result·v0
  
78 ····if-nez·v0,·:cond_0127 ····if-nez·v0,·:cond_0
  
79 ····return-void128 ····return-void
  
80 ····.line·75129 ····.line·79
81 ····:cond_0130 ····:cond_0
82 ····sget·v0,·Lcom/android/car/ui/R$layout;->car_ui_preference_chevron:I131 ····sget·v0,·Lcom/android/car/ui/R$layout;->car_ui_preference_chevron:I
  
83 ····invoke-virtual·{p0,·v0},·Landroidx/preference/Preference;->setWidgetLayoutResource(I)V132 ····invoke-virtual·{p0,·v0},·Landroidx/preference/Preference;->setWidgetLayoutResource(I)V
  
84 ····return-void133 ····return-void
85 .end·method134 .end·method
  
 135 .method·public·onBindViewHolder(Landroidx/preference/PreferenceViewHolder;)V
 136 ····.locals·1
  
 137 ····.line·84
 138 ····invoke-super·{p0,·p1},·Landroidx/preference/DropDownPreference;->onBindViewHolder(Landroidx/preference/PreferenceViewHolder;)V
  
 139 ····.line·86
 140 ····iget-object·p1,·p1,·Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
  
 141 ····invoke-virtual·{p0},·Lcom/android/car/ui/preference/CarUiDropDownPreference;->isUxRestricted()Z
  
 142 ····move-result·v0
  
 143 ····invoke-static·{p1,·v0},·Lcom/android/car/ui/utils/ViewUtils;->makeAllViewsUxRestricted(Landroid/view/View;Z)V
  
 144 ····return-void
 145 .end·method
  
86 .method·protected·onClick()V146 .method·protected·onClick()V
87 ····.locals·1147 ····.locals·1
  
88 ····.line·61148 ····.line·65
89 ····invoke-virtual·{p0},·Landroidx/preference/Preference;->getPreferenceManager()Landroidx/preference/PreferenceManager;149 ····invoke-virtual·{p0},·Landroidx/preference/Preference;->getPreferenceManager()Landroidx/preference/PreferenceManager;
  
90 ····move-result-object·v0150 ····move-result-object·v0
  
91 ····invoke-virtual·{v0,·p0},·Landroidx/preference/PreferenceManager;->showDialog(Landroidx/preference/Preference;)V151 ····invoke-virtual·{v0,·p0},·Landroidx/preference/PreferenceManager;->showDialog(Landroidx/preference/Preference;)V
  
92 ····return-void152 ····return-void
93 .end·method153 .end·method
  
 154 .method·public·performClick()V
 155 ····.locals·1
  
 156 ····.line·92
 157 ····invoke-virtual·{p0},·Landroidx/preference/Preference;->isEnabled()Z
  
 158 ····move-result·v0
  
 159 ····if-nez·v0,·:cond_0
  
 160 ····invoke-virtual·{p0},·Landroidx/preference/Preference;->isSelectable()Z
  
 161 ····move-result·v0
  
 162 ····if-eqz·v0,·:cond_1
  
 163 ····:cond_0
 164 ····invoke-virtual·{p0},·Lcom/android/car/ui/preference/CarUiDropDownPreference;->isUxRestricted()Z
  
 165 ····move-result·v0
  
 166 ····if-eqz·v0,·:cond_1
  
 167 ····.line·93
 168 ····iget-object·v0,·p0,·Lcom/android/car/ui/preference/CarUiDropDownPreference;->mRestrictedClickListener:Ljava/util/function/Consumer;
  
 169 ····if-eqz·v0,·:cond_2
  
 170 ····.line·94
 171 ····invoke-interface·{v0,·p0},·Ljava/util/function/Consumer;->accept(Ljava/lang/Object;)V
  
 172 ····goto·:goto_0
  
 173 ····.line·97
 174 ····:cond_1
 175 ····invoke-super·{p0},·Landroidx/preference/Preference;->performClick()V
  
 176 ····:cond_2
 177 ····:goto_0
 178 ····return-void
 179 .end·method
  
 180 .method·public·setOnClickWhileRestrictedListener(Ljava/util/function/Consumer;)V
 181 ····.locals·0
 182 ····.annotation·system·Ldalvik/annotation/Signature;
 183 ········value·=·{
 184 ············"(",
 185 ············"Ljava/util/function/Consumer<",
 186 ············"Landroidx/preference/Preference;",
 187 ············">;)V"
 188 ········}
 189 ····.end·annotation
  
 190 ····.line·116
 191 ····iput-object·p1,·p0,·Lcom/android/car/ui/preference/CarUiDropDownPreference;->mRestrictedClickListener:Ljava/util/function/Consumer;
  
 192 ····return-void
 193 .end·method
  
 194 .method·public·setUxRestricted(Z)V
 195 ····.locals·1
  
 196 ····.line·103
 197 ····iget-boolean·v0,·p0,·Lcom/android/car/ui/preference/CarUiDropDownPreference;->mUxRestricted:Z
  
 198 ····if-eq·p1,·v0,·:cond_0
  
 199 ····.line·104
 200 ····iput-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiDropDownPreference;->mUxRestricted:Z
  
 201 ····.line·105
 202 ····invoke-virtual·{p0},·Landroidx/preference/DropDownPreference;->notifyChanged()V
  
 203 ····:cond_0
 204 ····return-void
 205 .end·method