| | | |
Offset 11, 22 lines modified | Offset 11, 26 lines modified |
| |
| |
11 | #·instance·fields | 11 | #·instance·fields |
12 | .field·private·mIconContainer:Landroid/view/View; | 12 | .field·private·mIconContainer:Landroid/view/View; |
| |
13 | .field·private·mIconView:Landroid/widget/ImageView; | 13 | .field·private·mIconView:Landroid/widget/ImageView; |
| |
| 14 | .field·private·mIsRotaryEnabledLayout:Z |
| |
14 | .field·private·final·mMenuItem:Lcom/android/car/ui/toolbar/MenuItem; | 15 | .field·private·final·mMenuItem:Lcom/android/car/ui/toolbar/MenuItem; |
| |
15 | .field·private·final·mMenuItemIconSize:I | 16 | .field·private·final·mMenuItemIconSize:I |
| |
16 | .field·private·final·mParentView:Landroid/view/ViewGroup; | 17 | .field·private·final·mParentView:Landroid/view/ViewGroup; |
| |
17 | .field·private·mSwitch:Landroid/widget/Switch; | 18 | .field·private·mSwitch:Landroid/widget/Switch; |
| |
| 19 | .field·private·mTextContainer:Landroid/view/View; |
| |
18 | .field·private·mTextView:Landroid/widget/TextView; | 20 | .field·private·mTextView:Landroid/widget/TextView; |
| |
19 | .field·private·mTextWithIconView:Landroid/widget/TextView; | 21 | .field·private·mTextWithIconView:Landroid/widget/TextView; |
| |
20 | .field·private·mToolbarState:Lcom/android/car/ui/toolbar/Toolbar$State; | 22 | .field·private·mToolbarState:Lcom/android/car/ui/toolbar/Toolbar$State; |
| |
21 | .field·private·mView:Landroid/view/View; | 23 | .field·private·mView:Landroid/view/View; |
Offset 51, 120 lines modified | Offset 55, 145 lines modified |
| |
51 | ····return-void | 55 | ····return-void |
52 | .end·method | 56 | .end·method |
| |
53 | .method·constructor·<init>(Lcom/android/car/ui/toolbar/MenuItem;Landroid/view/ViewGroup;)V | 57 | .method·constructor·<init>(Lcom/android/car/ui/toolbar/MenuItem;Landroid/view/ViewGroup;)V |
54 | ····.locals·0 | 58 | ····.locals·0 |
| |
55 | ····.line·69 | 59 | ····.line·73 |
56 | ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V | 60 | ····invoke-direct·{p0},·Ljava/lang/Object;-><init>()V |
| |
57 | ····.line·70 | 61 | ····.line·74 |
58 | ····iput-object·p1,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mMenuItem:Lcom/android/car/ui/toolbar/MenuItem; | 62 | ····iput-object·p1,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mMenuItem:Lcom/android/car/ui/toolbar/MenuItem; |
| |
59 | ····.line·71 | 63 | ····.line·75 |
60 | ····iput-object·p2,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mParentView:Landroid/view/ViewGroup; | 64 | ····iput-object·p2,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mParentView:Landroid/view/ViewGroup; |
| |
61 | ····.line·72 | 65 | ····.line·76 |
62 | ····invoke-virtual·{p1,·p0},·Lcom/android/car/ui/toolbar/MenuItem;->setListener(Lcom/android/car/ui/toolbar/MenuItem$Listener;)V | 66 | ····invoke-virtual·{p1,·p0},·Lcom/android/car/ui/toolbar/MenuItem;->setListener(Lcom/android/car/ui/toolbar/MenuItem$Listener;)V |
| |
63 | ····.line·74 | 67 | ····.line·78 |
64 | ····invoke-virtual·{p2},·Landroid/view/ViewGroup;->getContext()Landroid/content/Context; | 68 | ····invoke-virtual·{p2},·Landroid/view/ViewGroup;->getContext()Landroid/content/Context; |
| |
65 | ····move-result-object·p1 | 69 | ····move-result-object·p1 |
| |
66 | ····invoke-virtual·{p1},·Landroid/content/Context;->getResources()Landroid/content/res/Resources; | 70 | ····invoke-virtual·{p1},·Landroid/content/Context;->getResources()Landroid/content/res/Resources; |
| |
67 | ····move-result-object·p1 | 71 | ····move-result-object·p1 |
| |
68 | ····sget·p2,·Lcom/android/car/ui/R$dimen;->car_ui_toolbar_menu_item_icon_size:I | 72 | ····sget·p2,·Lcom/android/car/ui/R$dimen;->car_ui_toolbar_menu_item_icon_size:I |
| |
69 | ····.line·75 | 73 | ····.line·79 |
70 | ····invoke-virtual·{p1,·p2},·Landroid/content/res/Resources;->getDimensionPixelSize(I)I | 74 | ····invoke-virtual·{p1,·p2},·Landroid/content/res/Resources;->getDimensionPixelSize(I)I |
| |
71 | ····move-result·p1 | 75 | ····move-result·p1 |
| |
72 | ····iput·p1,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mMenuItemIconSize:I | 76 | ····iput·p1,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mMenuItemIconSize:I |
| |
73 | ····return-void | 77 | ····return-void |
74 | .end·method | 78 | .end·method |
| |
75 | .method·private·synthetic·lambda$createView$0(Landroidx/core/util/Consumer;Landroid/view/View;ILandroid/view/ViewGroup;)V | 79 | .method·private·synthetic·lambda$createView$0(Landroidx/core/util/Consumer;Landroid/view/View;ILandroid/view/ViewGroup;)V |
76 | ····.locals·0 | 80 | ····.locals·0 |
| |
77 | ····.line·99 | 81 | ····.line·103 |
78 | ····iput-object·p2,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mView:Landroid/view/View; | 82 | ····iput-object·p2,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mView:Landroid/view/View; |
| |
79 | ····.line·101 | 83 | ····.line·105 |
80 | ····sget·p3,·Lcom/android/car/ui/R$id;->car_ui_toolbar_menu_item_icon_container:I | 84 | ····sget·p3,·Lcom/android/car/ui/R$id;->car_ui_toolbar_menu_item_icon_container:I |
| |
81 | ····.line·102 | 85 | ····.line·106 |
82 | ····invoke-static·{p2,·p3},·Lcom/android/car/ui/utils/CarUiUtils;->requireViewByRefId(Landroid/view/View;I)Landroid/view/View; | 86 | ····invoke-static·{p2,·p3},·Lcom/android/car/ui/utils/CarUiUtils;->requireViewByRefId(Landroid/view/View;I)Landroid/view/View; |
| |
83 | ····move-result-object·p2 | 87 | ····move-result-object·p2 |
| |
84 | ····iput-object·p2,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mIconContainer:Landroid/view/View; | 88 | ····iput-object·p2,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mIconContainer:Landroid/view/View; |
| |
85 | ····.line·103 | 89 | ····.line·107 |
86 | ····iget-object·p2,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mView:Landroid/view/View; | 90 | ····iget-object·p2,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mView:Landroid/view/View; |
| |
87 | ····sget·p3,·Lcom/android/car/ui/R$id;->car_ui_toolbar_menu_item_icon:I | 91 | ····sget·p3,·Lcom/android/car/ui/R$id;->car_ui_toolbar_menu_item_icon:I |
| |
88 | ····invoke-static·{p2,·p3},·Lcom/android/car/ui/utils/CarUiUtils;->requireViewByRefId(Landroid/view/View;I)Landroid/view/View; | 92 | ····invoke-static·{p2,·p3},·Lcom/android/car/ui/utils/CarUiUtils;->requireViewByRefId(Landroid/view/View;I)Landroid/view/View; |
| |
89 | ····move-result-object·p2 | 93 | ····move-result-object·p2 |
| |
90 | ····check-cast·p2,·Landroid/widget/ImageView; | 94 | ····check-cast·p2,·Landroid/widget/ImageView; |
| |
91 | ····iput-object·p2,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mIconView:Landroid/widget/ImageView; | 95 | ····iput-object·p2,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mIconView:Landroid/widget/ImageView; |
| |
92 | ····.line·104 | 96 | ····.line·108 |
93 | ····iget-object·p2,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mView:Landroid/view/View; | 97 | ····iget-object·p2,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mView:Landroid/view/View; |
| |
94 | ····sget·p3,·Lcom/android/car/ui/R$id;->car_ui_toolbar_menu_item_switch:I | 98 | ····sget·p3,·Lcom/android/car/ui/R$id;->car_ui_toolbar_menu_item_switch:I |
| |
95 | ····invoke-static·{p2,·p3},·Lcom/android/car/ui/utils/CarUiUtils;->requireViewByRefId(Landroid/view/View;I)Landroid/view/View; | 99 | ····invoke-static·{p2,·p3},·Lcom/android/car/ui/utils/CarUiUtils;->requireViewByRefId(Landroid/view/View;I)Landroid/view/View; |
| |
96 | ····move-result-object·p2 | 100 | ····move-result-object·p2 |
| |
97 | ····check-cast·p2,·Landroid/widget/Switch; | 101 | ····check-cast·p2,·Landroid/widget/Switch; |
| |
98 | ····iput-object·p2,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mSwitch:Landroid/widget/Switch; | 102 | ····iput-object·p2,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mSwitch:Landroid/widget/Switch; |
| |
99 | ····.line·105 | 103 | ····.line·110 |
| 104 | ····iget-object·p2,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mView:Landroid/view/View; |
| |
| 105 | ····sget·p3,·Lcom/android/car/ui/R$id;->car_ui_toolbar_menu_item_text_container:I |
| |
| 106 | ····.line·111 |
| 107 | ····invoke-static·{p2,·p3},·Lcom/android/car/ui/utils/CarUiUtils;->findViewByRefId(Landroid/view/View;I)Landroid/view/View; |
| |
| 108 | ····move-result-object·p2 |
| |
| 109 | ····iput-object·p2,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mTextContainer:Landroid/view/View; |
| |
| 110 | ····if-eqz·p2,·:cond_0 |
| |
| 111 | ····const/4·p2,·0x1 |
| |
| 112 | ····goto·:goto_0 |
| |
| 113 | ····:cond_0 |
| 114 | ····const/4·p2,·0x0 |
| |
| 115 | ····.line·112 |
| 116 | ····:goto_0 |
| 117 | ····iput-boolean·p2,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mIsRotaryEnabledLayout:Z |
| |
| 118 | ····.line·113 |
100 | ····iget-object·p2,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mView:Landroid/view/View; | 119 | ····iget-object·p2,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mView:Landroid/view/View; |
| |
101 | ····sget·p3,·Lcom/android/car/ui/R$id;->car_ui_toolbar_menu_item_text:I | 120 | ····sget·p3,·Lcom/android/car/ui/R$id;->car_ui_toolbar_menu_item_text:I |
| |
102 | ····invoke-static·{p2,·p3},·Lcom/android/car/ui/utils/CarUiUtils;->requireViewByRefId(Landroid/view/View;I)Landroid/view/View; | 121 | ····invoke-static·{p2,·p3},·Lcom/android/car/ui/utils/CarUiUtils;->requireViewByRefId(Landroid/view/View;I)Landroid/view/View; |
| |
103 | ····move-result-object·p2 | 122 | ····move-result-object·p2 |
| |
104 | ····check-cast·p2,·Landroid/widget/TextView; | 123 | ····check-cast·p2,·Landroid/widget/TextView; |
| |
105 | ····iput-object·p2,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mTextView:Landroid/widget/TextView; | 124 | ····iput-object·p2,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mTextView:Landroid/widget/TextView; |
| |
106 | ····.line·106 | 125 | ····.line·114 |
107 | ····iget-object·p2,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mView:Landroid/view/View; | 126 | ····iget-object·p2,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mView:Landroid/view/View; |
| |
108 | ····sget·p3,·Lcom/android/car/ui/R$id;->car_ui_toolbar_menu_item_text_with_icon:I | 127 | ····sget·p3,·Lcom/android/car/ui/R$id;->car_ui_toolbar_menu_item_text_with_icon:I |
| |
109 | ····.line·107 | 128 | ····.line·115 |
110 | ····invoke-static·{p2,·p3},·Lcom/android/car/ui/utils/CarUiUtils;->requireViewByRefId(Landroid/view/View;I)Landroid/view/View; | 129 | ····invoke-static·{p2,·p3},·Lcom/android/car/ui/utils/CarUiUtils;->requireViewByRefId(Landroid/view/View;I)Landroid/view/View; |
| |
111 | ····move-result-object·p2 | 130 | ····move-result-object·p2 |
| |
112 | ····check-cast·p2,·Landroid/widget/TextView; | 131 | ····check-cast·p2,·Landroid/widget/TextView; |
| |
113 | ····iput-object·p2,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mTextWithIconView:Landroid/widget/TextView; | 132 | ····iput-object·p2,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mTextWithIconView:Landroid/widget/TextView; |
| |
114 | ····.line·109 | 133 | ····.line·117 |
115 | ····invoke-direct·{p0},·Lcom/android/car/ui/toolbar/MenuItemRenderer;->updateView()V | 134 | ····invoke-direct·{p0},·Lcom/android/car/ui/toolbar/MenuItemRenderer;->updateView()V |
| |
116 | ····.line·110 | 135 | ····.line·118 |
117 | ····iget-object·p2,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mView:Landroid/view/View; | 136 | ····iget-object·p2,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mView:Landroid/view/View; |
| |
118 | ····invoke-interface·{p1,·p2},·Landroidx/core/util/Consumer;->accept(Ljava/lang/Object;)V | 137 | ····invoke-interface·{p1,·p2},·Landroidx/core/util/Consumer;->accept(Ljava/lang/Object;)V |
| |
119 | ····return-void | 138 | ····return-void |
120 | .end·method | 139 | .end·method |
| |
Offset 176, 15 lines modified | Offset 205, 15 lines modified |
176 | ····:try_start_0 | 205 | ····:try_start_0 |
177 | ····new-array·v0,·v0,·[Ljava/lang/Object; | 206 | ····new-array·v0,·v0,·[Ljava/lang/Object; |
| |
178 | ····const/4·v1,·0x0 | 207 | ····const/4·v1,·0x0 |
| |
179 | ····aput-object·p2,·v0,·v1 | 208 | ····aput-object·p2,·v0,·v1 |
| |
180 | ····.line·249 | 209 | ····.line·275 |
181 | ····invoke-virtual·{p0,·p1,·v0},·Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; | 210 | ····invoke-virtual·{p0,·p1,·v0},·Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; |
182 | ····:try_end_0 | 211 | ····:try_end_0 |
183 | ····.catch·Ljava/lang/reflect/InvocationTargetException;·{:try_start_0·..·:try_end_0}·:catch_1 | 212 | ····.catch·Ljava/lang/reflect/InvocationTargetException;·{:try_start_0·..·:try_end_0}·:catch_1 |
184 | ····.catch·Ljava/lang/IllegalAccessException;·{:try_start_0·..·:try_end_0}·:catch_0 | 213 | ····.catch·Ljava/lang/IllegalAccessException;·{:try_start_0·..·:try_end_0}·:catch_0 |
| |
185 | ····return-void | 214 | ····return-void |
| |
Offset 192, 29 lines modified | Offset 221, 29 lines modified |
192 | ····move-exception·p0 | 221 | ····move-exception·p0 |
| |
193 | ····goto·:goto_0 | 222 | ····goto·:goto_0 |
| |
194 | ····:catch_1 | 223 | ····:catch_1 |
195 | ····move-exception·p0 | 224 | ····move-exception·p0 |
| |
196 | ····.line·251 | 225 | ····.line·277 |
197 | ····:goto_0 | 226 | ····:goto_0 |
198 | ····new-instance·p1,·Ljava/lang/RuntimeException; | 227 | ····new-instance·p1,·Ljava/lang/RuntimeException; |
| |
199 | ····const-string·p2,·"Couldn\'t·call·the·MenuItem\'s·listener" | 228 | ····const-string·p2,·"Couldn\'t·call·the·MenuItem\'s·listener" |
| |
200 | ····invoke-direct·{p1,·p2,·p0},·Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V | 229 | ····invoke-direct·{p1,·p2,·p0},·Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V |
| |
201 | ····throw·p1 | 230 | ····throw·p1 |
202 | .end·method | 231 | .end·method |
| |
203 | .method·private·synthetic·lambda$updateView$1(Landroid/view/View;)V | 232 | .method·private·synthetic·lambda$updateView$1(Landroid/view/View;)V |
204 | ····.locals·0 | 233 | ····.locals·0 |
| |
205 | ····.line·165 | 234 | ····.line·191 |
206 | ····iget-object·p1,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mMenuItem:Lcom/android/car/ui/toolbar/MenuItem; | 235 | ····iget-object·p1,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mMenuItem:Lcom/android/car/ui/toolbar/MenuItem; |
| |
207 | ····invoke-virtual·{p1},·Lcom/android/car/ui/toolbar/MenuItem;->performClick()V | 236 | ····invoke-virtual·{p1},·Lcom/android/car/ui/toolbar/MenuItem;->performClick()V |
| |
208 | ····return-void | 237 | ····return-void |
209 | .end·method | 238 | .end·method |
| |
Offset 231, 183 lines modified | Offset 260, 183 lines modified |
| |
231 | ····const/4·v1,·0x2 | 260 | ····const/4·v1,·0x2 |
| |
232 | ····const/4·v2,·0x0 | 261 | ····const/4·v2,·0x0 |
| |
233 | ····const-string·v3,·"MenuItem" | 262 | ····const-string·v3,·"MenuItem" |
| |
234 | ····.line·215 | 263 | ····.line·241 |
235 | ····invoke-interface·{v0,·v1,·v2,·v3},·Landroid/content/res/XmlResourceParser;->require(ILjava/lang/String;Ljava/lang/String;)V | 264 | ····invoke-interface·{v0,·v1,·v2,·v3},·Landroid/content/res/XmlResourceParser;->require(ILjava/lang/String;Ljava/lang/String;)V |
| |
236 | ····.line·217 | 265 | ····.line·243 |
237 | ····sget-object·v1,·Lcom/android/car/ui/R$styleable;->CarUiToolbarMenuItem:[I | 266 | ····sget-object·v1,·Lcom/android/car/ui/R$styleable;->CarUiToolbarMenuItem:[I |
| |
238 | ····move-object/from16·v4,·p0 | 267 | ····move-object/from16·v4,·p0 |
| |
239 | ····move-object/from16·v5,·p2 | 268 | ····move-object/from16·v5,·p2 |
| |
240 | ····invoke-virtual·{v4,·v5,·v1},·Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray; | 269 | ····invoke-virtual·{v4,·v5,·v1},·Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray; |
| |
241 | ····move-result-object·v1 | 270 | ····move-result-object·v1 |
| |
242 | ····.line·219 | 271 | ····.line·245 |
243 | ····:try_start_0 | 272 | ····:try_start_0 |
244 | ····sget·v5,·Lcom/android/car/ui/R$styleable;->CarUiToolbarMenuItem_id:I | 273 | ····sget·v5,·Lcom/android/car/ui/R$styleable;->CarUiToolbarMenuItem_id:I |
| |
245 | ····const/4·v6,·-0x1 | 274 | ····const/4·v6,·-0x1 |
| |
246 | ····invoke-virtual·{v1,·v5,·v6},·Landroid/content/res/TypedArray;->getResourceId(II)I | 275 | ····invoke-virtual·{v1,·v5,·v6},·Landroid/content/res/TypedArray;->getResourceId(II)I |
| |
247 | ····move-result·v5 | 276 | ····move-result·v5 |
| |
248 | ····.line·220 | 277 | ····.line·246 |
249 | ····sget·v6,·Lcom/android/car/ui/R$styleable;->CarUiToolbarMenuItem_title:I | 278 | ····sget·v6,·Lcom/android/car/ui/R$styleable;->CarUiToolbarMenuItem_title:I |
| |
250 | ····invoke-virtual·{v1,·v6},·Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String; | 279 | ····invoke-virtual·{v1,·v6},·Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String; |
| |
251 | ····move-result-object·v6 | 280 | ····move-result-object·v6 |
| |
252 | ····.line·221 | 281 | ····.line·247 |
253 | ····sget·v7,·Lcom/android/car/ui/R$styleable;->CarUiToolbarMenuItem_icon:I | 282 | ····sget·v7,·Lcom/android/car/ui/R$styleable;->CarUiToolbarMenuItem_icon:I |
| |
254 | ····invoke-virtual·{v1,·v7},·Landroid/content/res/TypedArray;->getDrawable(I)Landroid/graphics/drawable/Drawable; | 283 | ····invoke-virtual·{v1,·v7},·Landroid/content/res/TypedArray;->getDrawable(I)Landroid/graphics/drawable/Drawable; |
| |
255 | ····move-result-object·v7 | 284 | ····move-result-object·v7 |
| |
256 | ····.line·222 | 285 | ····.line·248 |
257 | ····sget·v8,·Lcom/android/car/ui/R$styleable;->CarUiToolbarMenuItem_search:I | 286 | ····sget·v8,·Lcom/android/car/ui/R$styleable;->CarUiToolbarMenuItem_search:I |
| |
258 | ····const/4·v9,·0x0 | 287 | ····const/4·v9,·0x0 |
| |
259 | ····invoke-virtual·{v1,·v8,·v9},·Landroid/content/res/TypedArray;->getBoolean(IZ)Z | 288 | ····invoke-virtual·{v1,·v8,·v9},·Landroid/content/res/TypedArray;->getBoolean(IZ)Z |
| |
260 | ····move-result·v8 | 289 | ····move-result·v8 |
| |
261 | ····.line·223 | 290 | ····.line·249 |
262 | ····sget·v10,·Lcom/android/car/ui/R$styleable;->CarUiToolbarMenuItem_settings:I | 291 | ····sget·v10,·Lcom/android/car/ui/R$styleable;->CarUiToolbarMenuItem_settings:I |
| |
263 | ····invoke-virtual·{v1,·v10,·v9},·Landroid/content/res/TypedArray;->getBoolean(IZ)Z | 292 | ····invoke-virtual·{v1,·v10,·v9},·Landroid/content/res/TypedArray;->getBoolean(IZ)Z |
| |
264 | ····move-result·v10 | 293 | ····move-result·v10 |
| |
265 | ····.line·224 | 294 | ····.line·250 |
266 | ····sget·v11,·Lcom/android/car/ui/R$styleable;->CarUiToolbarMenuItem_tinted:I | 295 | ····sget·v11,·Lcom/android/car/ui/R$styleable;->CarUiToolbarMenuItem_tinted:I |
| |
267 | ····const/4·v12,·0x1 | 296 | ····const/4·v12,·0x1 |
| |
268 | ····invoke-virtual·{v1,·v11,·v12},·Landroid/content/res/TypedArray;->getBoolean(IZ)Z | 297 | ····invoke-virtual·{v1,·v11,·v12},·Landroid/content/res/TypedArray;->getBoolean(IZ)Z |
| |
269 | ····move-result·v11 | 298 | ····move-result·v11 |
| |
270 | ····.line·225 | 299 | ····.line·251 |
271 | ····sget·v13,·Lcom/android/car/ui/R$styleable;->CarUiToolbarMenuItem_visible:I | 300 | ····sget·v13,·Lcom/android/car/ui/R$styleable;->CarUiToolbarMenuItem_visible:I |
| |
272 | ····invoke-virtual·{v1,·v13,·v12},·Landroid/content/res/TypedArray;->getBoolean(IZ)Z | 301 | ····invoke-virtual·{v1,·v13,·v12},·Landroid/content/res/TypedArray;->getBoolean(IZ)Z |
| |
273 | ····move-result·v13 | 302 | ····move-result·v13 |
| |
274 | ····.line·226 | 303 | ····.line·252 |
275 | ····sget·v14,·Lcom/android/car/ui/R$styleable;->CarUiToolbarMenuItem_showIconAndTitle:I | 304 | ····sget·v14,·Lcom/android/car/ui/R$styleable;->CarUiToolbarMenuItem_showIconAndTitle:I |
| |
276 | ····invoke-virtual·{v1,·v14,·v9},·Landroid/content/res/TypedArray;->getBoolean(IZ)Z | 305 | ····invoke-virtual·{v1,·v14,·v9},·Landroid/content/res/TypedArray;->getBoolean(IZ)Z |
| |
277 | ····move-result·v14 | 306 | ····move-result·v14 |
| |
278 | ····.line·228 | 307 | ····.line·254 |
279 | ····sget·v15,·Lcom/android/car/ui/R$styleable;->CarUiToolbarMenuItem_checkable:I | 308 | ····sget·v15,·Lcom/android/car/ui/R$styleable;->CarUiToolbarMenuItem_checkable:I |
| |
280 | ····invoke-virtual·{v1,·v15,·v9},·Landroid/content/res/TypedArray;->getBoolean(IZ)Z | 309 | ····invoke-virtual·{v1,·v15,·v9},·Landroid/content/res/TypedArray;->getBoolean(IZ)Z |
| |
281 | ····move-result·v15 | 310 | ····move-result·v15 |
| |
282 | ····.line·229 | 311 | ····.line·255 |
283 | ····sget·v2,·Lcom/android/car/ui/R$styleable;->CarUiToolbarMenuItem_checked:I | 312 | ····sget·v2,·Lcom/android/car/ui/R$styleable;->CarUiToolbarMenuItem_checked:I |
| |
284 | ····invoke-virtual·{v1,·v2,·v9},·Landroid/content/res/TypedArray;->getBoolean(IZ)Z | 313 | ····invoke-virtual·{v1,·v2,·v9},·Landroid/content/res/TypedArray;->getBoolean(IZ)Z |
| |
285 | ····move-result·v2 | 314 | ····move-result·v2 |
| |
286 | ····.line·230 | 315 | ····.line·256 |
287 | ····sget·v12,·Lcom/android/car/ui/R$styleable;->CarUiToolbarMenuItem_checked:I | 316 | ····sget·v12,·Lcom/android/car/ui/R$styleable;->CarUiToolbarMenuItem_checked:I |
| |
288 | ····invoke-virtual·{v1,·v12},·Landroid/content/res/TypedArray;->hasValue(I)Z | 317 | ····invoke-virtual·{v1,·v12},·Landroid/content/res/TypedArray;->hasValue(I)Z |
| |
289 | ····move-result·v12 | 318 | ····move-result·v12 |
| |
290 | ····.line·231 | 319 | ····.line·257 |
291 | ····sget·v4,·Lcom/android/car/ui/R$styleable;->CarUiToolbarMenuItem_activatable:I | 320 | ····sget·v4,·Lcom/android/car/ui/R$styleable;->CarUiToolbarMenuItem_activatable:I |
| |
292 | ····invoke-virtual·{v1,·v4,·v9},·Landroid/content/res/TypedArray;->getBoolean(IZ)Z | 321 | ····invoke-virtual·{v1,·v4,·v9},·Landroid/content/res/TypedArray;->getBoolean(IZ)Z |
| |
293 | ····move-result·v4 | 322 | ····move-result·v4 |
| |
294 | ····move/from16·v16,·v4 | 323 | ····move/from16·v16,·v4 |
| |
295 | ····.line·232 | 324 | ····.line·258 |
296 | ····sget·v4,·Lcom/android/car/ui/R$styleable;->CarUiToolbarMenuItem_activated:I | 325 | ····sget·v4,·Lcom/android/car/ui/R$styleable;->CarUiToolbarMenuItem_activated:I |
| |
297 | ····invoke-virtual·{v1,·v4,·v9},·Landroid/content/res/TypedArray;->getBoolean(IZ)Z | 326 | ····invoke-virtual·{v1,·v4,·v9},·Landroid/content/res/TypedArray;->getBoolean(IZ)Z |
| |
298 | ····move-result·v4 | 327 | ····move-result·v4 |
| |
299 | ····.line·233 | 328 | ····.line·259 |
300 | ····sget·v9,·Lcom/android/car/ui/R$styleable;->CarUiToolbarMenuItem_activated:I | 329 | ····sget·v9,·Lcom/android/car/ui/R$styleable;->CarUiToolbarMenuItem_activated:I |
| |
301 | ····invoke-virtual·{v1,·v9},·Landroid/content/res/TypedArray;->hasValue(I)Z | 330 | ····invoke-virtual·{v1,·v9},·Landroid/content/res/TypedArray;->hasValue(I)Z |
| |
302 | ····move-result·v9 | 331 | ····move-result·v9 |
| |
303 | ····move/from16·v18,·v4 | 332 | ····move/from16·v18,·v4 |
| |
304 | ····.line·234 | 333 | ····.line·260 |
305 | ····sget·v4,·Lcom/android/car/ui/R$styleable;->CarUiToolbarMenuItem_displayBehavior:I | 334 | ····sget·v4,·Lcom/android/car/ui/R$styleable;->CarUiToolbarMenuItem_displayBehavior:I |
| |
306 | ····move/from16·v19,·v9 | 335 | ····move/from16·v19,·v9 |
| |
307 | ····const/4·v9,·0x0 | 336 | ····const/4·v9,·0x0 |
| |
308 | ····invoke-virtual·{v1,·v4,·v9},·Landroid/content/res/TypedArray;->getInt(II)I | 337 | ····invoke-virtual·{v1,·v4,·v9},·Landroid/content/res/TypedArray;->getInt(II)I |
| |
309 | ····move-result·v4 | 338 | ····move-result·v4 |
| |
310 | ····move/from16·v20,·v2 | 339 | ····move/from16·v20,·v2 |
| |
311 | ····.line·235 | 340 | ····.line·261 |
312 | ····sget·v2,·Lcom/android/car/ui/R$styleable;->CarUiToolbarMenuItem_uxRestrictions:I | 341 | ····sget·v2,·Lcom/android/car/ui/R$styleable;->CarUiToolbarMenuItem_uxRestrictions:I |
| |
313 | ····invoke-virtual·{v1,·v2,·v9},·Landroid/content/res/TypedArray;->getInt(II)I | 342 | ····invoke-virtual·{v1,·v2,·v9},·Landroid/content/res/TypedArray;->getInt(II)I |
| |
314 | ····move-result·v2 | 343 | ····move-result·v2 |
| |
315 | ····.line·236 | 344 | ····.line·262 |
316 | ····sget·v9,·Lcom/android/car/ui/R$styleable;->CarUiToolbarMenuItem_onClick:I | 345 | ····sget·v9,·Lcom/android/car/ui/R$styleable;->CarUiToolbarMenuItem_onClick:I |
| |
317 | ····invoke-virtual·{v1,·v9},·Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String; | 346 | ····invoke-virtual·{v1,·v9},·Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String; |
| |
318 | ····move-result-object·v9 | 347 | ····move-result-object·v9 |
319 | ····:try_end_0 | 348 | ····:try_end_0 |
320 | ····.catchall·{:try_start_0·..·:try_end_0}·:catchall_1 | 349 | ····.catchall·{:try_start_0·..·:try_end_0}·:catchall_1 |
| |
321 | ····if-eqz·v9,·:cond_1 | 350 | ····if-eqz·v9,·:cond_1 |
| |
322 | ····move-object/from16·v21,·v1 | 351 | ····move-object/from16·v21,·v1 |
| |
323 | ····.line·240 | 352 | ····.line·266 |
324 | ····:try_start_1 | 353 | ····:try_start_1 |
325 | ····invoke-static/range·{p0·..·p0},·Lcom/android/car/ui/utils/CarUiUtils;->getActivity(Landroid/content/Context;)Landroid/app/Activity; | 354 | ····invoke-static/range·{p0·..·p0},·Lcom/android/car/ui/utils/CarUiUtils;->getActivity(Landroid/content/Context;)Landroid/app/Activity; |
| |
326 | ····move-result-object·v1 | 355 | ····move-result-object·v1 |
327 | ····:try_end_1 | 356 | ····:try_end_1 |
328 | ····.catchall·{:try_start_1·..·:try_end_1}·:catchall_0 | 357 | ····.catchall·{:try_start_1·..·:try_end_1}·:catchall_0 |
| |
329 | ····if-eqz·v1,·:cond_0 | 358 | ····if-eqz·v1,·:cond_0 |
| |
330 | ····move/from16·v22,·v12 | 359 | ····move/from16·v22,·v12 |
| |
331 | ····.line·246 | 360 | ····.line·272 |
332 | ····:try_start_2 | 361 | ····:try_start_2 |
333 | ····invoke-virtual·{v1},·Ljava/lang/Object;->getClass()Ljava/lang/Class; | 362 | ····invoke-virtual·{v1},·Ljava/lang/Object;->getClass()Ljava/lang/Class; |
| |
334 | ····move-result-object·v12 | 363 | ····move-result-object·v12 |
| |
335 | ····move/from16·v23,·v15 | 364 | ····move/from16·v23,·v15 |
| |
Offset 421, 28 lines modified | Offset 450, 28 lines modified |
| |
421 | ····aput-object·v24,·v15,·v17 | 450 | ····aput-object·v24,·v15,·v17 |
| |
422 | ····invoke-virtual·{v12,·v9,·v15},·Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method; | 451 | ····invoke-virtual·{v12,·v9,·v15},·Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method; |
| |
423 | ····move-result-object·v12 | 452 | ····move-result-object·v12 |
| |
424 | ····.line·247 | 453 | ····.line·273 |
425 | ····new-instance·v15,·Lcom/android/car/ui/toolbar/-$$Lambda$MenuItemRenderer$o4Q9ccZfugknqOARB2tvDnC1XDw; | 454 | ····new-instance·v15,·Lcom/android/car/ui/toolbar/-$$Lambda$MenuItemRenderer$o4Q9ccZfugknqOARB2tvDnC1XDw; |
| |
426 | ····invoke-direct·{v15,·v12,·v1},·Lcom/android/car/ui/toolbar/-$$Lambda$MenuItemRenderer$o4Q9ccZfugknqOARB2tvDnC1XDw;-><init>(Ljava/lang/reflect/Method;Landroid/app/Activity;)V | 455 | ····invoke-direct·{v15,·v12,·v1},·Lcom/android/car/ui/toolbar/-$$Lambda$MenuItemRenderer$o4Q9ccZfugknqOARB2tvDnC1XDw;-><init>(Ljava/lang/reflect/Method;Landroid/app/Activity;)V |
427 | ····:try_end_2 | 456 | ····:try_end_2 |
428 | ····.catch·Ljava/lang/NoSuchMethodException;·{:try_start_2·..·:try_end_2}·:catch_0 | 457 | ····.catch·Ljava/lang/NoSuchMethodException;·{:try_start_2·..·:try_end_2}·:catch_0 |
429 | ····.catchall·{:try_start_2·..·:try_end_2}·:catchall_0 | 458 | ····.catchall·{:try_start_2·..·:try_end_2}·:catchall_0 |
| |
430 | ····goto·:goto_0 | 459 | ····goto·:goto_0 |
| |
431 | ····:catch_0 | 460 | ····:catch_0 |
432 | ····move-exception·v0 | 461 | ····move-exception·v0 |
| |
433 | ····.line·255 | 462 | ····.line·281 |
434 | ····:try_start_3 | 463 | ····:try_start_3 |
435 | ····new-instance·v1,·Ljava/lang/RuntimeException; | 464 | ····new-instance·v1,·Ljava/lang/RuntimeException; |
| |
436 | ····new-instance·v2,·Ljava/lang/StringBuilder; | 465 | ····new-instance·v2,·Ljava/lang/StringBuilder; |
| |
437 | ····invoke-direct·{v2},·Ljava/lang/StringBuilder;-><init>()V | 466 | ····invoke-direct·{v2},·Ljava/lang/StringBuilder;-><init>()V |
| |
Offset 460, 15 lines modified | Offset 489, 15 lines modified |
| |
460 | ····move-result-object·v2 | 489 | ····move-result-object·v2 |
| |
461 | ····invoke-direct·{v1,·v2,·v0},·Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V | 490 | ····invoke-direct·{v1,·v2,·v0},·Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V |
| |
462 | ····throw·v1 | 491 | ····throw·v1 |
| |
463 | ····.line·242 | 492 | ····.line·268 |
464 | ····:cond_0 | 493 | ····:cond_0 |
465 | ····new-instance·v0,·Ljava/lang/RuntimeException; | 494 | ····new-instance·v0,·Ljava/lang/RuntimeException; |
| |
466 | ····const-string·v1,·"Couldn\'t·find·an·activity·for·the·MenuItem" | 495 | ····const-string·v1,·"Couldn\'t·find·an·activity·for·the·MenuItem" |
| |
467 | ····invoke-direct·{v0,·v1},·Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V | 496 | ····invoke-direct·{v0,·v1},·Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V |
| |
Offset 487, 139 lines modified | Offset 516, 139 lines modified |
487 | ····move/from16·v23,·v15 | 516 | ····move/from16·v23,·v15 |
| |
488 | ····const/4·v15,·0x0 | 517 | ····const/4·v15,·0x0 |
| |
489 | ····:goto_0 | 518 | ····:goto_0 |
490 | ····if-nez·v4,·:cond_2 | 519 | ····if-nez·v4,·:cond_2 |
| |
491 | ····.line·261 | 520 | ····.line·287 |
492 | ····sget-object·v1,·Lcom/android/car/ui/toolbar/MenuItem$DisplayBehavior;->ALWAYS:Lcom/android/car/ui/toolbar/MenuItem$DisplayBehavior; | 521 | ····sget-object·v1,·Lcom/android/car/ui/toolbar/MenuItem$DisplayBehavior;->ALWAYS:Lcom/android/car/ui/toolbar/MenuItem$DisplayBehavior; |
| |
493 | ····goto·:goto_1 | 522 | ····goto·:goto_1 |
| |
494 | ····.line·262 | 523 | ····.line·288 |
495 | ····:cond_2 | 524 | ····:cond_2 |
496 | ····sget-object·v1,·Lcom/android/car/ui/toolbar/MenuItem$DisplayBehavior;->NEVER:Lcom/android/car/ui/toolbar/MenuItem$DisplayBehavior; | 525 | ····sget-object·v1,·Lcom/android/car/ui/toolbar/MenuItem$DisplayBehavior;->NEVER:Lcom/android/car/ui/toolbar/MenuItem$DisplayBehavior; |
| |
497 | ····.line·264 | 526 | ····.line·290 |
498 | ····:goto_1 | 527 | ····:goto_1 |
499 | ····invoke-interface/range·{p1·..·p1},·Landroid/content/res/XmlResourceParser;->next()I | 528 | ····invoke-interface/range·{p1·..·p1},·Landroid/content/res/XmlResourceParser;->next()I |
| |
500 | ····const/4·v4,·0x3 | 529 | ····const/4·v4,·0x3 |
| |
501 | ····const/4·v9,·0x0 | 530 | ····const/4·v9,·0x0 |
| |
502 | ····.line·265 | 531 | ····.line·291 |
503 | ····invoke-interface·{v0,·v4,·v9,·v3},·Landroid/content/res/XmlResourceParser;->require(ILjava/lang/String;Ljava/lang/String;)V | 532 | ····invoke-interface·{v0,·v4,·v9,·v3},·Landroid/content/res/XmlResourceParser;->require(ILjava/lang/String;Ljava/lang/String;)V |
| |
504 | ····.line·267 | 533 | ····.line·293 |
505 | ····invoke-static/range·{p0·..·p0},·Lcom/android/car/ui/toolbar/MenuItem;->builder(Landroid/content/Context;)Lcom/android/car/ui/toolbar/MenuItem$Builder; | 534 | ····invoke-static/range·{p0·..·p0},·Lcom/android/car/ui/toolbar/MenuItem;->builder(Landroid/content/Context;)Lcom/android/car/ui/toolbar/MenuItem$Builder; |
| |
506 | ····move-result-object·v0 | 535 | ····move-result-object·v0 |
| |
507 | ····.line·268 | 536 | ····.line·294 |
508 | ····invoke-virtual·{v0,·v5},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->setId(I)Lcom/android/car/ui/toolbar/MenuItem$Builder; | 537 | ····invoke-virtual·{v0,·v5},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->setId(I)Lcom/android/car/ui/toolbar/MenuItem$Builder; |
| |
509 | ····move-result-object·v0 | 538 | ····move-result-object·v0 |
| |
510 | ····.line·269 | 539 | ····.line·295 |
511 | ····invoke-virtual·{v0,·v6},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->setTitle(Ljava/lang/CharSequence;)Lcom/android/car/ui/toolbar/MenuItem$Builder; | 540 | ····invoke-virtual·{v0,·v6},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->setTitle(Ljava/lang/CharSequence;)Lcom/android/car/ui/toolbar/MenuItem$Builder; |
| |
512 | ····move-result-object·v0 | 541 | ····move-result-object·v0 |
| |
513 | ····.line·270 | 542 | ····.line·296 |
514 | ····invoke-virtual·{v0,·v7},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->setIcon(Landroid/graphics/drawable/Drawable;)Lcom/android/car/ui/toolbar/MenuItem$Builder; | 543 | ····invoke-virtual·{v0,·v7},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->setIcon(Landroid/graphics/drawable/Drawable;)Lcom/android/car/ui/toolbar/MenuItem$Builder; |
| |
515 | ····move-result-object·v0 | 544 | ····move-result-object·v0 |
| |
516 | ····.line·271 | 545 | ····.line·297 |
517 | ····invoke-virtual·{v0,·v15},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->setOnClickListener(Lcom/android/car/ui/toolbar/MenuItem$OnClickListener;)Lcom/android/car/ui/toolbar/MenuItem$Builder; | 546 | ····invoke-virtual·{v0,·v15},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->setOnClickListener(Lcom/android/car/ui/toolbar/MenuItem$OnClickListener;)Lcom/android/car/ui/toolbar/MenuItem$Builder; |
| |
518 | ····move-result-object·v0 | 547 | ····move-result-object·v0 |
| |
519 | ····.line·272 | 548 | ····.line·298 |
520 | ····invoke-virtual·{v0,·v2},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->setUxRestrictions(I)Lcom/android/car/ui/toolbar/MenuItem$Builder; | 549 | ····invoke-virtual·{v0,·v2},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->setUxRestrictions(I)Lcom/android/car/ui/toolbar/MenuItem$Builder; |
| |
521 | ····move-result-object·v0 | 550 | ····move-result-object·v0 |
| |
522 | ····.line·273 | 551 | ····.line·299 |
523 | ····invoke-virtual·{v0,·v11},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->setTinted(Z)Lcom/android/car/ui/toolbar/MenuItem$Builder; | 552 | ····invoke-virtual·{v0,·v11},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->setTinted(Z)Lcom/android/car/ui/toolbar/MenuItem$Builder; |
| |
524 | ····move-result-object·v0 | 553 | ····move-result-object·v0 |
| |
525 | ····.line·274 | 554 | ····.line·300 |
526 | ····invoke-virtual·{v0,·v13},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->setVisible(Z)Lcom/android/car/ui/toolbar/MenuItem$Builder; | 555 | ····invoke-virtual·{v0,·v13},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->setVisible(Z)Lcom/android/car/ui/toolbar/MenuItem$Builder; |
| |
527 | ····move-result-object·v0 | 556 | ····move-result-object·v0 |
| |
528 | ····.line·275 | 557 | ····.line·301 |
529 | ····invoke-virtual·{v0,·v14},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->setShowIconAndTitle(Z)Lcom/android/car/ui/toolbar/MenuItem$Builder; | 558 | ····invoke-virtual·{v0,·v14},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->setShowIconAndTitle(Z)Lcom/android/car/ui/toolbar/MenuItem$Builder; |
| |
530 | ····move-result-object·v0 | 559 | ····move-result-object·v0 |
| |
531 | ····.line·276 | 560 | ····.line·302 |
532 | ····invoke-virtual·{v0,·v1},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->setDisplayBehavior(Lcom/android/car/ui/toolbar/MenuItem$DisplayBehavior;)Lcom/android/car/ui/toolbar/MenuItem$Builder; | 561 | ····invoke-virtual·{v0,·v1},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->setDisplayBehavior(Lcom/android/car/ui/toolbar/MenuItem$DisplayBehavior;)Lcom/android/car/ui/toolbar/MenuItem$Builder; |
| |
533 | ····move-result-object·v0 | 562 | ····move-result-object·v0 |
| |
534 | ····if-eqz·v8,·:cond_3 | 563 | ····if-eqz·v8,·:cond_3 |
| |
535 | ····.line·279 | 564 | ····.line·305 |
536 | ····invoke-virtual·{v0},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->setToSearch()Lcom/android/car/ui/toolbar/MenuItem$Builder; | 565 | ····invoke-virtual·{v0},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->setToSearch()Lcom/android/car/ui/toolbar/MenuItem$Builder; |
| |
537 | ····:cond_3 | 566 | ····:cond_3 |
538 | ····if-eqz·v10,·:cond_4 | 567 | ····if-eqz·v10,·:cond_4 |
| |
539 | ····.line·283 | 568 | ····.line·309 |
540 | ····invoke-virtual·{v0},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->setToSettings()Lcom/android/car/ui/toolbar/MenuItem$Builder; | 569 | ····invoke-virtual·{v0},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->setToSettings()Lcom/android/car/ui/toolbar/MenuItem$Builder; |
| |
541 | ····:cond_4 | 570 | ····:cond_4 |
542 | ····if-nez·v23,·:cond_5 | 571 | ····if-nez·v23,·:cond_5 |
| |
543 | ····if-eqz·v22,·:cond_6 | 572 | ····if-eqz·v22,·:cond_6 |
| |
544 | ····:cond_5 | 573 | ····:cond_5 |
545 | ····move/from16·v1,·v20 | 574 | ····move/from16·v1,·v20 |
| |
546 | ····.line·287 | 575 | ····.line·313 |
547 | ····invoke-virtual·{v0,·v1},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->setChecked(Z)Lcom/android/car/ui/toolbar/MenuItem$Builder; | 576 | ····invoke-virtual·{v0,·v1},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->setChecked(Z)Lcom/android/car/ui/toolbar/MenuItem$Builder; |
| |
548 | ····:cond_6 | 577 | ····:cond_6 |
549 | ····if-nez·v16,·:cond_7 | 578 | ····if-nez·v16,·:cond_7 |
| |
550 | ····if-eqz·v19,·:cond_8 | 579 | ····if-eqz·v19,·:cond_8 |
| |
551 | ····:cond_7 | 580 | ····:cond_7 |
552 | ····move/from16·v1,·v18 | 581 | ····move/from16·v1,·v18 |
| |
553 | ····.line·291 | 582 | ····.line·317 |
554 | ····invoke-virtual·{v0,·v1},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->setActivated(Z)Lcom/android/car/ui/toolbar/MenuItem$Builder; | 583 | ····invoke-virtual·{v0,·v1},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->setActivated(Z)Lcom/android/car/ui/toolbar/MenuItem$Builder; |
| |
555 | ····.line·294 | 584 | ····.line·320 |
556 | ····:cond_8 | 585 | ····:cond_8 |
557 | ····invoke-virtual·{v0},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->build()Lcom/android/car/ui/toolbar/MenuItem; | 586 | ····invoke-virtual·{v0},·Lcom/android/car/ui/toolbar/MenuItem$Builder;->build()Lcom/android/car/ui/toolbar/MenuItem; |
| |
558 | ····move-result-object·v0 | 587 | ····move-result-object·v0 |
559 | ····:try_end_3 | 588 | ····:try_end_3 |
560 | ····.catchall·{:try_start_3·..·:try_end_3}·:catchall_0 | 589 | ····.catchall·{:try_start_3·..·:try_end_3}·:catchall_0 |
| |
561 | ····.line·296 | 590 | ····.line·322 |
562 | ····invoke-virtual/range·{v21·..·v21},·Landroid/content/res/TypedArray;->recycle()V | 591 | ····invoke-virtual/range·{v21·..·v21},·Landroid/content/res/TypedArray;->recycle()V |
| |
563 | ····return-object·v0 | 592 | ····return-object·v0 |
| |
564 | ····:catchall_1 | 593 | ····:catchall_1 |
565 | ····move-exception·v0 | 594 | ····move-exception·v0 |
| |
566 | ····move-object/from16·v21,·v1 | 595 | ····move-object/from16·v21,·v1 |
| |
567 | ····:goto_2 | 596 | ····:goto_2 |
568 | ····invoke-virtual/range·{v21·..·v21},·Landroid/content/res/TypedArray;->recycle()V | 597 | ····invoke-virtual/range·{v21·..·v21},·Landroid/content/res/TypedArray;->recycle()V |
| |
569 | ····.line·297 | 598 | ····.line·323 |
570 | ····throw·v0 | 599 | ····throw·v0 |
571 | .end·method | 600 | .end·method |
| |
572 | .method·static·readMenuItemList(Landroid/content/Context;I)Ljava/util/List; | 601 | .method·static·readMenuItemList(Landroid/content/Context;I)Ljava/util/List; |
573 | ····.locals·5 | 602 | ····.locals·5 |
574 | ····.annotation·system·Ldalvik/annotation/Signature; | 603 | ····.annotation·system·Ldalvik/annotation/Signature; |
575 | ········value·=·{ | 604 | ········value·=·{ |
Offset 630, 101 lines modified | Offset 659, 101 lines modified |
630 | ············"Lcom/android/car/ui/toolbar/MenuItem;", | 659 | ············"Lcom/android/car/ui/toolbar/MenuItem;", |
631 | ············">;" | 660 | ············">;" |
632 | ········} | 661 | ········} |
633 | ····.end·annotation | 662 | ····.end·annotation |
| |
634 | ····if-nez·p1,·:cond_0 | 663 | ····if-nez·p1,·:cond_0 |
| |
635 | ····.line·192 | 664 | ····.line·218 |
636 | ····new-instance·p0,·Ljava/util/ArrayList; | 665 | ····new-instance·p0,·Ljava/util/ArrayList; |
| |
637 | ····invoke-direct·{p0},·Ljava/util/ArrayList;-><init>()V | 666 | ····invoke-direct·{p0},·Ljava/util/ArrayList;-><init>()V |
| |
638 | ····return-object·p0 | 667 | ····return-object·p0 |
| |
639 | ····.line·195 | 668 | ····.line·221 |
640 | ····:cond_0 | 669 | ····:cond_0 |
641 | ····:try_start_0 | 670 | ····:try_start_0 |
642 | ····invoke-virtual·{p0},·Landroid/content/Context;->getResources()Landroid/content/res/Resources; | 671 | ····invoke-virtual·{p0},·Landroid/content/Context;->getResources()Landroid/content/res/Resources; |
| |
643 | ····move-result-object·v0 | 672 | ····move-result-object·v0 |
| |
644 | ····invoke-virtual·{v0,·p1},·Landroid/content/res/Resources;->getXml(I)Landroid/content/res/XmlResourceParser; | 673 | ····invoke-virtual·{v0,·p1},·Landroid/content/res/Resources;->getXml(I)Landroid/content/res/XmlResourceParser; |
| |
645 | ····move-result-object·p1 | 674 | ····move-result-object·p1 |
646 | ····:try_end_0 | 675 | ····:try_end_0 |
647 | ····.catch·Lorg/xmlpull/v1/XmlPullParserException;·{:try_start_0·..·:try_end_0}·:catch_1 | 676 | ····.catch·Lorg/xmlpull/v1/XmlPullParserException;·{:try_start_0·..·:try_end_0}·:catch_1 |
648 | ····.catch·Ljava/io/IOException;·{:try_start_0·..·:try_end_0}·:catch_0 | 677 | ····.catch·Ljava/io/IOException;·{:try_start_0·..·:try_end_0}·:catch_0 |
| |
649 | ····.line·196 | 678 | ····.line·222 |
650 | ····:try_start_1 | 679 | ····:try_start_1 |
651 | ····invoke-static·{p1},·Landroid/util/Xml;->asAttributeSet(Lorg/xmlpull/v1/XmlPullParser;)Landroid/util/AttributeSet; | 680 | ····invoke-static·{p1},·Landroid/util/Xml;->asAttributeSet(Lorg/xmlpull/v1/XmlPullParser;)Landroid/util/AttributeSet; |
| |
652 | ····move-result-object·v0 | 681 | ····move-result-object·v0 |
| |
653 | ····.line·197 | 682 | ····.line·223 |
654 | ····new-instance·v1,·Ljava/util/ArrayList; | 683 | ····new-instance·v1,·Ljava/util/ArrayList; |
| |
655 | ····invoke-direct·{v1},·Ljava/util/ArrayList;-><init>()V | 684 | ····invoke-direct·{v1},·Ljava/util/ArrayList;-><init>()V |
| |
656 | ····.line·199 | 685 | ····.line·225 |
657 | ····invoke-interface·{p1},·Landroid/content/res/XmlResourceParser;->next()I | 686 | ····invoke-interface·{p1},·Landroid/content/res/XmlResourceParser;->next()I |
| |
658 | ····.line·200 | 687 | ····.line·226 |
659 | ····invoke-interface·{p1},·Landroid/content/res/XmlResourceParser;->next()I | 688 | ····invoke-interface·{p1},·Landroid/content/res/XmlResourceParser;->next()I |
| |
660 | ····const/4·v2,·0x2 | 689 | ····const/4·v2,·0x2 |
| |
661 | ····const/4·v3,·0x0 | 690 | ····const/4·v3,·0x0 |
| |
662 | ····const-string·v4,·"MenuItems" | 691 | ····const-string·v4,·"MenuItems" |
| |
663 | ····.line·201 | 692 | ····.line·227 |
664 | ····invoke-interface·{p1,·v2,·v3,·v4},·Landroid/content/res/XmlResourceParser;->require(ILjava/lang/String;Ljava/lang/String;)V | 693 | ····invoke-interface·{p1,·v2,·v3,·v4},·Landroid/content/res/XmlResourceParser;->require(ILjava/lang/String;Ljava/lang/String;)V |
| |
665 | ····.line·202 | 694 | ····.line·228 |
666 | ····:goto_0 | 695 | ····:goto_0 |
667 | ····invoke-interface·{p1},·Landroid/content/res/XmlResourceParser;->next()I | 696 | ····invoke-interface·{p1},·Landroid/content/res/XmlResourceParser;->next()I |
| |
668 | ····move-result·v2 | 697 | ····move-result·v2 |
| |
669 | ····const/4·v3,·0x3 | 698 | ····const/4·v3,·0x3 |
| |
670 | ····if-eq·v2,·v3,·:cond_1 | 699 | ····if-eq·v2,·v3,·:cond_1 |
| |
671 | ····.line·203 | 700 | ····.line·229 |
672 | ····invoke-static·{p0,·p1,·v0},·Lcom/android/car/ui/toolbar/MenuItemRenderer;->readMenuItem(Landroid/content/Context;Landroid/content/res/XmlResourceParser;Landroid/util/AttributeSet;)Lcom/android/car/ui/toolbar/MenuItem; | 701 | ····invoke-static·{p0,·p1,·v0},·Lcom/android/car/ui/toolbar/MenuItemRenderer;->readMenuItem(Landroid/content/Context;Landroid/content/res/XmlResourceParser;Landroid/util/AttributeSet;)Lcom/android/car/ui/toolbar/MenuItem; |
| |
673 | ····move-result-object·v2 | 702 | ····move-result-object·v2 |
| |
674 | ····invoke-interface·{v1,·v2},·Ljava/util/List;->add(Ljava/lang/Object;)Z | 703 | ····invoke-interface·{v1,·v2},·Ljava/util/List;->add(Ljava/lang/Object;)Z |
675 | ····:try_end_1 | 704 | ····:try_end_1 |
676 | ····.catchall·{:try_start_1·..·:try_end_1}·:catchall_0 | 705 | ····.catchall·{:try_start_1·..·:try_end_1}·:catchall_0 |
| |
677 | ····goto·:goto_0 | 706 | ····goto·:goto_0 |
| |
678 | ····:cond_1 | 707 | ····:cond_1 |
679 | ····if-eqz·p1,·:cond_2 | 708 | ····if-eqz·p1,·:cond_2 |
| |
680 | ····.line·207 | 709 | ····.line·233 |
681 | ····:try_start_2 | 710 | ····:try_start_2 |
682 | ····invoke-interface·{p1},·Landroid/content/res/XmlResourceParser;->close()V | 711 | ····invoke-interface·{p1},·Landroid/content/res/XmlResourceParser;->close()V |
683 | ····:try_end_2 | 712 | ····:try_end_2 |
684 | ····.catch·Lorg/xmlpull/v1/XmlPullParserException;·{:try_start_2·..·:try_end_2}·:catch_1 | 713 | ····.catch·Lorg/xmlpull/v1/XmlPullParserException;·{:try_start_2·..·:try_end_2}·:catch_1 |
685 | ····.catch·Ljava/io/IOException;·{:try_start_2·..·:try_end_2}·:catch_0 | 714 | ····.catch·Ljava/io/IOException;·{:try_start_2·..·:try_end_2}·:catch_0 |
| |
686 | ····:cond_2 | 715 | ····:cond_2 |
687 | ····return-object·v1 | 716 | ····return-object·v1 |
| |
688 | ····:catchall_0 | 717 | ····:catchall_0 |
689 | ····move-exception·p0 | 718 | ····move-exception·p0 |
| |
690 | ····if-eqz·p1,·:cond_3 | 719 | ····if-eqz·p1,·:cond_3 |
| |
691 | ····.line·195 | 720 | ····.line·221 |
692 | ····:try_start_3 | 721 | ····:try_start_3 |
693 | ····invoke-interface·{p1},·Landroid/content/res/XmlResourceParser;->close()V | 722 | ····invoke-interface·{p1},·Landroid/content/res/XmlResourceParser;->close()V |
694 | ····:try_end_3 | 723 | ····:try_end_3 |
695 | ····.catchall·{:try_start_3·..·:try_end_3}·:catchall_1 | 724 | ····.catchall·{:try_start_3·..·:try_end_3}·:catchall_1 |
| |
696 | ····goto·:goto_1 | 725 | ····goto·:goto_1 |
| |
Offset 745, 38 lines modified | Offset 774, 38 lines modified |
745 | ····move-exception·p0 | 774 | ····move-exception·p0 |
| |
746 | ····goto·:goto_2 | 775 | ····goto·:goto_2 |
| |
747 | ····:catch_1 | 776 | ····:catch_1 |
748 | ····move-exception·p0 | 777 | ····move-exception·p0 |
| |
749 | ····.line·208 | 778 | ····.line·234 |
750 | ····:goto_2 | 779 | ····:goto_2 |
751 | ····new-instance·p1,·Ljava/lang/RuntimeException; | 780 | ····new-instance·p1,·Ljava/lang/RuntimeException; |
| |
752 | ····const-string·v0,·"Unable·to·parse·Menu·Items" | 781 | ····const-string·v0,·"Unable·to·parse·Menu·Items" |
| |
753 | ····invoke-direct·{p1,·v0,·p0},·Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V | 782 | ····invoke-direct·{p1,·v0,·p0},·Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V |
| |
754 | ····throw·p1 | 783 | ····throw·p1 |
755 | .end·method | 784 | .end·method |
| |
756 | .method·private·recursiveSetEnabledAndDrawableState(Landroid/view/View;)V | 785 | .method·private·recursiveSetEnabledAndDrawableState(Landroid/view/View;)V |
757 | ····.locals·3 | 786 | ····.locals·3 |
| |
758 | ····.line·173 | 787 | ····.line·199 |
759 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mMenuItem:Lcom/android/car/ui/toolbar/MenuItem; | 788 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mMenuItem:Lcom/android/car/ui/toolbar/MenuItem; |
| |
760 | ····invoke-virtual·{v0},·Lcom/android/car/ui/toolbar/MenuItem;->isEnabled()Z | 789 | ····invoke-virtual·{v0},·Lcom/android/car/ui/toolbar/MenuItem;->isEnabled()Z |
| |
761 | ····move-result·v0 | 790 | ····move-result·v0 |
| |
762 | ····invoke-virtual·{p1,·v0},·Landroid/view/View;->setEnabled(Z)V | 791 | ····invoke-virtual·{p1,·v0},·Landroid/view/View;->setEnabled(Z)V |
| |
763 | ····.line·175 | 792 | ····.line·201 |
764 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mMenuItem:Lcom/android/car/ui/toolbar/MenuItem; | 793 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mMenuItem:Lcom/android/car/ui/toolbar/MenuItem; |
| |
765 | ····invoke-virtual·{v0},·Lcom/android/car/ui/toolbar/MenuItem;->isRestricted()Z | 794 | ····invoke-virtual·{v0},·Lcom/android/car/ui/toolbar/MenuItem;->isRestricted()Z |
| |
766 | ····move-result·v0 | 795 | ····move-result·v0 |
| |
767 | ····if-eqz·v0,·:cond_0 | 796 | ····if-eqz·v0,·:cond_0 |
Offset 784, 65 lines modified | Offset 813, 65 lines modified |
784 | ····sget-object·v0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->RESTRICTED_STATE:[I | 813 | ····sget-object·v0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->RESTRICTED_STATE:[I |
| |
785 | ····goto·:goto_0 | 814 | ····goto·:goto_0 |
| |
786 | ····:cond_0 | 815 | ····:cond_0 |
787 | ····const/4·v0,·0x0 | 816 | ····const/4·v0,·0x0 |
| |
788 | ····.line·176 | 817 | ····.line·202 |
789 | ····:goto_0 | 818 | ····:goto_0 |
790 | ····instance-of·v1,·p1,·Landroid/widget/ImageView; | 819 | ····instance-of·v1,·p1,·Landroid/widget/ImageView; |
| |
791 | ····if-eqz·v1,·:cond_1 | 820 | ····if-eqz·v1,·:cond_1 |
| |
792 | ····.line·177 | 821 | ····.line·203 |
793 | ····move-object·v1,·p1 | 822 | ····move-object·v1,·p1 |
| |
794 | ····check-cast·v1,·Landroid/widget/ImageView; | 823 | ····check-cast·v1,·Landroid/widget/ImageView; |
| |
795 | ····const/4·v2,·0x1 | 824 | ····const/4·v2,·0x1 |
| |
796 | ····invoke-virtual·{v1,·v0,·v2},·Landroid/widget/ImageView;->setImageState([IZ)V | 825 | ····invoke-virtual·{v1,·v0,·v2},·Landroid/widget/ImageView;->setImageState([IZ)V |
| |
797 | ····goto·:goto_1 | 826 | ····goto·:goto_1 |
| |
798 | ····.line·178 | 827 | ····.line·204 |
799 | ····:cond_1 | 828 | ····:cond_1 |
800 | ····instance-of·v1,·p1,·Lcom/android/car/ui/uxr/DrawableStateView; | 829 | ····instance-of·v1,·p1,·Lcom/android/car/ui/uxr/DrawableStateView; |
| |
801 | ····if-eqz·v1,·:cond_2 | 830 | ····if-eqz·v1,·:cond_2 |
| |
802 | ····.line·179 | 831 | ····.line·205 |
803 | ····move-object·v1,·p1 | 832 | ····move-object·v1,·p1 |
| |
804 | ····check-cast·v1,·Lcom/android/car/ui/uxr/DrawableStateView; | 833 | ····check-cast·v1,·Lcom/android/car/ui/uxr/DrawableStateView; |
| |
805 | ····invoke-interface·{v1,·v0},·Lcom/android/car/ui/uxr/DrawableStateView;->setDrawableState([I)V | 834 | ····invoke-interface·{v1,·v0},·Lcom/android/car/ui/uxr/DrawableStateView;->setDrawableState([I)V |
| |
806 | ····.line·182 | 835 | ····.line·208 |
807 | ····:cond_2 | 836 | ····:cond_2 |
808 | ····:goto_1 | 837 | ····:goto_1 |
809 | ····instance-of·v0,·p1,·Landroid/view/ViewGroup; | 838 | ····instance-of·v0,·p1,·Landroid/view/ViewGroup; |
| |
810 | ····if-eqz·v0,·:cond_3 | 839 | ····if-eqz·v0,·:cond_3 |
| |
811 | ····.line·183 | 840 | ····.line·209 |
812 | ····check-cast·p1,·Landroid/view/ViewGroup; | 841 | ····check-cast·p1,·Landroid/view/ViewGroup; |
| |
813 | ····const/4·v0,·0x0 | 842 | ····const/4·v0,·0x0 |
| |
814 | ····.line·184 | 843 | ····.line·210 |
815 | ····:goto_2 | 844 | ····:goto_2 |
816 | ····invoke-virtual·{p1},·Landroid/view/ViewGroup;->getChildCount()I | 845 | ····invoke-virtual·{p1},·Landroid/view/ViewGroup;->getChildCount()I |
| |
817 | ····move-result·v1 | 846 | ····move-result·v1 |
| |
818 | ····if-ge·v0,·v1,·:cond_3 | 847 | ····if-ge·v0,·v1,·:cond_3 |
| |
819 | ····.line·185 | 848 | ····.line·211 |
820 | ····invoke-virtual·{p1,·v0},·Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View; | 849 | ····invoke-virtual·{p1,·v0},·Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View; |
| |
821 | ····move-result-object·v1 | 850 | ····move-result-object·v1 |
| |
822 | ····invoke-direct·{p0,·v1},·Lcom/android/car/ui/toolbar/MenuItemRenderer;->recursiveSetEnabledAndDrawableState(Landroid/view/View;)V | 851 | ····invoke-direct·{p0,·v1},·Lcom/android/car/ui/toolbar/MenuItemRenderer;->recursiveSetEnabledAndDrawableState(Landroid/view/View;)V |
| |
823 | ····add-int/lit8·v0,·v0,·0x1 | 852 | ····add-int/lit8·v0,·v0,·0x1 |
Offset 852, 32 lines modified | Offset 881, 32 lines modified |
852 | ····:cond_3 | 881 | ····:cond_3 |
853 | ····return-void | 882 | ····return-void |
854 | .end·method | 883 | .end·method |
| |
855 | .method·private·updateView()V | 884 | .method·private·updateView()V |
856 | ····.locals·8 | 885 | ····.locals·8 |
| |
857 | ····.line·115 | 886 | ····.line·123 |
858 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mView:Landroid/view/View; | 887 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mView:Landroid/view/View; |
| |
859 | ····if-nez·v0,·:cond_0 | 888 | ····if-nez·v0,·:cond_0 |
| |
860 | ····return-void | 889 | ····return-void |
| |
861 | ····.line·119 | 890 | ····.line·127 |
862 | ····:cond_0 | 891 | ····:cond_0 |
863 | ····iget-object·v1,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mMenuItem:Lcom/android/car/ui/toolbar/MenuItem; | 892 | ····iget-object·v1,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mMenuItem:Lcom/android/car/ui/toolbar/MenuItem; |
| |
864 | ····invoke-virtual·{v1},·Lcom/android/car/ui/toolbar/MenuItem;->getId()I | 893 | ····invoke-virtual·{v1},·Lcom/android/car/ui/toolbar/MenuItem;->getId()I |
| |
865 | ····move-result·v1 | 894 | ····move-result·v1 |
| |
866 | ····invoke-virtual·{v0,·v1},·Landroid/view/View;->setId(I)V | 895 | ····invoke-virtual·{v0,·v1},·Landroid/view/View;->setId(I)V |
| |
867 | ····.line·121 | 896 | ····.line·129 |
868 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mMenuItem:Lcom/android/car/ui/toolbar/MenuItem; | 897 | ····iget-object·v0,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mMenuItem:Lcom/android/car/ui/toolbar/MenuItem; |
| |
869 | ····invoke-virtual·{v0},·Lcom/android/car/ui/toolbar/MenuItem;->getIcon()Landroid/graphics/drawable/Drawable; | 898 | ····invoke-virtual·{v0},·Lcom/android/car/ui/toolbar/MenuItem;->getIcon()Landroid/graphics/drawable/Drawable; |
| |
870 | ····move-result-object·v0 | 899 | ····move-result-object·v0 |
| |
871 | ····const/4·v1,·0x1 | 900 | ····const/4·v1,·0x1 |
Offset 889, 318 lines modified | Offset 918, 356 lines modified |
889 | ····move·v0,·v1 | 918 | ····move·v0,·v1 |
| |
890 | ····goto·:goto_0 | 919 | ····goto·:goto_0 |
| |
891 | ····:cond_1 | 920 | ····:cond_1 |
892 | ····move·v0,·v2 | 921 | ····move·v0,·v2 |
| |
893 | ····.line·122 | 922 | ····.line·130 |
894 | ····:goto_0 | 923 | ····:goto_0 |
895 | ····iget-object·v3,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mMenuItem:Lcom/android/car/ui/toolbar/MenuItem; | 924 | ····iget-object·v3,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mMenuItem:Lcom/android/car/ui/toolbar/MenuItem; |
| |
896 | ····invoke-virtual·{v3},·Lcom/android/car/ui/toolbar/MenuItem;->getTitle()Ljava/lang/CharSequence; | 925 | ····invoke-virtual·{v3},·Lcom/android/car/ui/toolbar/MenuItem;->getTitle()Ljava/lang/CharSequence; |
| |
897 | ····move-result-object·v3 | 926 | ····move-result-object·v3 |
| |
898 | ····invoke-static·{v3},·Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z | 927 | ····invoke-static·{v3},·Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z |
| |
899 | ····move-result·v3 | 928 | ····move-result·v3 |
| |
900 | ····xor-int/2addr·v1,·v3 | 929 | ····xor-int/2addr·v1,·v3 |
| |
901 | ····.line·123 | 930 | ····.line·131 |
902 | ····iget-object·v3,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mMenuItem:Lcom/android/car/ui/toolbar/MenuItem; | 931 | ····iget-object·v3,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mMenuItem:Lcom/android/car/ui/toolbar/MenuItem; |
| |
903 | ····invoke-virtual·{v3},·Lcom/android/car/ui/toolbar/MenuItem;->isShowingIconAndTitle()Z | 932 | ····invoke-virtual·{v3},·Lcom/android/car/ui/toolbar/MenuItem;->isShowingIconAndTitle()Z |
| |
904 | ····move-result·v3 | 933 | ····move-result·v3 |
| |
905 | ····.line·124 | 934 | ····.line·132 |
906 | ····iget-object·v4,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mMenuItem:Lcom/android/car/ui/toolbar/MenuItem; | 935 | ····iget-object·v4,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mMenuItem:Lcom/android/car/ui/toolbar/MenuItem; |
| |
907 | ····invoke-virtual·{v4},·Lcom/android/car/ui/toolbar/MenuItem;->isCheckable()Z | 936 | ····invoke-virtual·{v4},·Lcom/android/car/ui/toolbar/MenuItem;->isCheckable()Z |
| |
908 | ····move-result·v4 | 937 | ····move-result·v4 |
| |
909 | ····.line·126 | 938 | ····.line·134 |
910 | ····iget-object·v5,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mMenuItem:Lcom/android/car/ui/toolbar/MenuItem; | 939 | ····iget-object·v5,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mMenuItem:Lcom/android/car/ui/toolbar/MenuItem; |
| |
911 | ····invoke-virtual·{v5},·Lcom/android/car/ui/toolbar/MenuItem;->isVisible()Z | 940 | ····invoke-virtual·{v5},·Lcom/android/car/ui/toolbar/MenuItem;->isVisible()Z |
| |
912 | ····move-result·v5 | 941 | ····move-result·v5 |
| |
913 | ····const/16·v6,·0x8 | 942 | ····const/16·v6,·0x8 |
| |
914 | ····if-eqz·v5,·:cond_a | 943 | ····if-eqz·v5,·:cond_e |
| |
915 | ····iget-object·v5,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mMenuItem:Lcom/android/car/ui/toolbar/MenuItem; | 944 | ····iget-object·v5,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mMenuItem:Lcom/android/car/ui/toolbar/MenuItem; |
| |
916 | ····.line·127 | 945 | ····.line·135 |
917 | ····invoke-virtual·{v5},·Lcom/android/car/ui/toolbar/MenuItem;->isSearch()Z | 946 | ····invoke-virtual·{v5},·Lcom/android/car/ui/toolbar/MenuItem;->isSearch()Z |
| |
918 | ····move-result·v5 | 947 | ····move-result·v5 |
| |
919 | ····if-eqz·v5,·:cond_2 | 948 | ····if-eqz·v5,·:cond_2 |
| |
920 | ····iget-object·v5,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mToolbarState:Lcom/android/car/ui/toolbar/Toolbar$State; | 949 | ····iget-object·v5,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mToolbarState:Lcom/android/car/ui/toolbar/Toolbar$State; |
| |
921 | ····sget-object·v7,·Lcom/android/car/ui/toolbar/Toolbar$State;->SEARCH:Lcom/android/car/ui/toolbar/Toolbar$State; | 950 | ····sget-object·v7,·Lcom/android/car/ui/toolbar/Toolbar$State;->SEARCH:Lcom/android/car/ui/toolbar/Toolbar$State; |
| |
922 | ····if-eq·v5,·v7,·:cond_a | 951 | ····if-eq·v5,·v7,·:cond_e |
| |
923 | ····:cond_2 | 952 | ····:cond_2 |
924 | ····if-nez·v4,·:cond_3 | 953 | ····if-nez·v4,·:cond_3 |
| |
925 | ····if-nez·v0,·:cond_3 | 954 | ····if-nez·v0,·:cond_3 |
| |
926 | ····if-nez·v1,·:cond_3 | 955 | ····if-nez·v1,·:cond_3 |
| |
927 | ····goto/16·:goto_4 | 956 | ····goto/16·:goto_7 |
| |
928 | ····.line·132 | 957 | ····.line·140 |
929 | ····:cond_3 | 958 | ····:cond_3 |
930 | ····iget-object·v5,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mView:Landroid/view/View; | 959 | ····iget-object·v5,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mView:Landroid/view/View; |
| |
931 | ····invoke-virtual·{v5,·v2},·Landroid/view/View;->setVisibility(I)V | 960 | ····invoke-virtual·{v5,·v2},·Landroid/view/View;->setVisibility(I)V |
| |
932 | ····.line·133 | 961 | ····.line·141 |
933 | ····iget-object·v5,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mView:Landroid/view/View; | 962 | ····iget-object·v5,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mView:Landroid/view/View; |
| |
934 | ····iget-object·v7,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mMenuItem:Lcom/android/car/ui/toolbar/MenuItem; | 963 | ····iget-object·v7,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mMenuItem:Lcom/android/car/ui/toolbar/MenuItem; |
| |
935 | ····invoke-virtual·{v7},·Lcom/android/car/ui/toolbar/MenuItem;->getTitle()Ljava/lang/CharSequence; | 964 | ····invoke-virtual·{v7},·Lcom/android/car/ui/toolbar/MenuItem;->getTitle()Ljava/lang/CharSequence; |
| |
936 | ····move-result-object·v7 | 965 | ····move-result-object·v7 |
| |
937 | ····invoke-virtual·{v5,·v7},·Landroid/view/View;->setContentDescription(Ljava/lang/CharSequence;)V | 966 | ····invoke-virtual·{v5,·v7},·Landroid/view/View;->setContentDescription(Ljava/lang/CharSequence;)V |
| |
938 | ····.line·135 | 967 | ····.line·145 |
939 | ····iget-object·v5,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mIconContainer:Landroid/view/View; | |
| |
940 | ····invoke-virtual·{v5,·v6},·Landroid/view/View;->setVisibility(I)V | |
| |
941 | ····.line·136 | |
942 | ····iget-object·v5,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mTextView:Landroid/widget/TextView; | 968 | ····iget-object·v5,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mTextView:Landroid/widget/TextView; |
| |
943 | ····invoke-virtual·{v5,·v6},·Landroid/widget/TextView;->setVisibility(I)V | 969 | ····invoke-virtual·{v5,·v6},·Landroid/widget/TextView;->setVisibility(I)V |
| |
944 | ····.line·137 | 970 | ····.line·146 |
945 | ····iget-object·v5,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mTextWithIconView:Landroid/widget/TextView; | 971 | ····iget-object·v5,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mTextWithIconView:Landroid/widget/TextView; |
| |
946 | ····invoke-virtual·{v5,·v6},·Landroid/widget/TextView;->setVisibility(I)V | 972 | ····invoke-virtual·{v5,·v6},·Landroid/widget/TextView;->setVisibility(I)V |
| |
947 | ····.line·138 | 973 | ····.line·147 |
948 | ····iget-object·v5,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mSwitch:Landroid/widget/Switch; | 974 | ····iget-object·v5,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mSwitch:Landroid/widget/Switch; |
| |
949 | ····invoke-virtual·{v5,·v6},·Landroid/widget/Switch;->setVisibility(I)V | 975 | ····invoke-virtual·{v5,·v6},·Landroid/widget/Switch;->setVisibility(I)V |
| |
950 | ····const/4·v5,·0x0 | 976 | ····const/4·v5,·0x0 |
| |
951 | ····if-eqz·v4,·:cond_4 | 977 | ····if-eqz·v4,·:cond_5 |
| |
952 | ····.line·140 | 978 | ····.line·149 |
953 | ····iget-object·v1,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mSwitch:Landroid/widget/Switch; | 979 | ····iget-object·v1,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mSwitch:Landroid/widget/Switch; |
| |
954 | ····iget-object·v3,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mMenuItem:Lcom/android/car/ui/toolbar/MenuItem; | 980 | ····iget-object·v3,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mMenuItem:Lcom/android/car/ui/toolbar/MenuItem; |
| |
955 | ····invoke-virtual·{v3},·Lcom/android/car/ui/toolbar/MenuItem;->isChecked()Z | 981 | ····invoke-virtual·{v3},·Lcom/android/car/ui/toolbar/MenuItem;->isChecked()Z |
| |
956 | ····move-result·v3 | 982 | ····move-result·v3 |
| |
957 | ····invoke-virtual·{v1,·v3},·Landroid/widget/Switch;->setChecked(Z)V | 983 | ····invoke-virtual·{v1,·v3},·Landroid/widget/Switch;->setChecked(Z)V |
| |
958 | ····.line·141 | 984 | ····.line·150 |
959 | ····iget-object·v1,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mSwitch:Landroid/widget/Switch; | 985 | ····iget-object·v1,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mSwitch:Landroid/widget/Switch; |
| |
960 | ····invoke-virtual·{v1,·v2},·Landroid/widget/Switch;->setVisibility(I)V | 986 | ····invoke-virtual·{v1,·v2},·Landroid/widget/Switch;->setVisibility(I)V |
| |
961 | ····goto·:goto_1 | 987 | ····.line·151 |
| 988 | ····iget-boolean·v1,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mIsRotaryEnabledLayout:Z |
| |
| 989 | ····if-eqz·v1,·:cond_4 |
| |
| 990 | ····:goto_1 |
| 991 | ····move·v1,·v6 |
| |
| 992 | ····move·v6,·v2 |
| |
| 993 | ····goto·:goto_3 |
| |
962 | ····:cond_4 | 994 | ····:cond_4 |
963 | ····if-eqz·v1,·:cond_5 | 995 | ····move·v1,·v6 |
| |
964 | ····if-eqz·v0,·:cond_5 | 996 | ····goto·:goto_3 |
| |
| 997 | ····:cond_5 |
| 998 | ····if-eqz·v1,·:cond_6 |
| |
965 | ····if-eqz·v3,·:cond_5 | 999 | ····if-eqz·v0,·:cond_6 |
| |
| 1000 | ····if-eqz·v3,·:cond_6 |
| |
966 | ····.line·143 | 1001 | ····.line·155 |
967 | ····iget-object·v1,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mMenuItem:Lcom/android/car/ui/toolbar/MenuItem; | 1002 | ····iget-object·v1,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mMenuItem:Lcom/android/car/ui/toolbar/MenuItem; |
| |
968 | ····invoke-virtual·{v1},·Lcom/android/car/ui/toolbar/MenuItem;->getIcon()Landroid/graphics/drawable/Drawable; | 1003 | ····invoke-virtual·{v1},·Lcom/android/car/ui/toolbar/MenuItem;->getIcon()Landroid/graphics/drawable/Drawable; |
| |
969 | ····move-result-object·v1 | 1004 | ····move-result-object·v1 |
| |
970 | ····iget·v3,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mMenuItemIconSize:I | 1005 | ····iget·v3,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mMenuItemIconSize:I |
| |
971 | ····invoke-virtual·{v1,·v2,·v2,·v3,·v3},·Landroid/graphics/drawable/Drawable;->setBounds(IIII)V | 1006 | ····invoke-virtual·{v1,·v2,·v2,·v3,·v3},·Landroid/graphics/drawable/Drawable;->setBounds(IIII)V |
| |
972 | ····.line·144 | 1007 | ····.line·156 |
973 | ····iget-object·v1,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mTextWithIconView:Landroid/widget/TextView; | 1008 | ····iget-object·v1,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mTextWithIconView:Landroid/widget/TextView; |
| |
974 | ····iget-object·v3,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mMenuItem:Lcom/android/car/ui/toolbar/MenuItem; | 1009 | ····iget-object·v3,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mMenuItem:Lcom/android/car/ui/toolbar/MenuItem; |
| |
975 | ····invoke-virtual·{v3},·Lcom/android/car/ui/toolbar/MenuItem;->getIcon()Landroid/graphics/drawable/Drawable; | 1010 | ····invoke-virtual·{v3},·Lcom/android/car/ui/toolbar/MenuItem;->getIcon()Landroid/graphics/drawable/Drawable; |
| |
976 | ····move-result-object·v3 | 1011 | ····move-result-object·v3 |
| |
977 | ····invoke-virtual·{v1,·v3,·v5,·v5,·v5},·Landroid/widget/TextView;->setCompoundDrawables(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V | 1012 | ····invoke-virtual·{v1,·v3,·v5,·v5,·v5},·Landroid/widget/TextView;->setCompoundDrawables(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V |
| |
978 | ····.line·145 | 1013 | ····.line·157 |
979 | ····iget-object·v1,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mTextWithIconView:Landroid/widget/TextView; | 1014 | ····iget-object·v1,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mTextWithIconView:Landroid/widget/TextView; |
| |
980 | ····iget-object·v3,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mMenuItem:Lcom/android/car/ui/toolbar/MenuItem; | 1015 | ····iget-object·v3,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mMenuItem:Lcom/android/car/ui/toolbar/MenuItem; |
| |
981 | ····invoke-virtual·{v3},·Lcom/android/car/ui/toolbar/MenuItem;->getTitle()Ljava/lang/CharSequence; | 1016 | ····invoke-virtual·{v3},·Lcom/android/car/ui/toolbar/MenuItem;->getTitle()Ljava/lang/CharSequence; |
| |
982 | ····move-result-object·v3 | 1017 | ····move-result-object·v3 |
| |
983 | ····invoke-virtual·{v1,·v3},·Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V | 1018 | ····invoke-virtual·{v1,·v3},·Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V |
| |
984 | ····.line·146 | 1019 | ····.line·158 |
985 | ····iget-object·v1,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mTextWithIconView:Landroid/widget/TextView; | 1020 | ····iget-object·v1,·p0,·Lcom/android/car/ui/toolbar/MenuItemRenderer;->mTextWithIconView:Landroid/widget/TextView; |
| |
986 | ····invoke-virtual·{v1,·v2},·Landroid/widget/TextView;->setVisibility(I)V | 1021 | ····invoke-virtual·{v1,·v2},·Landroid/widget/TextView;->setVisibility(I)V |
| |
987 | ····goto·:goto_1 | 1022 | ····goto·:goto_2 |
| |
988 | ····:cond_5 | 1023 | ····:cond_6 |
989 | ····if-eqz·v0,·:cond_6 | 1024 | ····if-eqz·v0,·:cond_7 |
| |
990 | ····.line·148 | 1025 | ····.line·161 |
Max diff block lines reached; 9796/41956 bytes (23.35%) of diff not shown.
|