| | | |
Offset 1, 75 lines modified | Offset 1, 124 lines modified |
1 | .class·public·Lcom/android/car/ui/preference/CarUiListPreference; | 1 | .class·public·Lcom/android/car/ui/preference/CarUiListPreference; |
2 | .super·Landroidx/preference/ListPreference; | 2 | .super·Landroidx/preference/ListPreference; |
3 | .source·"CarUiListPreference.java" | 3 | .source·"CarUiListPreference.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·51 | 20 | ····.line·55 |
10 | ····invoke-direct·{p0,·p1},·Landroidx/preference/ListPreference;-><init>(Landroid/content/Context;)V | 21 | ····invoke-direct·{p0,·p1},·Landroidx/preference/ListPreference;-><init>(Landroid/content/Context;)V |
| |
| 22 | ····const/4·p1,·0x0 |
| |
11 | ····.line·52 | 23 | ····.line·39 |
12 | ····iput-object·p1,·p0,·Lcom/android/car/ui/preference/CarUiListPreference;->mContext:Landroid/content/Context; | 24 | ····iput-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiListPreference;->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·46 | 29 | ····.line·51 |
18 | ····invoke-direct·{p0,·p1,·p2},·Landroidx/preference/ListPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V | 30 | ····invoke-direct·{p0,·p1,·p2},·Landroidx/preference/ListPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V |
| |
| 31 | ····const/4·p1,·0x0 |
| |
19 | ····.line·47 | 32 | ····.line·39 |
20 | ····iput-object·p1,·p0,·Lcom/android/car/ui/preference/CarUiListPreference;->mContext:Landroid/content/Context; | 33 | ····iput-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiListPreference;->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·41 | 38 | ····.line·47 |
26 | ····invoke-direct·{p0,·p1,·p2,·p3},·Landroidx/preference/ListPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V | 39 | ····invoke-direct·{p0,·p1,·p2,·p3},·Landroidx/preference/ListPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V |
| |
| 40 | ····const/4·p1,·0x0 |
| |
27 | ····.line·42 | 41 | ····.line·39 |
28 | ····iput-object·p1,·p0,·Lcom/android/car/ui/preference/CarUiListPreference;->mContext:Landroid/content/Context; | 42 | ····iput-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiListPreference;->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·36 | 47 | ····.line·43 |
34 | ····invoke-direct·{p0,·p1,·p2,·p3,·p4},·Landroidx/preference/ListPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V | 48 | ····invoke-direct·{p0,·p1,·p2,·p3,·p4},·Landroidx/preference/ListPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V |
| |
| 49 | ····const/4·p1,·0x0 |
| |
35 | ····.line·37 | 50 | ····.line·39 |
36 | ····iput-object·p1,·p0,·Lcom/android/car/ui/preference/CarUiListPreference;->mContext:Landroid/content/Context; | 51 | ····iput-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiListPreference;->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·112 |
| 66 | ····iget-object·v0,·p0,·Lcom/android/car/ui/preference/CarUiListPreference;->mRestrictedClickListener:Ljava/util/function/Consumer; |
| |
| 67 | ····return-object·v0 |
| 68 | .end·method |
| |
| 69 | .method·public·isUxRestricted()Z |
| 70 | ····.locals·1 |
| |
| 71 | ····.line·101 |
| 72 | ····iget-boolean·v0,·p0,·Lcom/android/car/ui/preference/CarUiListPreference;->mUxRestricted:Z |
| |
| 73 | ····return·v0 |
| 74 | .end·method |
| |
40 | .method·public·onAttached()V | 75 | .method·public·onAttached()V |
41 | ····.locals·2 | 76 | ····.locals·2 |
| |
42 | ····.line·57 | 77 | ····.line·60 |
43 | ····invoke-super·{p0},·Landroidx/preference/Preference;->onAttached()V | 78 | ····invoke-super·{p0},·Landroidx/preference/Preference;->onAttached()V |
| |
44 | ····.line·59 | 79 | ····.line·62 |
45 | ····iget-object·v0,·p0,·Lcom/android/car/ui/preference/CarUiListPreference;->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·v0 | 83 | ····move-result-object·v0 |
| |
48 | ····sget·v1,·Lcom/android/car/ui/R$bool;->car_ui_preference_show_chevron:I | 84 | ····sget·v1,·Lcom/android/car/ui/R$bool;->car_ui_preference_show_chevron:I |
| |
Offset 77, 15 lines modified | Offset 126, 110 lines modified |
| |
77 | ····move-result·v0 | 126 | ····move-result·v0 |
| |
78 | ····if-nez·v0,·:cond_0 | 127 | ····if-nez·v0,·:cond_0 |
| |
79 | ····return-void | 128 | ····return-void |
| |
80 | ····.line·66 | 129 | ····.line·69 |
81 | ····:cond_0 | 130 | ····:cond_0 |
82 | ····sget·v0,·Lcom/android/car/ui/R$layout;->car_ui_preference_chevron:I | 131 | ····sget·v0,·Lcom/android/car/ui/R$layout;->car_ui_preference_chevron:I |
| |
83 | ····invoke-virtual·{p0,·v0},·Landroidx/preference/Preference;->setWidgetLayoutResource(I)V | 132 | ····invoke-virtual·{p0,·v0},·Landroidx/preference/Preference;->setWidgetLayoutResource(I)V |
| |
84 | ····return-void | 133 | ····return-void |
85 | .end·method | 134 | .end·method |
| |
| 135 | .method·public·onBindViewHolder(Landroidx/preference/PreferenceViewHolder;)V |
| 136 | ····.locals·1 |
| |
| 137 | ····.line·74 |
| 138 | ····invoke-super·{p0,·p1},·Landroidx/preference/Preference;->onBindViewHolder(Landroidx/preference/PreferenceViewHolder;)V |
| |
| 139 | ····.line·76 |
| 140 | ····iget-object·p1,·p1,·Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; |
| |
| 141 | ····invoke-virtual·{p0},·Lcom/android/car/ui/preference/CarUiListPreference;->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 |
| |
| 146 | .method·public·performClick()V |
| 147 | ····.locals·1 |
| |
| 148 | ····.line·82 |
| 149 | ····invoke-virtual·{p0},·Landroidx/preference/Preference;->isEnabled()Z |
| |
| 150 | ····move-result·v0 |
| |
| 151 | ····if-nez·v0,·:cond_0 |
| |
| 152 | ····invoke-virtual·{p0},·Landroidx/preference/Preference;->isSelectable()Z |
| |
| 153 | ····move-result·v0 |
| |
| 154 | ····if-eqz·v0,·:cond_1 |
| |
| 155 | ····:cond_0 |
| 156 | ····invoke-virtual·{p0},·Lcom/android/car/ui/preference/CarUiListPreference;->isUxRestricted()Z |
| |
| 157 | ····move-result·v0 |
| |
| 158 | ····if-eqz·v0,·:cond_1 |
| |
| 159 | ····.line·83 |
| 160 | ····iget-object·v0,·p0,·Lcom/android/car/ui/preference/CarUiListPreference;->mRestrictedClickListener:Ljava/util/function/Consumer; |
| |
| 161 | ····if-eqz·v0,·:cond_2 |
| |
| 162 | ····.line·84 |
| 163 | ····invoke-interface·{v0,·p0},·Ljava/util/function/Consumer;->accept(Ljava/lang/Object;)V |
| |
| 164 | ····goto·:goto_0 |
| |
| 165 | ····.line·87 |
| 166 | ····:cond_1 |
| 167 | ····invoke-super·{p0},·Landroidx/preference/Preference;->performClick()V |
| |
| 168 | ····:cond_2 |
| 169 | ····:goto_0 |
| 170 | ····return-void |
| 171 | .end·method |
| |
| 172 | .method·public·setOnClickWhileRestrictedListener(Ljava/util/function/Consumer;)V |
| 173 | ····.locals·0 |
| 174 | ····.annotation·system·Ldalvik/annotation/Signature; |
| 175 | ········value·=·{ |
| 176 | ············"(", |
| 177 | ············"Ljava/util/function/Consumer<", |
| 178 | ············"Landroidx/preference/Preference;", |
| 179 | ············">;)V" |
| 180 | ········} |
| 181 | ····.end·annotation |
| |
| 182 | ····.line·106 |
| 183 | ····iput-object·p1,·p0,·Lcom/android/car/ui/preference/CarUiListPreference;->mRestrictedClickListener:Ljava/util/function/Consumer; |
| |
| 184 | ····return-void |
| 185 | .end·method |
| |
| 186 | .method·public·setUxRestricted(Z)V |
| 187 | ····.locals·1 |
| |
| 188 | ····.line·93 |
| 189 | ····iget-boolean·v0,·p0,·Lcom/android/car/ui/preference/CarUiListPreference;->mUxRestricted:Z |
| |
| 190 | ····if-eq·p1,·v0,·:cond_0 |
| |
| 191 | ····.line·94 |
| 192 | ····iput-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiListPreference;->mUxRestricted:Z |
| |
| 193 | ····.line·95 |
| 194 | ····invoke-virtual·{p0},·Landroidx/preference/Preference;->notifyChanged()V |
| |
| 195 | ····:cond_0 |
| 196 | ····return-void |
| 197 | .end·method |