| | | |
Offset 1, 86 lines modified | Offset 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·fields | 6 | #·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·methods | 17 | #·direct·methods |
7 | .method·public·constructor·<init>(Landroid/content/Context;)V | 18 | .method·public·constructor·<init>(Landroid/content/Context;)V |
8 | ····.locals·0 | 19 | ····.locals·0 |
| |
9 | ····.line·35 | 20 | ····.line·43 |
10 | ····invoke-direct·{p0,·p1},·Landroidx/preference/MultiSelectListPreference;-><init>(Landroid/content/Context;)V | 21 | ····invoke-direct·{p0,·p1},·Landroidx/preference/MultiSelectListPreference;-><init>(Landroid/content/Context;)V |
| |
| 22 | ····const/4·p1,·0x0 |
| |
11 | ····.line·36 | 23 | ····.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-void | 25 | ····return-void |
14 | .end·method | 26 | .end·method |
| |
15 | .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;)V | 27 | .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;)V |
16 | ····.locals·0 | 28 | ····.locals·0 |
| |
17 | ····.line·40 | 29 | ····.line·47 |
18 | ····invoke-direct·{p0,·p1,·p2},·Landroidx/preference/MultiSelectListPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V | 30 | ····invoke-direct·{p0,·p1,·p2},·Landroidx/preference/MultiSelectListPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V |
| |
| 31 | ····const/4·p1,·0x0 |
| |
19 | ····.line·41 | 32 | ····.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-void | 34 | ····return-void |
22 | .end·method | 35 | .end·method |
| |
23 | .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V | 36 | .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V |
24 | ····.locals·0 | 37 | ····.locals·0 |
| |
25 | ····.line·45 | 38 | ····.line·51 |
26 | ····invoke-direct·{p0,·p1,·p2,·p3},·Landroidx/preference/MultiSelectListPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V | 39 | ····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·46 | 41 | ····.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-void | 43 | ····return-void |
30 | .end·method | 44 | .end·method |
| |
31 | .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V | 45 | .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V |
32 | ····.locals·0 | 46 | ····.locals·0 |
| |
33 | ····.line·51 | 47 | ····.line·56 |
34 | ····invoke-direct·{p0,·p1,·p2,·p3,·p4},·Landroidx/preference/MultiSelectListPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V | 48 | ····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·52 | 50 | ····.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-void | 52 | ····return-void |
38 | .end·method | 53 | .end·method |
| |
| |
39 | #·virtual·methods | 54 | #·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()[Z | 69 | .method·protected·getSelectedItems()[Z |
41 | ····.locals·1 | 70 | ····.locals·1 |
| |
42 | ····.line·61 | 71 | ····.line·65 |
43 | ····invoke-super·{p0},·Landroidx/preference/MultiSelectListPreference;->getSelectedItems()[Z | 72 | ····invoke-super·{p0},·Landroidx/preference/MultiSelectListPreference;->getSelectedItems()[Z |
| |
44 | ····move-result-object·v0 | 73 | ····move-result-object·v0 |
| |
45 | ····return-object·v0 | 74 | ····return-object·v0 |
46 | .end·method | 75 | .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()V | 82 | .method·public·onAttached()V |
48 | ····.locals·2 | 83 | ····.locals·2 |
| |
49 | ····.line·66 | 84 | ····.line·70 |
50 | ····invoke-super·{p0},·Landroidx/preference/Preference;->onAttached()V | 85 | ····invoke-super·{p0},·Landroidx/preference/Preference;->onAttached()V |
| |
51 | ····.line·68 | 86 | ····.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·v0 | 90 | ····move-result-object·v0 |
| |
55 | ····sget·v1,·Lcom/android/car/ui/R$bool;->car_ui_preference_show_chevron:I | 91 | ····sget·v1,·Lcom/android/car/ui/R$bool;->car_ui_preference_show_chevron:I |
| |
Offset 88, 15 lines modified | Offset 137, 110 lines modified |
| |
88 | ····move-result·v0 | 137 | ····move-result·v0 |
| |
89 | ····if-nez·v0,·:cond_0 | 138 | ····if-nez·v0,·:cond_0 |
| |
90 | ····return-void | 139 | ····return-void |
| |
91 | ····.line·75 | 140 | ····.line·79 |
92 | ····:cond_0 | 141 | ····:cond_0 |
93 | ····sget·v0,·Lcom/android/car/ui/R$layout;->car_ui_preference_chevron:I | 142 | ····sget·v0,·Lcom/android/car/ui/R$layout;->car_ui_preference_chevron:I |
| |
94 | ····invoke-virtual·{p0,·v0},·Landroidx/preference/Preference;->setWidgetLayoutResource(I)V | 143 | ····invoke-virtual·{p0,·v0},·Landroidx/preference/Preference;->setWidgetLayoutResource(I)V |
| |
95 | ····return-void | 144 | ····return-void |
96 | .end·method | 145 | .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 |