| | | | |
| Offset 1, 75 lines modified | Offset 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·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/DropDownPreference;-><init>(Landroid/content/Context;)V | 21 | ····invoke-direct·{p0,·p1},·Landroidx/preference/DropDownPreference;-><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/CarUiDropDownPreference;->mContext:Landroid/content/Context; | 24 | ····iput-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiDropDownPreference;->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/DropDownPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V | 30 | ····invoke-direct·{p0,·p1,·p2},·Landroidx/preference/DropDownPreference;-><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/CarUiDropDownPreference;->mContext:Landroid/content/Context; | 33 | ····iput-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiDropDownPreference;->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/DropDownPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V | 39 | ····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·46 | 41 | ····.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-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/DropDownPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V | 48 | ····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·52 | 50 | ····.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-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/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()V | 75 | .method·public·onAttached()V |
| 41 | ····.locals·2 | 76 | ····.locals·2 |
| | |
| 42 | ····.line·66 | 77 | ····.line·70 |
| 43 | ····invoke-super·{p0},·Landroidx/preference/Preference;->onAttached()V | 78 | ····invoke-super·{p0},·Landroidx/preference/Preference;->onAttached()V |
| | |
| 44 | ····.line·68 | 79 | ····.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·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, 28 lines modified | Offset 126, 123 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·75 | 129 | ····.line·79 |
| 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·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()V | 146 | .method·protected·onClick()V |
| 87 | ····.locals·1 | 147 | ····.locals·1 |
| | |
| 88 | ····.line·61 | 148 | ····.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·v0 | 150 | ····move-result-object·v0 |
| | |
| 91 | ····invoke-virtual·{v0,·p0},·Landroidx/preference/PreferenceManager;->showDialog(Landroidx/preference/Preference;)V | 151 | ····invoke-virtual·{v0,·p0},·Landroidx/preference/PreferenceManager;->showDialog(Landroidx/preference/Preference;)V |
| | |
| 92 | ····return-void | 152 | ····return-void |
| 93 | .end·method | 153 | .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 |