Offset 7, 172 lines modifiedOffset 7, 233 lines modified
7 .field·private·mIsActionShown:Z7 .field·private·mIsActionShown:Z
  
  
8 #·direct·methods8 #·direct·methods
9 .method·public·constructor·<init>(Landroid/content/Context;)V9 .method·public·constructor·<init>(Landroid/content/Context;)V
10 ····.locals·010 ····.locals·0
  
11 ····.line·5511 ····.line·59
12 ····invoke-direct·{p0,·p1},·Lcom/android/car/ui/preference/CarUiPreference;-><init>(Landroid/content/Context;)V12 ····invoke-direct·{p0,·p1},·Lcom/android/car/ui/preference/CarUiPreference;-><init>(Landroid/content/Context;)V
  
13 ····const/4·p1,·0x013 ····const/4·p1,·0x0
  
14 ····.line·5614 ····.line·60
15 ····invoke-direct·{p0,·p1},·Lcom/android/car/ui/preference/CarUiTwoActionPreference;->init(Landroid/util/AttributeSet;)V15 ····invoke-direct·{p0,·p1},·Lcom/android/car/ui/preference/CarUiTwoActionPreference;->init(Landroid/util/AttributeSet;)V
  
16 ····return-void16 ····return-void
17 .end·method17 .end·method
  
18 .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;)V18 .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
19 ····.locals·019 ····.locals·0
  
20 ····.line·5020 ····.line·54
21 ····invoke-direct·{p0,·p1,·p2},·Lcom/android/car/ui/preference/CarUiPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V21 ····invoke-direct·{p0,·p1,·p2},·Lcom/android/car/ui/preference/CarUiPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
  
22 ····.line·5122 ····.line·55
23 ····invoke-direct·{p0,·p2},·Lcom/android/car/ui/preference/CarUiTwoActionPreference;->init(Landroid/util/AttributeSet;)V23 ····invoke-direct·{p0,·p2},·Lcom/android/car/ui/preference/CarUiTwoActionPreference;->init(Landroid/util/AttributeSet;)V
  
24 ····return-void24 ····return-void
25 .end·method25 .end·method
  
26 .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V26 .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
27 ····.locals·027 ····.locals·0
  
28 ····.line·4528 ····.line·49
29 ····invoke-direct·{p0,·p1,·p2,·p3},·Lcom/android/car/ui/preference/CarUiPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V29 ····invoke-direct·{p0,·p1,·p2,·p3},·Lcom/android/car/ui/preference/CarUiPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
  
30 ····.line·4630 ····.line·50
31 ····invoke-direct·{p0,·p2},·Lcom/android/car/ui/preference/CarUiTwoActionPreference;->init(Landroid/util/AttributeSet;)V31 ····invoke-direct·{p0,·p2},·Lcom/android/car/ui/preference/CarUiTwoActionPreference;->init(Landroid/util/AttributeSet;)V
  
32 ····return-void32 ····return-void
33 .end·method33 .end·method
  
34 .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V34 .method·public·constructor·<init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V
35 ····.locals·035 ····.locals·0
  
36 ····.line·4036 ····.line·44
37 ····invoke-direct·{p0,·p1,·p2,·p3,·p4},·Lcom/android/car/ui/preference/CarUiPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V37 ····invoke-direct·{p0,·p1,·p2,·p3,·p4},·Lcom/android/car/ui/preference/CarUiPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V
  
38 ····.line·4138 ····.line·45
39 ····invoke-direct·{p0,·p2},·Lcom/android/car/ui/preference/CarUiTwoActionPreference;->init(Landroid/util/AttributeSet;)V39 ····invoke-direct·{p0,·p2},·Lcom/android/car/ui/preference/CarUiTwoActionPreference;->init(Landroid/util/AttributeSet;)V
  
40 ····return-void40 ····return-void
41 .end·method41 .end·method
  
42 .method·private·init(Landroid/util/AttributeSet;)V42 .method·private·init(Landroid/util/AttributeSet;)V
43 ····.locals·243 ····.locals·2
  
44 ····.line·6444 ····.line·68
45 ····sget·v0,·Lcom/android/car/ui/R$layout;->car_ui_two_action_preference:I45 ····sget·v0,·Lcom/android/car/ui/R$layout;->car_ui_two_action_preference:I
  
46 ····invoke-virtual·{p0,·v0},·Landroidx/preference/Preference;->setLayoutResource(I)V46 ····invoke-virtual·{p0,·v0},·Landroidx/preference/Preference;->setLayoutResource(I)V
  
47 ····.line·6547 ····.line·69
48 ····invoke-virtual·{p0},·Landroidx/preference/Preference;->getContext()Landroid/content/Context;48 ····invoke-virtual·{p0},·Landroidx/preference/Preference;->getContext()Landroid/content/Context;
  
49 ····move-result-object·v049 ····move-result-object·v0
  
