| | | | |
| Offset 1, 155 lines modified | Offset 1, 299 lines modified |
| 1 | .class·public·Lcom/android/car/ui/preference/CarUiEditTextPreference; | 1 | .class·public·Lcom/android/car/ui/preference/CarUiEditTextPreference; |
| 2 | .super·Landroidx/preference/EditTextPreference; | 2 | .super·Landroidx/preference/EditTextPreference; |
| 3 | .source·"CarUiEditTextPreference.java" | 3 | .source·"CarUiEditTextPreference.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 |
| | |
| 6 | .field·private·mShowChevron:Z | 16 | .field·private·mShowChevron:Z |
| | |
| | 17 | .field·private·mUxRestricted:Z |
| | |
| | |
| 7 | #·direct·methods | 18 | #·direct·methods |
| 8 | .method·public·constructor·<init>(Landroid/content/Context;)V | 19 | .method·public·constructor·<init>(Landroid/content/Context;)V |
| 9 | ····.locals·1 | 20 | ····.locals·0 |
| | |
| 10 | ····.line·56 | 21 | ····.line·60 |
| 11 | ····invoke-direct·{p0,·p1},·Landroidx/preference/EditTextPreference;-><init>(Landroid/content/Context;)V | 22 | ····invoke-direct·{p0,·p1},·Landroidx/preference/EditTextPreference;-><init>(Landroid/content/Context;)V |
| | |
| 12 | ····const/4·v0,·0x1 | 23 | ····const/4·p1,·0x0 |
| | |
| 13 | ····.line·37 | 24 | ····.line·43 |
| 14 | ····iput-boolean·v0,·p0,·Lcom/android/car/ui/preference/CarUiEditTextPreference;->mShowChevron:Z | 25 | ····iput-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiEditTextPreference;->mUxRestricted:Z |
| | |
| | 26 | ····const/4·p1,·0x1 |
| | |
| 15 | ····.line·57 | 27 | ····.line·44 |
| 16 | ····iput-object·p1,·p0,·Lcom/android/car/ui/preference/CarUiEditTextPreference;->mContext:Landroid/content/Context; | 28 | ····iput-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiEditTextPreference;->mShowChevron:Z |
| | |
| 17 | ····return-void | 29 | ····return-void |
| 18 | .end·method | 30 | .end·method |
| | |
| 19 | .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;)V | 31 | .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;)V |
| 20 | ····.locals·0 | 32 | ····.locals·0 |
| | |
| 21 | ····.line·51 | 33 | ····.line·56 |
| 22 | ····invoke-direct·{p0,·p1,·p2},·Landroidx/preference/EditTextPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V | 34 | ····invoke-direct·{p0,·p1,·p2},·Landroidx/preference/EditTextPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V |
| | |
| 23 | ····const/4·p2,·0x1 | 35 | ····const/4·p1,·0x0 |
| | |
| 24 | ····.line·37 | 36 | ····.line·43 |
| 25 | ····iput-boolean·p2,·p0,·Lcom/android/car/ui/preference/CarUiEditTextPreference;->mShowChevron:Z | 37 | ····iput-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiEditTextPreference;->mUxRestricted:Z |
| | |
| | 38 | ····const/4·p1,·0x1 |
| | |
| 26 | ····.line·52 | 39 | ····.line·44 |
| 27 | ····iput-object·p1,·p0,·Lcom/android/car/ui/preference/CarUiEditTextPreference;->mContext:Landroid/content/Context; | 40 | ····iput-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiEditTextPreference;->mShowChevron:Z |
| | |
| 28 | ····return-void | 41 | ····return-void |
| 29 | .end·method | 42 | .end·method |
| | |
| 30 | .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V | 43 | .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V |
| 31 | ····.locals·0 | 44 | ····.locals·0 |
| | |
| 32 | ····.line·46 | 45 | ····.line·52 |
| 33 | ····invoke-direct·{p0,·p1,·p2,·p3},·Landroidx/preference/EditTextPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V | 46 | ····invoke-direct·{p0,·p1,·p2,·p3},·Landroidx/preference/EditTextPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V |
| | |
| 34 | ····const/4·p2,·0x1 | 47 | ····const/4·p1,·0x0 |
| | |
| | 48 | ····.line·43 |
| | 49 | ····iput-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiEditTextPreference;->mUxRestricted:Z |
| | |
| | 50 | ····const/4·p1,·0x1 |
| 35 | ····.line·37 | |
| 36 | ····iput-boolean·p2,·p0,·Lcom/android/car/ui/preference/CarUiEditTextPreference;->mShowChevron:Z | |
| | |
| 37 | ····.line·47 | 51 | ····.line·44 |
| 38 | ····iput-object·p1,·p0,·Lcom/android/car/ui/preference/CarUiEditTextPreference;->mContext:Landroid/content/Context; | 52 | ····iput-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiEditTextPreference;->mShowChevron:Z |
| | |
| 39 | ····return-void | 53 | ····return-void |
| 40 | .end·method | 54 | .end·method |
| | |
| 41 | .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V | 55 | .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V |
| 42 | ····.locals·0 | 56 | ····.locals·0 |
| | |
| 43 | ····.line·41 | 57 | ····.line·48 |
| 44 | ····invoke-direct·{p0,·p1,·p2,·p3,·p4},·Landroidx/preference/EditTextPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V | 58 | ····invoke-direct·{p0,·p1,·p2,·p3,·p4},·Landroidx/preference/EditTextPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V |
| | |
| 45 | ····const/4·p2,·0x1 | 59 | ····const/4·p1,·0x0 |
| | |
| 46 | ····.line·37 | 60 | ····.line·43 |
| 47 | ····iput-boolean·p2,·p0,·Lcom/android/car/ui/preference/CarUiEditTextPreference;->mShowChevron:Z | 61 | ····iput-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiEditTextPreference;->mUxRestricted:Z |
| | |
| | 62 | ····const/4·p1,·0x1 |
| | |
| 48 | ····.line·42 | 63 | ····.line·44 |
| 49 | ····iput-object·p1,·p0,·Lcom/android/car/ui/preference/CarUiEditTextPreference;->mContext:Landroid/content/Context; | 64 | ····iput-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiEditTextPreference;->mShowChevron:Z |
| | |
| 50 | ····return-void | 65 | ····return-void |
| 51 | .end·method | 66 | .end·method |
| | |
| | |
| 52 | #·virtual·methods | 67 | #·virtual·methods |
| | 68 | .method·public·getOnClickWhileRestrictedListener()Ljava/util/function/Consumer; |
| | 69 | ····.locals·1 |
| | 70 | ····.annotation·system·Ldalvik/annotation/Signature; |
| | 71 | ········value·=·{ |
| | 72 | ············"()", |
| | 73 | ············"Ljava/util/function/Consumer<", |
| | 74 | ············"Landroidx/preference/Preference;", |
| | 75 | ············">;" |
| | 76 | ········} |
| | 77 | ····.end·annotation |
| | |
| | 78 | ····.line·133 |
| | 79 | ····iget-object·v0,·p0,·Lcom/android/car/ui/preference/CarUiEditTextPreference;->mRestrictedClickListener:Ljava/util/function/Consumer; |
| | |
| | 80 | ····return-object·v0 |
| | 81 | .end·method |
| | |
| 53 | .method·public·getWidgetActionContainer(Landroidx/preference/PreferenceViewHolder;)Landroid/view/View; | 82 | .method·public·getWidgetActionContainer(Landroidx/preference/PreferenceViewHolder;)Landroid/view/View; |
| 54 | ····.locals·1 | 83 | ····.locals·1 |
| | |
| 55 | ····.line·69 | 84 | ····.line·72 |
| 56 | ····iget-object·p1,·p1,·Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; | 85 | ····iget-object·p1,·p1,·Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; |
| | |
| 57 | ····sget·v0,·Lcom/android/car/ui/R$id;->action_widget_container:I | 86 | ····sget·v0,·Lcom/android/car/ui/R$id;->action_widget_container:I |
| | |
| 58 | ····invoke-static·{p1,·v0},·Lcom/android/car/ui/utils/CarUiUtils;->findViewByRefId(Landroid/view/View;I)Landroid/view/View; | 87 | ····invoke-static·{p1,·v0},·Lcom/android/car/ui/utils/CarUiUtils;->findViewByRefId(Landroid/view/View;I)Landroid/view/View; |
| | |
| 59 | ····move-result-object·p1 | 88 | ····move-result-object·p1 |
| | |
| 60 | ····return-object·p1 | 89 | ····return-object·p1 |
| 61 | .end·method | 90 | .end·method |
| | |
| | 91 | .method·public·isUxRestricted()Z |
| | 92 | ····.locals·1 |
| | |
| | 93 | ····.line·122 |
| | 94 | ····iget-boolean·v0,·p0,·Lcom/android/car/ui/preference/CarUiEditTextPreference;->mUxRestricted:Z |
| | |
| | 95 | ····return·v0 |
| | 96 | .end·method |
| | |
| 62 | .method·public·onAttached()V | 97 | .method·public·onAttached()V |
| 63 | ····.locals·2 | 98 | ····.locals·2 |
| | |
| 64 | ····.line·74 | 99 | ····.line·77 |
| 65 | ····invoke-super·{p0},·Landroidx/preference/Preference;->onAttached()V | 100 | ····invoke-super·{p0},·Landroidx/preference/Preference;->onAttached()V |
| | |
| 66 | ····.line·76 | 101 | ····.line·79 |
| 67 | ····iget-object·v0,·p0,·Lcom/android/car/ui/preference/CarUiEditTextPreference;->mContext:Landroid/content/Context; | 102 | ····invoke-virtual·{p0},·Landroidx/preference/Preference;->getContext()Landroid/content/Context; |
| | |
| | 103 | ····move-result-object·v0 |
| | |
| 68 | ····invoke-virtual·{v0},·Landroid/content/Context;->getResources()Landroid/content/res/Resources; | 104 | ····invoke-virtual·{v0},·Landroid/content/Context;->getResources()Landroid/content/res/Resources; |
| | |
| 69 | ····move-result-object·v0 | 105 | ····move-result-object·v0 |
| | |
| 70 | ····sget·v1,·Lcom/android/car/ui/R$bool;->car_ui_preference_show_chevron:I | 106 | ····sget·v1,·Lcom/android/car/ui/R$bool;->car_ui_preference_show_chevron:I |
| | |
| 71 | ····invoke-virtual·{v0,·v1},·Landroid/content/res/Resources;->getBoolean(I)Z | 107 | ····invoke-virtual·{v0,·v1},·Landroid/content/res/Resources;->getBoolean(I)Z |
| | |
| 72 | ····move-result·v0 | 108 | ····move-result·v0 |
| | |
| 73 | ····if-eqz·v0,·:cond_1 | 109 | ····if-eqz·v0,·:cond_1 |
| | |
| 74 | ····.line·79 | 110 | ····.line·82 |
| 75 | ····iget-boolean·v0,·p0,·Lcom/android/car/ui/preference/CarUiEditTextPreference;->mShowChevron:Z | 111 | ····iget-boolean·v0,·p0,·Lcom/android/car/ui/preference/CarUiEditTextPreference;->mShowChevron:Z |
| | |
| 76 | ····if-nez·v0,·:cond_0 | 112 | ····if-nez·v0,·:cond_0 |
| | |
| 77 | ····goto·:goto_0 | 113 | ····goto·:goto_0 |
| | |
| 78 | ····.line·83 | 114 | ····.line·86 |
| 79 | ····:cond_0 | 115 | ····:cond_0 |
| 80 | ····sget·v0,·Lcom/android/car/ui/R$layout;->car_ui_preference_chevron:I | 116 | ····sget·v0,·Lcom/android/car/ui/R$layout;->car_ui_preference_chevron:I |
| | |
| 81 | ····invoke-virtual·{p0,·v0},·Landroidx/preference/Preference;->setWidgetLayoutResource(I)V | 117 | ····invoke-virtual·{p0,·v0},·Landroidx/preference/Preference;->setWidgetLayoutResource(I)V |
| | |
| 82 | ····:cond_1 | 118 | ····:cond_1 |
| 83 | ····:goto_0 | 119 | ····:goto_0 |
| 84 | ····return-void | 120 | ····return-void |
| 85 | .end·method | 121 | .end·method |
| | |
| | 122 | .method·public·onBindViewHolder(Landroidx/preference/PreferenceViewHolder;)V |
| | 123 | ····.locals·1 |
| | |
| | 124 | ····.line·95 |
| | 125 | ····invoke-super·{p0,·p1},·Landroidx/preference/Preference;->onBindViewHolder(Landroidx/preference/PreferenceViewHolder;)V |
| | |
| | 126 | ····.line·97 |
| | 127 | ····iget-object·p1,·p1,·Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View; |
| | |
| | 128 | ····invoke-virtual·{p0},·Lcom/android/car/ui/preference/CarUiEditTextPreference;->isUxRestricted()Z |
| | |
| | 129 | ····move-result·v0 |
| | |
| | 130 | ····invoke-static·{p1,·v0},·Lcom/android/car/ui/utils/ViewUtils;->makeAllViewsUxRestricted(Landroid/view/View;Z)V |
| | |
| | 131 | ····return-void |
| | 132 | .end·method |
| | |
| | 133 | .method·public·performClick()V |
| | 134 | ····.locals·1 |
| | |
| | 135 | ····.line·103 |
| | 136 | ····invoke-virtual·{p0},·Landroidx/preference/Preference;->isEnabled()Z |
| | |
| | 137 | ····move-result·v0 |
| | |
| | 138 | ····if-nez·v0,·:cond_0 |
| | |
| | 139 | ····invoke-virtual·{p0},·Landroidx/preference/Preference;->isSelectable()Z |
| | |
| | 140 | ····move-result·v0 |
| | |
| | 141 | ····if-eqz·v0,·:cond_1 |
| | |
| | 142 | ····:cond_0 |
| | 143 | ····invoke-virtual·{p0},·Lcom/android/car/ui/preference/CarUiEditTextPreference;->isUxRestricted()Z |
| | |
| | 144 | ····move-result·v0 |
| | |
| | 145 | ····if-eqz·v0,·:cond_1 |
| | |
| | 146 | ····.line·104 |
| | 147 | ····iget-object·v0,·p0,·Lcom/android/car/ui/preference/CarUiEditTextPreference;->mRestrictedClickListener:Ljava/util/function/Consumer; |
| | |
| | 148 | ····if-eqz·v0,·:cond_2 |
| | |
| | 149 | ····.line·105 |
| | 150 | ····invoke-interface·{v0,·p0},·Ljava/util/function/Consumer;->accept(Ljava/lang/Object;)V |
| | |
| | 151 | ····goto·:goto_0 |
| | |
| | 152 | ····.line·108 |
| | 153 | ····:cond_1 |
| | 154 | ····invoke-super·{p0},·Landroidx/preference/Preference;->performClick()V |
| | |
| | 155 | ····:cond_2 |
| | 156 | ····:goto_0 |
| | 157 | ····return-void |
| | 158 | .end·method |
| | |
| | 159 | .method·public·setOnClickWhileRestrictedListener(Ljava/util/function/Consumer;)V |
| | 160 | ····.locals·0 |
| | 161 | ····.annotation·system·Ldalvik/annotation/Signature; |
| | 162 | ········value·=·{ |
| | 163 | ············"(", |
| | 164 | ············"Ljava/util/function/Consumer<", |
| | 165 | ············"Landroidx/preference/Preference;", |
| | 166 | ············">;)V" |
| | 167 | ········} |
| | 168 | ····.end·annotation |
| | |
| | 169 | ····.line·127 |
| | 170 | ····iput-object·p1,·p0,·Lcom/android/car/ui/preference/CarUiEditTextPreference;->mRestrictedClickListener:Ljava/util/function/Consumer; |
| | |
| | 171 | ····return-void |
| | 172 | .end·method |
| | |
| 86 | .method·public·setShowChevron(Z)V | 173 | .method·public·setShowChevron(Z)V |
| 87 | ····.locals·0 | 174 | ····.locals·0 |
| | |
| 88 | ····.line·87 | 175 | ····.line·90 |
| 89 | ····iput-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiEditTextPreference;->mShowChevron:Z | 176 | ····iput-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiEditTextPreference;->mShowChevron:Z |
| | |
| 90 | ····return-void | 177 | ····return-void |
| 91 | .end·method | 178 | .end·method |
| | |
| 92 | .method·protected·setTwoActionLayout()V | 179 | .method·protected·setTwoActionLayout()V |
| 93 | ····.locals·1 | 180 | ····.locals·1 |
| | |
| 94 | ····.line·61 | 181 | ····.line·64 |
| 95 | ····sget·v0,·Lcom/android/car/ui/R$layout;->car_ui_two_action_preference:I | 182 | ····sget·v0,·Lcom/android/car/ui/R$layout;->car_ui_two_action_preference:I |
| | |
| 96 | ····invoke-virtual·{p0,·v0},·Landroidx/preference/Preference;->setLayoutResource(I)V | 183 | ····invoke-virtual·{p0,·v0},·Landroidx/preference/Preference;->setLayoutResource(I)V |
| | |
| 97 | ····return-void | 184 | ····return-void |
| 98 | .end·method | 185 | .end·method |
| | |
| | 186 | .method·public·setUxRestricted(Z)V |
| | 187 | ····.locals·1 |
| | |
| | 188 | ····.line·114 |
| | 189 | ····iget-boolean·v0,·p0,·Lcom/android/car/ui/preference/CarUiEditTextPreference;->mUxRestricted:Z |
| | |
| | 190 | ····if-eq·p1,·v0,·:cond_0 |
| | |
| | 191 | ····.line·115 |
| | 192 | ····iput-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiEditTextPreference;->mUxRestricted:Z |
| | |
| | 193 | ····.line·116 |
| | 194 | ····invoke-virtual·{p0},·Landroidx/preference/Preference;->notifyChanged()V |
| | |
| | 195 | ····:cond_0 |
| | 196 | ····return-void |
| | 197 | .end·method |