Offset 1, 155 lines modifiedOffset 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·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
  
6 .field·private·mShowChevron:Z16 .field·private·mShowChevron:Z
  
 17 .field·private·mUxRestricted:Z
  
  
7 #·direct·methods18 #·direct·methods
8 .method·public·constructor·<init>(Landroid/content/Context;)V19 .method·public·constructor·<init>(Landroid/content/Context;)V
9 ····.locals·120 ····.locals·0
  
10 ····.line·5621 ····.line·60
11 ····invoke-direct·{p0,·p1},·Landroidx/preference/EditTextPreference;-><init>(Landroid/content/Context;)V22 ····invoke-direct·{p0,·p1},·Landroidx/preference/EditTextPreference;-><init>(Landroid/content/Context;)V
  
12 ····const/4·v0,·0x123 ····const/4·p1,·0x0
  
13 ····.line·3724 ····.line·43
14 ····iput-boolean·v0,·p0,·Lcom/android/car/ui/preference/CarUiEditTextPreference;->mShowChevron:Z25 ····iput-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiEditTextPreference;->mUxRestricted:Z
  
 26 ····const/4·p1,·0x1
  
15 ····.line·5727 ····.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-void29 ····return-void
18 .end·method30 .end·method
  
19 .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;)V31 .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
20 ····.locals·032 ····.locals·0
  
21 ····.line·5133 ····.line·56
22 ····invoke-direct·{p0,·p1,·p2},·Landroidx/preference/EditTextPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V34 ····invoke-direct·{p0,·p1,·p2},·Landroidx/preference/EditTextPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
  
23 ····const/4·p2,·0x135 ····const/4·p1,·0x0
  
24 ····.line·3736 ····.line·43
25 ····iput-boolean·p2,·p0,·Lcom/android/car/ui/preference/CarUiEditTextPreference;->mShowChevron:Z37 ····iput-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiEditTextPreference;->mUxRestricted:Z
  
 38 ····const/4·p1,·0x1
  
26 ····.line·5239 ····.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-void41 ····return-void
29 .end·method42 .end·method
  
30 .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V43 .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
31 ····.locals·044 ····.locals·0
  
32 ····.line·4645 ····.line·52
33 ····invoke-direct·{p0,·p1,·p2,·p3},·Landroidx/preference/EditTextPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V46 ····invoke-direct·{p0,·p1,·p2,·p3},·Landroidx/preference/EditTextPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
  
34 ····const/4·p2,·0x147 ····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·4751 ····.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-void53 ····return-void
40 .end·method54 .end·method
  
41 .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V55 .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V
42 ····.locals·056 ····.locals·0
  
43 ····.line·4157 ····.line·48
44 ····invoke-direct·{p0,·p1,·p2,·p3,·p4},·Landroidx/preference/EditTextPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V58 ····invoke-direct·{p0,·p1,·p2,·p3,·p4},·Landroidx/preference/EditTextPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V
  
45 ····const/4·p2,·0x159 ····const/4·p1,·0x0
  
46 ····.line·3760 ····.line·43
47 ····iput-boolean·p2,·p0,·Lcom/android/car/ui/preference/CarUiEditTextPreference;->mShowChevron:Z61 ····iput-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiEditTextPreference;->mUxRestricted:Z
  
 62 ····const/4·p1,·0x1
  
48 ····.line·4263 ····.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-void65 ····return-void
51 .end·method66 .end·method
  
  
52 #·virtual·methods67 #·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·183 ····.locals·1
  
55 ····.line·6984 ····.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:I86 ····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·p188 ····move-result-object·p1
  
60 ····return-object·p189 ····return-object·p1
61 .end·method90 .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()V97 .method·public·onAttached()V
63 ····.locals·298 ····.locals·2
  
64 ····.line·7499 ····.line·77
65 ····invoke-super·{p0},·Landroidx/preference/Preference;->onAttached()V100 ····invoke-super·{p0},·Landroidx/preference/Preference;->onAttached()V
  
66 ····.line·76101 ····.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·v0105 ····move-result-object·v0
  
70 ····sget·v1,·Lcom/android/car/ui/R$bool;->car_ui_preference_show_chevron:I106 ····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)Z107 ····invoke-virtual·{v0,·v1},·Landroid/content/res/Resources;->getBoolean(I)Z
  
72 ····move-result·v0108 ····move-result·v0
  
73 ····if-eqz·v0,·:cond_1109 ····if-eqz·v0,·:cond_1
  
74 ····.line·79110 ····.line·82
75 ····iget-boolean·v0,·p0,·Lcom/android/car/ui/preference/CarUiEditTextPreference;->mShowChevron:Z111 ····iget-boolean·v0,·p0,·Lcom/android/car/ui/preference/CarUiEditTextPreference;->mShowChevron:Z
  
76 ····if-nez·v0,·:cond_0112 ····if-nez·v0,·:cond_0
  
77 ····goto·:goto_0113 ····goto·:goto_0
  
78 ····.line·83114 ····.line·86
79 ····:cond_0115 ····:cond_0
80 ····sget·v0,·Lcom/android/car/ui/R$layout;->car_ui_preference_chevron:I116 ····sget·v0,·Lcom/android/car/ui/R$layout;->car_ui_preference_chevron:I
  
81 ····invoke-virtual·{p0,·v0},·Landroidx/preference/Preference;->setWidgetLayoutResource(I)V117 ····invoke-virtual·{p0,·v0},·Landroidx/preference/Preference;->setWidgetLayoutResource(I)V
  
82 ····:cond_1118 ····:cond_1
83 ····:goto_0119 ····:goto_0
84 ····return-void120 ····return-void
85 .end·method121 .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)V173 .method·public·setShowChevron(Z)V
87 ····.locals·0174 ····.locals·0
  
88 ····.line·87175 ····.line·90
89 ····iput-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiEditTextPreference;->mShowChevron:Z176 ····iput-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiEditTextPreference;->mShowChevron:Z
  
90 ····return-void177 ····return-void
91 .end·method178 .end·method
  
92 .method·protected·setTwoActionLayout()V179 .method·protected·setTwoActionLayout()V
93 ····.locals·1180 ····.locals·1
  
94 ····.line·61181 ····.line·64
95 ····sget·v0,·Lcom/android/car/ui/R$layout;->car_ui_two_action_preference:I182 ····sget·v0,·Lcom/android/car/ui/R$layout;->car_ui_two_action_preference:I
  
96 ····invoke-virtual·{p0,·v0},·Landroidx/preference/Preference;->setLayoutResource(I)V183 ····invoke-virtual·{p0,·v0},·Landroidx/preference/Preference;->setLayoutResource(I)V
  
97 ····return-void184 ····return-void
98 .end·method185 .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