50 ····sget-object·v1,·Lcom/android/car/ui/R$styleable;->CarUiTwoActionPreference:[I50 ····sget-object·v1,·Lcom/android/car/ui/R$styleable;->CarUiTwoActionPreference:[I
  
51 ····invoke-virtual·{v0,·p1,·v1},·Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;51 ····invoke-virtual·{v0,·p1,·v1},·Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;
  
52 ····move-result-object·p152 ····move-result-object·p1
  
53 ····.line·6753 ····.line·71
54 ····sget·v0,·Lcom/android/car/ui/R$styleable;->CarUiTwoActionPreference_actionShown:I54 ····sget·v0,·Lcom/android/car/ui/R$styleable;->CarUiTwoActionPreference_actionShown:I
  
55 ····const/4·v1,·0x155 ····const/4·v1,·0x1
  
56 ····invoke-virtual·{p1,·v0,·v1},·Landroid/content/res/TypedArray;->getBoolean(IZ)Z56 ····invoke-virtual·{p1,·v0,·v1},·Landroid/content/res/TypedArray;->getBoolean(IZ)Z
  
57 ····move-result·v057 ····move-result·v0
  
58 ····iput-boolean·v0,·p0,·Lcom/android/car/ui/preference/CarUiTwoActionPreference;->mIsActionShown:Z58 ····iput-boolean·v0,·p0,·Lcom/android/car/ui/preference/CarUiTwoActionPreference;->mIsActionShown:Z
  
59 ····const/4·v0,·0x059 ····const/4·v0,·0x0
  
60 ····.line·6960 ····.line·73
61 ····invoke-virtual·{p0,·v0},·Lcom/android/car/ui/preference/CarUiPreference;->setShowChevron(Z)V61 ····invoke-virtual·{p0,·v0},·Lcom/android/car/ui/preference/CarUiPreference;->setShowChevron(Z)V
  
62 ····.line·7062 ····.line·74
63 ····invoke-virtual·{p1},·Landroid/content/res/TypedArray;->recycle()V63 ····invoke-virtual·{p1},·Landroid/content/res/TypedArray;->recycle()V
  
64 ····return-void64 ····return-void
65 .end·method65 .end·method
  
 66 .method·public·static·synthetic·lambda$8DJAUHOTU3R_fmOeFNGTBUp16OQ(Lcom/android/car/ui/preference/CarUiTwoActionPreference;Landroid/view/View;)V
 67 ····.locals·0
  
 68 ····invoke-virtual·{p0,·p1},·Landroidx/preference/Preference;->performClick(Landroid/view/View;)V
  
 69 ····return-void
 70 .end·method
  
  
66 #·virtual·methods71 #·virtual·methods
67 .method·public·isActionShown()Z72 .method·public·isActionShown()Z
68 ····.locals·173 ····.locals·1
  
69 ····.line·8574 ····.line·89
70 ····iget-boolean·v0,·p0,·Lcom/android/car/ui/preference/CarUiTwoActionPreference;->mIsActionShown:Z75 ····iget-boolean·v0,·p0,·Lcom/android/car/ui/preference/CarUiTwoActionPreference;->mIsActionShown:Z
  
71 ····return·v076 ····return·v0
72 .end·method77 .end·method
  
73 .method·public·onBindViewHolder(Landroidx/preference/PreferenceViewHolder;)V78 .method·public·onBindViewHolder(Landroidx/preference/PreferenceViewHolder;)V
74 ····.locals·279 ····.locals·4
  
75 ····.line·9080 ····.line·94
76 ····invoke-super·{p0,·p1},·Lcom/android/car/ui/preference/CarUiPreference;->onBindViewHolder(Landroidx/preference/PreferenceViewHolder;)V81 ····invoke-super·{p0,·p1},·Lcom/android/car/ui/preference/CarUiPreference;->onBindViewHolder(Landroidx/preference/PreferenceViewHolder;)V
  
77 ····.line·9182 ····.line·95
78 ····iget-object·v0,·p1,·Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;83 ····iget-object·v0,·p1,·Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
  
79 ····sget·v1,·Lcom/android/car/ui/R$id;->action_widget_container:I84 ····sget·v1,·Lcom/android/car/ui/R$id;->car_ui_preference_container_without_widget:I
  
80 ····invoke-static·{v0,·v1},·Lcom/android/car/ui/utils/CarUiUtils;->findViewByRefId(Landroid/view/View;I)Landroid/view/View;85 ····invoke-static·{v0,·v1},·Lcom/android/car/ui/utils/CarUiUtils;->findViewByRefId(Landroid/view/View;I)Landroid/view/View;
  
81 ····move-result-object·v086 ····move-result-object·v0
  
82 ····.line·9387 ····.line·97
83 ····iget-object·p1,·p1,·Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;88 ····iget-object·v1,·p1,·Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
  
84 ····const·v1,·0x102001889 ····sget·v2,·Lcom/android/car/ui/R$id;->action_widget_container:I
  
85 ····invoke-static·{p1,·v1},·Lcom/android/car/ui/utils/CarUiUtils;->findViewByRefId(Landroid/view/View;I)Landroid/view/View;90 ····invoke-static·{v1,·v2},·Lcom/android/car/ui/utils/CarUiUtils;->findViewByRefId(Landroid/view/View;I)Landroid/view/View;
  
86 ····move-result-object·p191 ····move-result-object·v1
  
87 ····.line·9492 ····.line·99
88 ····iget-boolean·v1,·p0,·Lcom/android/car/ui/preference/CarUiTwoActionPreference;->mIsActionShown:Z93 ····iget-object·v2,·p1,·Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
  
89 ····if-eqz·v1,·:cond_094 ····const·v3,·0x1020018
  
90 ····const/4·v1,·0x095 ····invoke-static·{v2,·v3},·Lcom/android/car/ui/utils/CarUiUtils;->findViewByRefId(Landroid/view/View;I)Landroid/view/View;
  
 96 ····move-result-object·v2
  
91 ····.line·9597 ····.line·100
92 ····invoke-virtual·{v0,·v1},·Landroid/view/View;->setVisibility(I)V98 ····iget-object·p1,·p1,·Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;
  
 99 ····iget-boolean·v3,·p0,·Lcom/android/car/ui/preference/CarUiTwoActionPreference;->mIsActionShown:Z
  
 100 ····xor-int/lit8·v3,·v3,·0x1
  
 101 ····invoke-virtual·{p1,·v3},·Landroid/view/View;->setFocusable(Z)V
  
93 ····.line·96102 ····.line·102
94 ····invoke-virtual·{p0,·p1},·Lcom/android/car/ui/preference/CarUiTwoActionPreference;->onBindWidgetFrame(Landroid/view/View;)V103 ····iget-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiTwoActionPreference;->mIsActionShown:Z
  
 104 ····if-eqz·p1,·:cond_0
  
 105 ····new-instance·p1,·Lcom/android/car/ui/preference/-$$Lambda$CarUiTwoActionPreference$8DJAUHOTU3R_fmOeFNGTBUp16OQ;
  
 106 ····invoke-direct·{p1,·p0},·Lcom/android/car/ui/preference/-$$Lambda$CarUiTwoActionPreference$8DJAUHOTU3R_fmOeFNGTBUp16OQ;-><init>(Lcom/android/car/ui/preference/CarUiTwoActionPreference;)V
  
95 ····goto·:goto_0107 ····goto·:goto_0
  
96 ····:cond_0108 ····:cond_0
 109 ····const/4·p1,·0x0
  
 110 ····.line·101
 111 ····:goto_0
 112 ····invoke-virtual·{v0,·p1},·Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
  
 113 ····.line·103
 114 ····iget-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiTwoActionPreference;->mIsActionShown:Z
  
 115 ····invoke-virtual·{v0,·p1},·Landroid/view/View;->setClickable(Z)V
  
 116 ····.line·104
 117 ····iget-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiTwoActionPreference;->mIsActionShown:Z
  
 118 ····invoke-virtual·{v0,·p1},·Landroid/view/View;->setFocusable(Z)V
  
 119 ····.line·105
 120 ····iget-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiTwoActionPreference;->mIsActionShown:Z
  
 121 ····if-eqz·p1,·:cond_1
  
 122 ····const/4·p1,·0x0
  
 123 ····goto·:goto_1
  
 124 ····:cond_1
97 ····const/16·p1,·0x8125 ····const/16·p1,·0x8
  
98 ····.line·98126 ····:goto_1
99 ····invoke-virtual·{v0,·p1},·Landroid/view/View;->setVisibility(I)V127 ····invoke-virtual·{v1,·p1},·Landroid/view/View;->setVisibility(I)V
  
100 ····:goto_0128 ····.line·106
 129 ····iget-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiTwoActionPreference;->mIsActionShown:Z
  
 130 ····invoke-virtual·{v2,·p1},·Landroid/view/View;->setFocusable(Z)V
  
 131 ····.line·107
 132 ····iget-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiTwoActionPreference;->mIsActionShown:Z
  
 133 ····if-eqz·p1,·:cond_2
  
 134 ····.line·108
 135 ····invoke-virtual·{p0,·v2},·Lcom/android/car/ui/preference/CarUiTwoActionPreference;->onBindWidgetFrame(Landroid/view/View;)V
  
 136 ····:cond_2
101 ····return-void137 ····return-void
102 .end·method138 .end·method
  
103 .method·protected·onBindWidgetFrame(Landroid/view/View;)V139 .method·protected·onBindWidgetFrame(Landroid/view/View;)V
104 ····.locals·0140 ····.locals·0
  
105 ····return-void141 ····return-void
106 .end·method142 .end·method
  
107 .method·public·showAction(Z)V143 .method·public·showAction(Z)V
108 ····.locals·0144 ····.locals·0
  
109 ····.line·79145 ····.line·83
110 ····iput-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiTwoActionPreference;->mIsActionShown:Z146 ····iput-boolean·p1,·p0,·Lcom/android/car/ui/preference/CarUiTwoActionPreference;->mIsActionShown:Z
  
111 ····.line·80147 ····.line·84
112 ····invoke-virtual·{p0},·Landroidx/preference/Preference;->notifyChanged()V148 ····invoke-virtual·{p0},·Landroidx/preference/Preference;->notifyChanged()V
  
113 ····return-void149 ····return-void
114 .end·method150 .end·method