Offset 1, 86 lines modifiedOffset 1, 135 lines modified
1 .class·public·Lcom/android/car/ui/preference/CarUiMultiSelectListPreference;1 .class·public·Lcom/android/car/ui/preference/CarUiMultiSelectListPreference;
2 .super·Landroidx/preference/MultiSelectListPreference;2 .super·Landroidx/preference/MultiSelectListPreference;
3 .source·"CarUiMultiSelectListPreference.java"3 .source·"CarUiMultiSelectListPreference.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/MultiSelectListPreference;-><init>(Landroid/content/Context;)V21 ····invoke-direct·{p0,·p1},·Landroidx/preference/MultiSelectListPreference;-><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/CarUiMultiSelectListPreference;->mContext:Landroid/content/Context;24 ····iput-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiMultiSelectListPreference;->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/MultiSelectListPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V30 ····invoke-direct·{p0,·p1,·p2},·Landroidx/preference/MultiSelectListPreference;-><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/CarUiMultiSelectListPreference;->mContext:Landroid/content/Context;33 ····iput-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiMultiSelectListPreference;->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/MultiSelectListPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V39 ····invoke-direct·{p0,·p1,·p2,·p3},·Landroidx/preference/MultiSelectListPreference;-><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/CarUiMultiSelectListPreference;->mContext:Landroid/content/Context;42 ····iput-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiMultiSelectListPreference;->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/MultiSelectListPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V48 ····invoke-direct·{p0,·p1,·p2,·p3,·p4},·Landroidx/preference/MultiSelectListPreference;-><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/CarUiMultiSelectListPreference;->mContext:Landroid/content/Context;51 ····iput-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiMultiSelectListPreference;->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/CarUiMultiSelectListPreference;->mRestrictedClickListener:Ljava/util/function/Consumer;
  
 67 ····return-object·v0
 68 .end·method
  
40 .method·protected·getSelectedItems()[Z69 .method·protected·getSelectedItems()[Z
41 ····.locals·170 ····.locals·1
  
42 ····.line·6171 ····.line·65
43 ····invoke-super·{p0},·Landroidx/preference/MultiSelectListPreference;->getSelectedItems()[Z72 ····invoke-super·{p0},·Landroidx/preference/MultiSelectListPreference;->getSelectedItems()[Z
  
44 ····move-result-object·v073 ····move-result-object·v0
  
45 ····return-object·v074 ····return-object·v0
46 .end·method75 .end·method
  
 76 .method·public·isUxRestricted()Z
 77 ····.locals·1
  
 78 ····.line·111
 79 ····iget-boolean·v0,·p0,·Lcom/android/car/ui/preference/CarUiMultiSelectListPreference;->mUxRestricted:Z
  
 80 ····return·v0
 81 .end·method
  
47 .method·public·onAttached()V82 .method·public·onAttached()V
48 ····.locals·283 ····.locals·2
  
49 ····.line·6684 ····.line·70
50 ····invoke-super·{p0},·Landroidx/preference/Preference;->onAttached()V85 ····invoke-super·{p0},·Landroidx/preference/Preference;->onAttached()V
  
51 ····.line·6886 ····.line·72
52 ····iget-object·v0,·p0,·Lcom/android/car/ui/preference/CarUiMultiSelectListPreference;->mContext:Landroid/content/Context;87 ····invoke-virtual·{p0},·Landroidx/preference/Preference;->getContext()Landroid/content/Context;
  
 88 ····move-result-object·v0
  
53 ····invoke-virtual·{v0},·Landroid/content/Context;->getResources()Landroid/content/res/Resources;89 ····invoke-virtual·{v0},·Landroid/content/Context;->getResources()Landroid/content/res/Resources;
  
54 ····move-result-object·v090 ····move-result-object·v0
  
55 ····sget·v1,·Lcom/android/car/ui/R$bool;->car_ui_preference_show_chevron:I91 ····sget·v1,·Lcom/android/car/ui/R$bool;->car_ui_preference_show_chevron:I
  
Offset 88, 15 lines modifiedOffset 137, 110 lines modified
  
88 ····move-result·v0137 ····move-result·v0
  
89 ····if-nez·v0,·:cond_0138 ····if-nez·v0,·:cond_0
  
90 ····return-void139 ····return-void
  
91 ····.line·75140 ····.line·79
92 ····:cond_0141 ····:cond_0
93 ····sget·v0,·Lcom/android/car/ui/R$layout;->car_ui_preference_chevron:I142 ····sget·v0,·Lcom/android/car/ui/R$layout;->car_ui_preference_chevron:I
  
94 ····invoke-virtual·{p0,·v0},·Landroidx/preference/Preference;->setWidgetLayoutResource(I)V143 ····invoke-virtual·{p0,·v0},·Landroidx/preference/Preference;->setWidgetLayoutResource(I)V
  
95 ····return-void144 ····return-void
96 .end·method145 .end·method
  
 146 .method·public·onBindViewHolder(Landroidx/preference/PreferenceViewHolder;)V
 147 ····.locals·1
  
 148 ····.line·84
 149 ····invoke-super·{p0,·p1},·Landroidx/preference/Preference;->onBindViewHolder(Landroidx/preference/PreferenceViewHolder;)V
  
 150 ····.line·86
 151 ····iget-object·p1,·p1,·Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
  
 152 ····invoke-virtual·{p0},·Lcom/android/car/ui/preference/CarUiMultiSelectListPreference;->isUxRestricted()Z
  
 153 ····move-result·v0
  
 154 ····invoke-static·{p1,·v0},·Lcom/android/car/ui/utils/ViewUtils;->makeAllViewsUxRestricted(Landroid/view/View;Z)V
  
 155 ····return-void
 156 .end·method
  
 157 .method·public·performClick()V
 158 ····.locals·1
  
 159 ····.line·92
 160 ····invoke-virtual·{p0},·Landroidx/preference/Preference;->isEnabled()Z
  
 161 ····move-result·v0
  
 162 ····if-nez·v0,·:cond_0
  
 163 ····invoke-virtual·{p0},·Landroidx/preference/Preference;->isSelectable()Z
  
 164 ····move-result·v0
  
 165 ····if-eqz·v0,·:cond_1
  
 166 ····:cond_0
 167 ····invoke-virtual·{p0},·Lcom/android/car/ui/preference/CarUiMultiSelectListPreference;->isUxRestricted()Z
  
 168 ····move-result·v0
  
 169 ····if-eqz·v0,·:cond_1
  
 170 ····.line·93
 171 ····iget-object·v0,·p0,·Lcom/android/car/ui/preference/CarUiMultiSelectListPreference;->mRestrictedClickListener:Ljava/util/function/Consumer;
  
 172 ····if-eqz·v0,·:cond_2
  
 173 ····.line·94
 174 ····invoke-interface·{v0,·p0},·Ljava/util/function/Consumer;->accept(Ljava/lang/Object;)V
  
 175 ····goto·:goto_0
  
 176 ····.line·97
 177 ····:cond_1
 178 ····invoke-super·{p0},·Landroidx/preference/Preference;->performClick()V
  
 179 ····:cond_2
 180 ····:goto_0
 181 ····return-void
 182 .end·method
  
 183 .method·public·setOnClickWhileRestrictedListener(Ljava/util/function/Consumer;)V
 184 ····.locals·0
 185 ····.annotation·system·Ldalvik/annotation/Signature;
 186 ········value·=·{
 187 ············"(",
 188 ············"Ljava/util/function/Consumer<",
 189 ············"Landroidx/preference/Preference;",
 190 ············">;)V"
 191 ········}
 192 ····.end·annotation
  
 193 ····.line·116
 194 ····iput-object·p1,·p0,·Lcom/android/car/ui/preference/CarUiMultiSelectListPreference;->mRestrictedClickListener:Ljava/util/function/Consumer;
  
 195 ····return-void
 196 .end·method
  
 197 .method·public·setUxRestricted(Z)V
 198 ····.locals·1
  
 199 ····.line·103
 200 ····iget-boolean·v0,·p0,·Lcom/android/car/ui/preference/CarUiMultiSelectListPreference;->mUxRestricted:Z
  
 201 ····if-eq·p1,·v0,·:cond_0
  
 202 ····.line·104
 203 ····iput-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiMultiSelectListPreference;->mUxRestricted:Z
  
 204 ····.line·105
 205 ····invoke-virtual·{p0},·Landroidx/preference/Preference;->notifyChanged()V
  
 206 ····:cond_0
 207 ····return-void
 208 .end·method